Page 1 of 2

IrrEdit - shadowz. (pic heavy)

Posted: Thu May 07, 2009 2:06 am
by dandi8
I shall destroy the earth by spamming this forum with my questionz! jk :)

I've been playing around with IrrEdit and decided I want to have some shadows in my map so I made a quick shadows pass with the lightmap tool. To my confusion, the shadows were all messed up and rendered as if the map model was flat shaded (and it's gouraud, I tells ya).

Pic (global illumination):
Image

Pic (shadows):
Image

How do I fix this?

Here's a target render showing how I want this to look like:
Image

yeah

Posted: Thu May 07, 2009 2:14 pm
by 3DModelerMan
Yeah I noticed that to when I tried. I'm just using Blender now :) .

Posted: Thu May 07, 2009 2:15 pm
by hybrid
Did you check that your normals are actually smoothed? Maybe you use 3ds models?

Posted: Thu May 07, 2009 4:18 pm
by Cloudef
http://forum.thegamecreators.com/?m=for ... 149927&b=8

Maybe we need to port that to Irrlicht? I've used 3DWS and its pretty nifty mapper, but getting the native 3dw format supported by irrlicht would be really neat. I may look into that source later. Should be pretty straight forward as it is in Basic.

Posted: Thu May 07, 2009 7:38 pm
by hybrid
There's a 3dw loader available on the forum.

Posted: Thu May 07, 2009 8:41 pm
by Cloudef
Really?
Gonna search for it, thanks hybrid!

Posted: Thu May 07, 2009 9:19 pm
by dandi8
I'm pretty much tied to OBJ as that's the only format my app hasn't got problems exporting to.

Posted: Thu May 07, 2009 10:19 pm
by timetokill
I've definitely had problems with OBJ and some shadowing/texturing. I've seen the flat shading issue too.

I've taken to just converting everything I have to B3D, it seems to like that format a lot better.

Posted: Thu May 07, 2009 10:39 pm
by hybrid
.obj has not necessarily normals. Better make sure your model contains normals. Otherwise you get flat shaded lighting.

Posted: Thu May 07, 2009 11:34 pm
by dandi8
It has normals, I already said somewhere that I checked for that. I imported the OBJ back to my 3D app and the normals were OK.

Posted: Fri May 08, 2009 7:13 am
by hybrid
MAybe they use smoothing groups there. As said, check that the *file* has *normals*

Tested

Posted: Fri May 08, 2009 1:59 pm
by 3DModelerMan
I tested .b3d versus .obj for you. It didn't work with either of them.

Posted: Fri May 08, 2009 6:21 pm
by dandi8
What do you mean, 3DModelerMan?

Posted: Fri May 08, 2009 9:21 pm
by Lonesome Ducky
IrrEdit lightmaps don't do smooth. They just don't. Try [g]iles, it's been released as a freeware just a few months ago, and is a very powerful lightmapper.

Posted: Wed May 13, 2009 5:57 am
by Eagle_Eye
I tried to look for it on google but i couldn't find it. can you provide a link?