lightmap Posted April 5, 2018 Posted April 5, 2018 Hello A task is to render scene with small details at near and cosmic moving objects at distances more than reasonable Zfar value (setting Zfar bigger than 32000 lead to a black screen, with znear = 0.001) what technics can be used to render distant dynamic objects? thanks
ulf.schroeter Posted April 5, 2018 Posted April 5, 2018 What will be the pixel size of these cosmic objects? I would guess 0 to just a few pixels. Maybe you should think about some billboard/imposter-based approach. Also performance-wise this Symbols be more efficient. Same is done in Unigine for rendering stars at night.
lightmap Posted April 6, 2018 Author Posted April 6, 2018 >Same is done in Unigine for rendering stars at night and do it possible to approach to each star in that demo? any link, demo name ?
ulf.schroeter Posted April 7, 2018 Posted April 7, 2018 No, but the general idea should be adaptable to your problem: in any case you cannot simply render your cosmic objects at their real-world xyz-coordinates as these are far beyond the far-clipping plane e.g. 32000 units. To overcome this you will have to dynamically move these distant object ON THE LINE between the real-world xyz-coordinates and the camera frustrum origin xyz to some distance smaller than the far-clipping plan e.g. 31000 units. At the same time you will have to dynamicall scale down the cosmic object size during rendering to keep a correct perspective minification of the object corresponding to the real (much much larger) distance. Thats the key idea to overcome far-clipping-plane limitation. Imposters (or object billboards) could be a way to improve rendering speed of your cosmic objects if they are quite complex, but details are not really visible due to the small projected object on-screen sizes. https://www.gamasutra.com/view/feature/130911/dynamic_2d_imposters_a_simple_.php 1
Recommended Posts