Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Hi there, I am doing a collision test using .irr files (1.3.1 IrrLicht + 0.7.1. IrrEdit) I can successful create a lightmap, but when I export the mesh as a .dae, and load it into IrrLicht, it comes out almost completely white! The actual png image in the subfolder, also seems completely white, as though no information is being exported (1KB white image). I am trying to use the mesh as an OctTree for do collision in IrrLicht, using the example code in the code snippets of the IrrLicht forum. Does anyone have any notion of why this might be occurring. When I change the output format of the maps from .png to .bmp there are black and there is a little grey colouring in the top left hand corner of the image, but it still doesn't work when loading into IrrLicht. |
||||
|
I have "upgraded" both IrrEdit and IrrLicht to 1.4alpha/beta and that hasn't made an ounce of difference. Infact it seems to have made things worse... Now when you apply global illumination/shadows to the scene, it seems to apply to the backfacing side of polygons, whilst in 0.7.1 it worked fine. I still get the .png files as 1Kb white nothing. FYI - I am using mingw/gcc - OpenGL |
||||
|
Using OpenGL, it would not work, irrEdit doesn't work with OpenGL at all. But you could temporaily try and change the output format, in the options, irrEdit can write lightmap files also in formats other than png. |
||||
|
I think you have seemingly mis-understood me. I merely mentioned OpenGL in terms of what I was running irrLicht under (mostly due to the problem of running DirectX with gcc, and the license issues). I also described what had happened with using both formats available to export the lightmaps (png/bmp), there seems to be no other format to use in the Tools->Options. Also can you explain why the model seem inverted in terms of the facing of the polygons when using 1.4 as opposed to using 0.71, when apply the lightmaps/shadows? Is there any reason why the lightmaps don't seem to be exported? It is quite obvious it isn't working when irrEdit is producing a 1kb all white .png file. |
||||
|
Looks like maybe something with the normals have changed in the loader of the new irrlicht version. About the white exported textures: I don't know what the problem is yet, but I'll have a look at it. The only thing you could try out until then is changing the parameters (size of lightmap) or try out different drivers (irrEdit or system graphic drivers). BTW: What licence issues with gcc and DirectX do you have? |
||||
|
I haven't had any joy with trying different parameters, can't think of anything else that might work, though I will see if I can get a hold of those "dodgy" irrlicht dll's for mingw/gcc, that let you use DirectX 8+9 for rendering.drawing the scene, and see if that makes any difference. The license is supposedly you can't use DirectX 8 or 9 for rendering scenes under mingw/gcc, I don't know why, but if you try it, you get an error thrown up, saying those functions aren't available in the .dll. According to the IrrLicht'ers on IRC (and the forum) it is a license issue, that means you can't using them under mingw/gcc. Supposedly there are some precompiled .dll's out there that will let you render.draw scenes using DirectX 8 or 9 with mingw/gcc but you can't redistribute them, which makes it useless if you want other people to see your creations. BTW... It would be nice, the warning box that pops up on loading IrrEdit, after changing the working directory, appeared infront of the "splash box" rather than behind it, as at the moment you have to drag the box from behind it, to see what it says. And maybe a flag could be introduced so it only appears for the first time after you change the working directory and NOT every time IrrEdit loads, as it gets annoying. However this is only a minor quibble. |
||||
|
|