Gun Clipping

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Robomaniac
Posts: 602
Joined: Sat Aug 23, 2003 2:03 am
Location: Pottstown, PA
Contact:

Gun Clipping

Post by Robomaniac »

I'm working on a FPS right now, and I'm trying to figure out how to keep a weapon model from becoming transparent at the camera. I have a rifle with the stock cutting through the camera and it just turns that area white and clear. Is there any way I could get around this. Thanks.

The Robomaniac
[dx/x]=HUNT3R
Posts: 271
Joined: Sat Aug 23, 2003 5:52 pm
Location: Hurricane Central, Florida

Post by [dx/x]=HUNT3R »

I don't know if these will work, just some ideas off the top of my head... don't push the model into the camera, maybe cut the model off so it won't intersect with the camera, or try moving the model around some like down below the camera a little.
Saalen
Posts: 51
Joined: Thu Sep 04, 2003 7:49 am
Location: Germany
Contact:

Re: Gun Clipping

Post by Saalen »

You want the weapon moving with your camera? Why don't you make your weapon scene node a child of your camera scene node? Works fine.
No problems with clipping occour.
You can take a look (Warning: 6 MB file):http://www.andre-simon.de/zip/victory-1.0-1.zip
Post Reply