Page 1 of 1

problem with irr 1.5 and x - files

Posted: Thu Apr 09, 2009 7:16 am
by asiatin
Hello

I have the problem:

I load x-files in Irr 1.1 , with texture , with all.
The models are looking fine, for example: like metal,chrome, how I
like.

Now I try to do the same in Irr 1.4 and Irr 1.5 but the same model
are looking bad and very different,

I dont know where is the problem ?

Can somebody help me ?

thanks
asiatin

Posted: Thu Apr 09, 2009 9:16 am
by Piraaate
Well, if you can post a link to the data you're using, we might be able to help !

x-files

Posted: Thu Apr 09, 2009 10:28 am
by asiatin
Hello,

thank you, for your fast answer.

sorry my english is bad, I am german.



thanks
asiatin

Posted: Thu Apr 09, 2009 3:23 pm
by CuteAlien
Hm, I loaded the model and it looked ok on first view, but I don't know how it should look like. I can't start the .exe as I do no longer have the old Irrlicht dll. Could you add 2 screenshots for the correct and wrong version? Or if you add the dll's to the download I can try starting those .exe once more.

problem with x-files

Posted: Thu Apr 09, 2009 6:49 pm
by asiatin
thanks to you CuteAlien,

I can put the old DLL and the screenshots on 11.04.2009

thanks
asiatin

problem with x-files

Posted: Thu Apr 09, 2009 7:05 pm
by asiatin
I did it today

http://www.taisa.de/senden2.rar

here are the DLLs and the screenshots

Thanks
asiatin

Posted: Fri Apr 10, 2009 10:38 am
by hybrid
Your use of the reflection material is improper. You cannot have just a second layer texture. The mesh is correctly loaded and lit, so there shouldn't be much of a problem once you cleaned up your material usage.

problem solved

Posted: Tue Apr 14, 2009 7:12 am
by asiatin
the problem is soved !!!

I scale my model with 0.1 ,
in Irrlich 1.1 the result was ok
in Irrlich 1.5 the result was not ok

now I found here in the forum, in a post from Hybrid, that
if I scale a model, then I have to put the following FLAG after scaling.

EMF_NORMALIZE_NORMALS

I did it, and now its ok .

Code: Select all

model3->setScale(core::vector3df(0.1f,0.1f,0.1f));
model3->setMaterialFlag( video::EMF_NORMALIZE_NORMALS, true );
model3->setMaterialTexture(1, driver->getTexture("../../media/sunsetsw.jpg"));
model3->setMaterialType(video::EMT_REFLECTION_2_LAYER );
model3->setMaterialFlag( video::EMF_LIGHTING, true );
why in irrlicht 1.1 it was ok without EMF_NORMALIZE_NORMALS,
I don't know, but I know now why it's ok with EMF_NORMALIZE_NORMALS.

thanks for help
asiatin


[img]http://www.taisa.de\bad.jpg[/img]
[img]http://www.taisa.de\good.jpg[/img]