www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: Dinin on January 15, 2014, 03:02:52 PM

Title: plane as clipping plane
Post by: Dinin on January 15, 2014, 03:02:52 PM
Hi !

I need a plane that is transparent (for user) but still hides objects/parts of objects. Like a plane that acts like a clipping plane. Is there any way i can do something like that ?

Thanks
Dinin
Title: Re: plane as clipping plane
Post by: EgonOlsen on January 15, 2014, 08:43:07 PM
Can you illustrate that by some drawing or something? I have an idea, but i think that it doesn't fit the problem...
Title: Re: plane as clipping plane
Post by: Dinin on January 16, 2014, 10:53:43 AM
I have a animation where a zombie is comming out of ground. So only the part above ground should be visible. The problem is that i have no groundplane in opengl, only a transparent background.

[attachment deleted by admin]
Title: Re: plane as clipping plane
Post by: Dinin on January 16, 2014, 03:53:59 PM
I just found the solution.
If i set a transparent texture and do not call setTransparency of plane it does exactly what i want  :).

Greetings
Dinin