IrrEdit - shadowz. (pic heavy)

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.
dandi8
Posts: 45
Joined: Thu Feb 14, 2008 2:01 pm

IrrEdit - shadowz. (pic heavy)

Post 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
If it exists, it can be broken.
3DModelerMan
Posts: 1691
Joined: Sun May 18, 2008 9:42 pm

yeah

Post by 3DModelerMan »

Yeah I noticed that to when I tried. I'm just using Blender now :) .
That would be illogical captain...

My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Did you check that your normals are actually smoothed? Maybe you use 3ds models?
Cloudef
Posts: 123
Joined: Wed Dec 03, 2008 9:02 pm
Location: Finland

Post 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.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

There's a 3dw loader available on the forum.
Cloudef
Posts: 123
Joined: Wed Dec 03, 2008 9:02 pm
Location: Finland

Post by Cloudef »

Really?
Gonna search for it, thanks hybrid!
dandi8
Posts: 45
Joined: Thu Feb 14, 2008 2:01 pm

Post by dandi8 »

I'm pretty much tied to OBJ as that's the only format my app hasn't got problems exporting to.
If it exists, it can be broken.
timetokill
Posts: 74
Joined: Tue Jul 22, 2008 4:28 am
Location: Los Angeles

Post 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.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

.obj has not necessarily normals. Better make sure your model contains normals. Otherwise you get flat shaded lighting.
dandi8
Posts: 45
Joined: Thu Feb 14, 2008 2:01 pm

Post 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.
If it exists, it can be broken.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

MAybe they use smoothing groups there. As said, check that the *file* has *normals*
3DModelerMan
Posts: 1691
Joined: Sun May 18, 2008 9:42 pm

Tested

Post by 3DModelerMan »

I tested .b3d versus .obj for you. It didn't work with either of them.
That would be illogical captain...

My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
dandi8
Posts: 45
Joined: Thu Feb 14, 2008 2:01 pm

Post by dandi8 »

What do you mean, 3DModelerMan?
If it exists, it can be broken.
Lonesome Ducky
Competition winner
Posts: 1123
Joined: Sun Jun 10, 2007 11:14 pm

Post 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.
Eagle_Eye
Posts: 16
Joined: Sun Feb 08, 2009 11:04 pm

Post by Eagle_Eye »

I tried to look for it on google but i couldn't find it. can you provide a link?
Post Reply