ambiera logo

Ambiera Forum

Discussions, Help and Support.

folder icon Ambiera Forum > irrEdit
forum topic indicator Lightmaps seem not to be exported.
person icon
Yodhe
Registered User
Quote
2007-10-19 14:58:18

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.



person icon
Yodhe
Registered User
Quote
2007-10-19 16:14:18

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

person icon
niko
Moderator
Quote
2007-10-20 07:52:13

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.

person icon
Yodhe
Registered User
Quote
2007-10-21 15:15:05

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.

person icon
niko
Moderator
Quote
2007-10-22 21:39:32

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?

person icon
Yodhe
Registered User
Quote
2007-10-23 16:03:10

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.


Create reply:










 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


icon_holyicon_cryicon_devilicon_lookicon_grinicon_kissicon_monkeyicon_hmpf
icon_sadicon_happyicon_smileicon_uhicon_blink   






Copyright© Ambiera e.U. all rights reserved.
Contact | Imprint | Products | Privacy Policy | Terms and Conditions |