[no bug] strange issue in Irrlicht 1.5

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
sp00n
Posts: 114
Joined: Wed Sep 13, 2006 9:39 am

[no bug] strange issue in Irrlicht 1.5

Post by sp00n »

Irrlicht 1.5
OS - Windows
To reproduce: get the meshViewer example, then comment a string

Code: Select all

// loadModel(StartUpModelFile.c_str());
then add

Code: Select all

smgr->addCubeSceneNode(10,0,-1,core::vector3df(10,10,10));
before

Code: Select all

while(Device->run() && driver)
then to see more add

Code: Select all

driver->draw3DBox(core::aabbox3df(-core::vector3df(30,30,15),core::vector3df(30,30,15)),video::SColor(255,255,255,255));
in the main loop after

Code: Select all

 env->drawAll();
then compile and run.
So when you'll move your camera forward inside a 3dbox in one place you'll see that 3d lines of the box are missed, and strange thing - tris counters are leeser at that moment (for the cube it is 24 tris, but when we got an issue it sets to 12 tris). It happens on Direct3d, OpenGL, Burning's renderers.
May be something worng with calculating WORLD_MATRIX for camera or wrong with update positions?
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

I think for the 24/12 tris it's because of the culling with the cube...
for the 3dBox, try this:

Code: Select all

driver->setTransform(video::ETS_WORLD, core::matrix4());
driver->draw3DBox(core::aabbox3df(-core::vector3df(30,30,15),core::vector3df(30,30,15)),video::SColor(255,255,255,255));
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
yoda
Posts: 2
Joined: Tue Jun 23, 2009 3:38 pm

Post by yoda »

Acki
I have the same problem and the matter isn't only about culling.

1) This problem remains with more tris.
2) The moment lines disapear you can see that even those lines that should be seen disapear as well.
3) The very same moment something strange happens to scene nodes with EMF_GOURAUD_SHADING turned on - it seems that the texture reflects inside out
4) Pay attention to color of lines - they aren't the same color that in the calls of functions.


And some more:

Code: Select all

driver->setTransform(video::ETS_WORLD, core::matrix4()); 
not working in these cases.
Sylence
Posts: 725
Joined: Sat Mar 03, 2007 9:01 pm
Location: Germany
Contact:

Post by Sylence »

Solution for 4) IVideoDriver::setMaterial()
Software documentation is like sex. If it's good you want more. If it's bad it's better than nothing.
yoda
Posts: 2
Joined: Tue Jun 23, 2009 3:38 pm

Post by yoda »

Oops. I'm very sorry, but I made a mistake in 3)

It's about EMT_SPHERE_MAP type, not EMF_GOURAUD_SHADING :)

Sylence
Yes, thanks, that should do.
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

No bug here! As per
the docs, unless you set a material and a transformation before drawing the box the result is undefined.
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
Post Reply