HELP! Display mesh problem

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
lpcpp
Posts: 18
Joined: Thu Aug 06, 2009 9:26 am
Location: Neverland
Contact:

HELP! Display mesh problem

Post by lpcpp »

Why gun model displays like this:
Image

The model should be like this:
Image

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 »

near plane culling.
lpcpp
Posts: 18
Joined: Thu Aug 06, 2009 9:26 am
Location: Neverland
Contact:

Post by lpcpp »

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 »

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 »

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 »

try

Code: Select all

node->setMaterialFlag(EMF_BACK_FACE_CULLING , false);
or and

Code: Select all

camera->setFarValue(5000.0f);
lpcpp
Posts: 18
Joined: Thu Aug 06, 2009 9:26 am
Location: Neverland
Contact:

Post by lpcpp »

Lil Margin wrote:try

Code: Select all

node->setMaterialFlag(EMF_BACK_FACE_CULLING , false);
or and

Code: Select all

camera->setFarValue(5000.0f);
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 »

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
Image
Lonesome Ducky
Competition winner
Posts: 1123
Joined: Sun Jun 10, 2007 11:14 pm

Post by Lonesome Ducky »

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 »

thanks everyone~
I tried DX9 render ,it is OK.
only software renderer has the problem.
Post Reply