www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: Msali on July 28, 2016, 01:09:07 pm

Title: Line of sight
Post by: Msali 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?
Title: Re: Line of sight
Post by: EgonOlsen 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.
Title: Re: Line of sight
Post by: Msali on August 03, 2016, 05:56:16 pm
Thank you