Author Topic: View Problems with very large objects  (Read 4377 times)

Offline volpesfuggente

  • byte
  • *
  • Posts: 8
    • View Profile
View Problems with very large objects
« on: November 30, 2011, 12:56:18 pm »
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?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
Re: View Problems with very large objects
« Reply #1 on: November 30, 2011, 01:37:52 pm »
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.