06-20-2017, 04:16 PM
(06-20-2017, 03:23 PM)abenedik Wrote: I see that the z-fighting is very bad on your screenshots.
I see that the camera in the A and B images is almost the same so I am wondering what is causing the change: I assume that in the B images you create new 3D models and position them on the same position as the original object or use just a very small offset to position the new objects slightly above the original objects.
...
Thank you for quick response!
I am aware that these models can be error prone (layers on the road etc.). but there is not much that can be done about that. They are real measured representations, so they can't be moved. I was sure there would be some trouble, but they obviously shouldn't be this severe.
All that changes between A and B is just moving the camera, but now that you mention it, there might be a bug, that i put model in the scene twice, which would explain this behavior. I will check the code closely right away.
About the z-buffer distribution.
I was actually wandering if there is a possibility to change it, because the models loaded can vary in size and detail a lot. But I didn't manage to find any specific information, how to do that using WPF 3D or Ab3D. Could you please point me in right direction?
Also is there a way to dynamically change the distribution of z-buffer? Just switching between logarithmic and linear distribution depending on a distance would help in a lot of cases.
Thank you, Simon

