problem with irr 1.5 and x - files

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
asiatin
Posts: 6
Joined: Wed Mar 18, 2009 8:31 am
Location: Waldshut / Germany

problem with irr 1.5 and x - files

Post 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
Piraaate
Posts: 18
Joined: Wed Feb 21, 2007 3:04 pm
Location: Valence, France
Contact:

Post by Piraaate »

Well, if you can post a link to the data you're using, we might be able to help !
Last edited by Piraaate on Thu Apr 09, 2009 5:16 pm, edited 1 time in total.
asiatin
Posts: 6
Joined: Wed Mar 18, 2009 8:31 am
Location: Waldshut / Germany

x-files

Post by asiatin »

Hello,

thank you, for your fast answer.

sorry my english is bad, I am german.



thanks
asiatin
Last edited by asiatin on Fri Apr 24, 2009 2:06 pm, edited 1 time in total.
CuteAlien
Admin
Posts: 9720
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post 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.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
asiatin
Posts: 6
Joined: Wed Mar 18, 2009 8:31 am
Location: Waldshut / Germany

problem with x-files

Post by asiatin »

thanks to you CuteAlien,

I can put the old DLL and the screenshots on 11.04.2009

thanks
asiatin
asiatin
Posts: 6
Joined: Wed Mar 18, 2009 8:31 am
Location: Waldshut / Germany

problem with x-files

Post by asiatin »

I did it today

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

here are the DLLs and the screenshots

Thanks
asiatin
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post 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.
asiatin
Posts: 6
Joined: Wed Mar 18, 2009 8:31 am
Location: Waldshut / Germany

problem solved

Post 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]
Post Reply