Line of sight

Started by Msali, July 28, 2016, 01:09:07 PM

Previous topic - Next topic

Msali

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?

EgonOlsen

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.

Msali