Author Topic: plane as clipping plane  (Read 2260 times)

Offline Dinin

  • byte
  • *
  • Posts: 28
    • View Profile
plane as clipping plane
« 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
« Last Edit: January 15, 2014, 03:04:29 pm by Dinin »

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: plane as clipping plane
« Reply #1 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...

Offline Dinin

  • byte
  • *
  • Posts: 28
    • View Profile
Re: plane as clipping plane
« Reply #2 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]

Offline Dinin

  • byte
  • *
  • Posts: 28
    • View Profile
Re: plane as clipping plane
« Reply #3 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