4 ms·
I never understood why render to texture looks so bad in mirrors if it works so good in Portal (not a reflection but it seems like the same problem?) Isn't it
by kaoD 3y ago
I never understood why render to texture looks so bad in mirrors if it works so good in Portal (not a reflection but it seems like the same problem?)
Isn't it just a matter of properly calculating the camera position/frustum so that it is perspective-correct? Portal has the same issue[0] until you properly position the camera.
What makes reflections different?
[0] https://m.youtube.com/watch?v=NGeZCAi2bJs https://m.youtube.com/watch?v=NGeZCAi2bJs 2:50, 4:05, 5:06, 6:58
- incrudible 3y agoPortal does not render to texture, it just renders different content, making use of depth/stencil buffers for masking. This can work for plain mirrors, but the advantage of RTT is that you can sample the texture at arbitrary points, so it can be distorted.
- kaoD 3y agoI didn't mean Portal specific implementation but rather the mechanic. Check the video I linked to. Isn't that RTT?
- incrudible 3y agoIt probably is, but that is a hobbyist implementation. How good RTT looks depends a lot on the resolution, rendering the scene a second time to another high resolution target is not necessarily feasible or justified.
- giwofeh197 3y ago[flagged]
- deleted 3y ago[deleted]