Page 1 of 1

faceted reflection

Posted: Thu May 05, 2005 7:36 am
by AMAZINGAHMED
hi there
i have a little problem that when i use the reflection material, the mesh becomes faceted. here is my code:

material_stainless.Texture1 = driver->getTexture("../../media/lake3.jpg");
material_stainless.Texture2 = driver->getTexture("../../media/galvplat.jpg");
material_stainless.Lighting = true;
material_stainless.MaterialType=EMT_REFLECTION_2_LAYER;
material_stainless.EmissiveColor=SColor(100,150,150,150);


i fount also this happens with any other MaterialType.
i get my model from 3dmax as a .3ds file and in max it looks smooth, so how can i smooth it in irrlicht? am i missing something here?
plz hlp
thnks

Posted: Thu May 05, 2005 1:23 pm
by jox
Irrlicht doesn't (currently 0.9) support smoothing groups for 3ds. 3ds meshes will always be flat shaded. Try another mesh format (x, obj, ...).

Posted: Thu May 05, 2005 7:53 pm
by omaremad
build a mesh with tangents it helps a bit

http://uk.geocities.com/omar.emad@btint ... rsgame.zip

heres my game with ai look in the source to knoe how to build meshes with normals

i think it is by using this code


IAnimatedMesh* planem = smgr->getMesh("smallcube2.3ds");
IMesh* mesh = smgr->getMeshManipulator()->createMeshWithTangents( planem->getMesh(0));

hii egypt

im from egypt nasr city