Author Topic: Line of sight  (Read 1711 times)

Offline Msali

  • byte
  • *
  • Posts: 9
    • View Profile
Line of sight
« on: July 28, 2016, 01:09:07 pm »
I studied the jpct-ae docs, but I just couldn't find a way to set whether an object has to be set visibile or not depending on the camera position. To clarify, If I am near an object I see it, if I am really far away, instead of seeing it small, I don't want it to be visible at all.

So I started developing my own mechanism to make it possible.

Is it so?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12297
    • View Profile
    • http://www.jpct.net
Re: Line of sight
« Reply #1 on: July 28, 2016, 11:03:50 pm »
That's actually not the line of sight. That's just culling on the far plane and jPCT does this automatically. You can set the far plane in your world instance. If you want different objects to fade out in different distances, then you have to make something by yourself that does this. jPCT itself culls and clips on all 6 planes of the view frustum.

Offline Msali

  • byte
  • *
  • Posts: 9
    • View Profile
Re: Line of sight
« Reply #2 on: August 03, 2016, 05:56:16 pm »
Thank you