Activate clip plane while rendering geometry

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
Knuttz
Posts: 1
Joined: Mon Jul 17, 2006 9:46 pm

Activate clip plane while rendering geometry

Post by Knuttz »

I have not been able to find how you can activate an arbitrary clip plane before rendering geometry (like glClipPlane() functionality in OpenGL).
Does an API for this exist in Irrlicht or is it something which I will need to write custom rendering code to accomplish?

Thanks!
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

I think you want to call ICameraSceneNode::setNearValue(). That will adjust the near clip plane of the view frustum. Before rendering, objects are tested against the view frustum. If they are outside the frustum box, they are not normally rendered.

Travis
Baal Cadar
Posts: 377
Joined: Fri Oct 28, 2005 10:28 am
Contact:

Post by Baal Cadar »

Knuttz, no. Custom clip planes are not supported by irrlicht right now. You have to add this functionality to it yourself.
No offense :)
Post Reply