Problem in loading 3ds file

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
C-lover-1
Posts: 12
Joined: Sat Feb 17, 2007 8:46 pm

Problem in loading 3ds file

Post by C-lover-1 »

hello all.
i made winapp that has irrlicht engine in it .
and i want to load a 3ds file in to my app.
it works quite well . but in loading some texture of 3ds file there is a problem .
half of my texture are exacly like normal map's textures.
i don't know what is the problem but , in console window i have some like this :Found no matching material for groub in 3ds file .
for loading 3ds file i used this code :

Code: Select all

				irr::scene::IAnimatedMesh* amesh =  Device->getSceneManager()->getMesh(meshname);
				m_pNode = Smgr->addAnimatedMeshSceneNode(m,0, 1, position);				
				m_pNode->setMaterialFlag(irr::video::EMF_LIGHTING , TRUE);
				m_pNode->setMaterialFlag(irr::video::EMF_NORMALIZE_NORMALS, TRUE);

PLS help me . i am really confused now .
C-lover-1
Posts: 12
Joined: Sat Feb 17, 2007 8:46 pm

Post by C-lover-1 »

ه i solved above problem .
but anather problem happens .
when i add a light to my scene , 3ds file become white .
what do you think ?
what is the problem ?
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

Light to bright and/or to close ???
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
Kurak
Posts: 7
Joined: Sat Feb 17, 2007 7:26 pm
Location: Poland
Contact:

Post by Kurak »

I have same problem - textured 3ds model is white/black when there's any light near it (model has to sides: black and white - it looks like shaded, but there's no texture or shading)... But when I put there ms3d model there's no problem.
C-lover-1
Posts: 12
Joined: Sat Feb 17, 2007 8:46 pm

Post by C-lover-1 »

problem is in 3ds file .
becuase we set Ambient light to white . and also radius of my light was very big .
but when i loded that 3ds file in other engine , it loaded quite well ! with out any change in 3ds file ?

ACKI : what do mean " light to bright or close " ?
i use light inside the 3ds file . that is a big scene .
yes you right . in ms3d file there is no same problem .
Post Reply