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.
lpcpp
Posts: 18 Joined: Thu Aug 06, 2009 9:26 am
Location: Neverland
Contact:
Post
by lpcpp » Sat Aug 08, 2009 8:32 am
Why gun model displays like this:
The model should be like this:
it seems that some triangles were culled.
hybrid
Admin
Posts: 14143 Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:
Post
by hybrid » Sat Aug 08, 2009 9:46 am
near plane culling.
lpcpp
Posts: 18 Joined: Thu Aug 06, 2009 9:26 am
Location: Neverland
Contact:
Post
by lpcpp » Sat Aug 08, 2009 9:53 am
hybrid wrote: near plane culling.
How to deal with it?
hybrid
Admin
Posts: 14143 Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:
Post
by hybrid » Sat Aug 08, 2009 11:05 am
Well, I just noticed that it might also be a problem with the driver, do you use the old SW driver? The near plane culling is set in the camera.
lpcpp
Posts: 18 Joined: Thu Aug 06, 2009 9:26 am
Location: Neverland
Contact:
Post
by lpcpp » Sat Aug 08, 2009 12:19 pm
hybrid wrote: Well, I just noticed that it might also be a problem with the driver, do you use the old SW driver? The near plane culling is set in the camera.
I don't think it is the driver's problem,
But should I use
Code: Select all
smgr->getActiveCamera()->setNearValue(0.1f)
?
It doesn't work
Lil Margin
Posts: 212 Joined: Sun Jul 19, 2009 4:24 am
Location: Netherlands Antilles, Curacao
Post
by Lil Margin » Sat Aug 08, 2009 2:50 pm
try
Code: Select all
node->setMaterialFlag(EMF_BACK_FACE_CULLING , false);
or and
lpcpp
Posts: 18 Joined: Thu Aug 06, 2009 9:26 am
Location: Neverland
Contact:
Post
by lpcpp » Sat Aug 08, 2009 3:06 pm
Lil Margin wrote: try
Code: Select all
node->setMaterialFlag(EMF_BACK_FACE_CULLING , false);
or and
Thank, But it doesn't work.
triangles near the window's edge disapear as before.
cobra
Posts: 371 Joined: Fri Jan 23, 2009 2:56 am
Location: United States
Contact:
Post
by cobra » Sat Aug 08, 2009 3:50 pm
I think Hybrid is right. The software driver has very bad culling problems as far as I've seen. (might be able to be set, but I never tried it).
Switch your driver to OpenGL and see if it works.
Josiah Hartzell
Lonesome Ducky
Competition winner
Posts: 1123 Joined: Sun Jun 10, 2007 11:14 pm
Post
by Lonesome Ducky » Sat Aug 08, 2009 4:12 pm
If you absolutely have to use a software renderer, try burnings. It's faster than irrlicht's software renderer, and it looks just as good as OpenGL or Direct3D. Irrlicht's software render has many problems like this
lpcpp
Posts: 18 Joined: Thu Aug 06, 2009 9:26 am
Location: Neverland
Contact:
Post
by lpcpp » Sun Aug 09, 2009 1:47 am
thanks everyone~
I tried DX9 render ,it is OK.
only software renderer has the problem.