Culling Problem [solved]

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
Catprog
Posts: 164
Joined: Wed Jan 31, 2007 9:07 am
Contact:

Culling Problem [solved]

Post by Catprog »

I believe I have a problem with the culling for my model

Image

The floor has disappeared along with one of the columns on the right.

code for the node and camera

Code: Select all

 
    scene::ISceneNode* node = smgr->addMeshSceneNode( mesh );
 
 
    if (node)
    {
 
        node->setAutomaticCulling   (irr::scene::EDS_BBOX);
 
        node->setMaterialFlag(EMF_LIGHTING, false);
        node->setMaterialTexture( 0, driver->getTexture("media\\temple\\ColumnTex.jpg") );
        node->setMaterialTexture( 1, driver->getTexture("media\\temple\\FloorTex.jpg") );
 
        node->setScale(vector3df(50,50,50));
 
    }
 
 
    /*
    To look at the mesh, we place a camera into 3d space at the position
    (0, 30, -40). The camera looks from there to (0,5,0).
    */
 
     ICameraSceneNode* camera =  smgr->addCameraSceneNodeFPS();
 
     camera->setPosition( vector3df(-10,5,0));
 
     camera->updateAbsolutePosition     (       );
     camera->setTarget( vector3df(0,5,0));
 
 
http://catprog.org/Downloads/temple.zip is the blender and 3ds file
Last edited by Catprog on Sat Dec 21, 2013 1:17 pm, edited 1 time in total.
Catprog
Posts: 164
Joined: Wed Jan 31, 2007 9:07 am
Contact:

Re: Culling Problem?

Post by Catprog »

Turns out it was my driver.
Post Reply