Lightmap Issue

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
Exuro
Posts: 10
Joined: Sat Nov 22, 2014 5:31 pm

Lightmap Issue

Post by Exuro »

Okay, so I've made some (very bad, placeholder) models for use in my project, and am working on level design. I'm using coppercube, and I've got the models in the levels and textured, but when I calculate the lightmaps this happens:

Image

Random parts of the geometry are black and shaded wrong. I'm wondering if anyone knows why this is happening, and what I am doing wrong?

The models were made in sketchup, which I'm well aware isn't very good for this kind of thing. I'm just not even remotely competent at art, and needed some reference models to design my levels.

Thanks a lot in advance!
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Lightmap Issue

Post by CuteAlien »

First thing to check is probably if the normals are OK. You can do that by loading them in the Irrlicht meshviewer (example 09) and toggling the debug - normals setting. They should all point outwards.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Exuro
Posts: 10
Joined: Sat Nov 22, 2014 5:31 pm

Re: Lightmap Issue

Post by Exuro »

Ah I see. Right, well this is what I got.

Image

That definitely doesn't look right...
The_Glitch
Competition winner
Posts: 523
Joined: Tue Jan 15, 2013 6:36 pm

Re: Lightmap Issue

Post by The_Glitch »

Your problem is not your normal, I've been doing radiosity normal mapping and I'm pretty sure those blacks spots are missed rays. If you can view your light map UVs and select those particular faces you will see they got put outside the lighting info of the texture.

Image

Let's assume this is your lightmap, see how the background padding is black, most likely those UVs for those triangles or faces were mapped out in the black regions of the texture "no Info in those spaces".
Asimov
Posts: 246
Joined: Thu Dec 04, 2014 7:41 pm
Contact:

Re: Lightmap Issue

Post by Asimov »

Hi Exuro,

It would help to see your high resolution model to see what you are aiming for.
What software do you use to create your normalmaps.

I use 3ds max, xnormal and sometimes mudbox.

Best thing about xnormal is that it is free, and lots of video tutorials online. You can still use xnormal even if you use blender or Maya.

Also if you are making normalmaps in 3ds max make sure that you add smoothing groups, and that your cage is big enough to cover your high resolution model.
Post Reply