Author Topic: Polygon limitations on screen  (Read 2406 times)

Offline Lima

  • byte
  • *
  • Posts: 6
  • Life, Liberty and Property.
    • View Profile
Polygon limitations on screen
« on: July 28, 2024, 11:56:40 pm »
I have this terrain with some planes scattered on it. About 2000 planes. when the camera faces many of them, the terrain and my player model stop being rendered. I have to make the camera look at where they aren't in order to be able to see the terrain and the player model again. Any tips?
Also, the planes were cloned using the cloneObject() method. I don't really know what to do now.

few planes on camera:
https://imgur.com/k3PNGug

many planes on camera:
https://imgur.com/T18Kh3r

update:
It seems to be a limit of objects on screen; when I move the camera some planes disappear e others appear, for some reason my player model and the terrain are not a priority and are ignored when there are many planes on screen. I removed some of the copies and this no longer happens. But I still would like to place many of them around my map.
« Last Edit: July 29, 2024, 02:50:09 am by Lima »

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12298
    • View Profile
    • http://www.jpct.net
Re: Polygon limitations on screen
« Reply #1 on: July 30, 2024, 10:50:01 am »
There is a setting for max. objects (it's called differently for historic reasons though): https://www.jpct.net/jpct-ae/doc/com/threed/jpct/Config.html#maxPolysVisible

Offline Lima

  • byte
  • *
  • Posts: 6
  • Life, Liberty and Property.
    • View Profile
Re: Polygon limitations on screen
« Reply #2 on: July 31, 2024, 01:39:33 am »
Thank you!! You're a lifesaver! I had set the far clipping plane very close and removed some of the objects to "kind of" solve this, but for my purposes is not ideal, I really needed to put more things in scene.

p.s.: Again! Can't forgive myself for not seeing that in the documentation.