problem with 0.5

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
rogerdv
Posts: 93
Joined: Wed Aug 27, 2003 4:20 pm

problem with 0.5

Post by rogerdv »

I load a bsp and this is what I get:
Image

This is what I got with 0.4.2
Image
ru guo ni yao ai, ni jiang bu hui shi qu
madinitaly
Posts: 92
Joined: Sat Nov 29, 2003 8:30 pm
Contact:

Post by madinitaly »

What does the console window say? It could be a problem in the texture path, or setting mipmap levels, or loading the texture image or what else... just examine the console output.
rogerdv
Posts: 93
Joined: Wed Aug 27, 2003 4:20 pm

Post by rogerdv »

No, there is no problems loading textures. The outputo is the sames as old version.
ru guo ni yao ai, ni jiang bu hui shi qu
madinitaly
Posts: 92
Joined: Sat Nov 29, 2003 8:30 pm
Contact:

Post by madinitaly »

Then I guess it's a problem in lighting your mesh. Try playing with the material flags.
thesmileman
Posts: 360
Joined: Tue Feb 10, 2004 2:20 am
Location: Lubbock, TX

Post by thesmileman »

I had a simlular problem with several bmp. After update to 0.5 many (If not all) of my bmp's displayed white in partical systems and an ugly light pinkish orangish color(definiatly not pretty).

I converted the bmp to jpg and everything worked smoothly.

Unless I am a tard I would say this looks like the first 0.5 bug. Or the first F$@#$# up by me with 0.5
Robomaniac
Posts: 602
Joined: Sat Aug 23, 2003 2:03 am
Location: Pottstown, PA
Contact:

Post by Robomaniac »

This is the same weird error that happened in 0.4.2 bmp's that loaded fine now don't, and for the particles, it says compressed bmp's are not supported by the engine currently, idk if this is the same error you have w/ v 0.5, but this is what happens in 0.4.2. Also, the orange color is most likely the light affecting the billboard.
The Robomaniac
Project Head / Lead Programmer
Centaur Force
thesmileman
Posts: 360
Joined: Tue Feb 10, 2004 2:20 am
Location: Lubbock, TX

Post by thesmileman »

Some of the bmp's that do not work are the ones includes with the sdk like fireball.bmp.

Ohhh, I am using the fireball from 0.4 and it is 5k while the firball in 0.5 is 6k so maybe it was a compressed bmp.

either way I am fine with using jpg's
Ayanami
Posts: 24
Joined: Wed Jan 14, 2004 1:30 pm

Post by Ayanami »

..
scene::IAnimatedMesh* mesh = smgr->getMesh("../../media/cube.3ds");
scene::ISceneNode* node = 0;

if (mesh) node = smgr->addOctTreeSceneNode(mesh->getMesh(0));

node->setMaterialFlag(EMF_LIGHTING, false);
node->setMaterialTexture( 0, driver->getTexture("../../media/t351sml.jpg") );

I only see a brown cube .. why?
level1

Post by level1 »

Ayanami wrote:..
scene::IAnimatedMesh* mesh = smgr->getMesh("../../media/cube.3ds");
scene::ISceneNode* node = 0;

if (mesh) node = smgr->addOctTreeSceneNode(mesh->getMesh(0));

node->setMaterialFlag(EMF_LIGHTING, false);
node->setMaterialTexture( 0, driver->getTexture("../../media/t351sml.jpg") );
Hm... an octtree scenenode for a cube? dont know if that's the problem but it's the only strange thing i see.

do you set any ambient light?

Code: Select all

videodriver->setAmbientLight(irr::video::SColorf(1.0f,1.0f,1.0f));
Post Reply