View Problems with very large objects

Started by volpesfuggente, November 30, 2011, 12:56:18 PM

Previous topic - Next topic

volpesfuggente

Hi!
I am using JPCT for the visualization of very big objects.
Initially I have tried to create two cylinders with height around 6000000 and radius 3000000.
I get some visualization artifacts, even if I have increased the value for the attribute in setClippingPlanes();




Any ideas?

EgonOlsen

Lol! I'm sorry, but that's a bit too much...the software renderer (which this obviously is) uses fixed point arithmetic when rendering the scanlines. It's accuracy is limited and if the polygons get too large (and the scanlines with them), this will result in what you see. There's no other solution to this than not to do it. Why do you need such enormously sized objects anyway? It might work on hardware, but even there, i wouldn't count on every GPU to be accurate enough to handle this. Older PowerVR chips for example for sure weren't (and the newer ones in mobile devices are still not...) able to handle this.