Hi all,
I'm new with Irrlicht and 3D realtime engine. So i have test several possibility to import lighmap in Irrlicht. The best (and easly) way/result is to import 3D scene in gile[s], create lightmap and export to my3d format.
But, I have encountered many problems, and there is 2 of them who blocks me
1) the texture under directX (8 & 9) are strange but look fine under opengl
2) the transparent texture are black
Some pictures is better to understand
http://www.mapt4c.freesurf.fr/divers/gi ... irectx.jpg
http://www.mapt4c.freesurf.fr/divers/gi ... opengl.jpg
do you someone have an idea ? Bad export of gile[s] ? Bad inport with my3d ? Bad code of me ?
Your help is welcome. Thanks
gile[s] , MY3D and Irrlicht
Yes the texture look to be in 16 bit
This look to happen only if i use a transparent texture
This is the code test i use to load the scene
Do i have forget something ?
This look to happen only if i use a transparent texture
This is the code test i use to load the scene
Code: Select all
device = createDevice(video::EDT_DIRECTX9, core::dimension2d<s32>(640,480),24,false,false);
if (device == 0)
{
return 1; // could not create selected driver.
}
driver = device->getVideoDriver();
smgr = device->getSceneManager();
smgr->getStringParameters()->setParameter(scene::MY3D_TEXTURE_PATH, "./test/");
scene::IAnimatedMesh* mesh=smgr->getMesh("./test/test.my3d");
scene::ISceneNode* node;
if (mesh) smgr->addOctTreeSceneNode(mesh);
scene::ICameraSceneNode* camera = smgr->addCameraSceneNodeFPS(0, 100, 100);
device->getCursorControl()->setVisible(false);
try:
Code: Select all
driver->setTextureCreationFlag(video::ETCF_ALWAYS_32_BIT, true);