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
Post
by dandi8 » Thu May 07, 2009 2:06 am
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):
Pic (shadows):
How do I fix this?
Here's a target render showing how I want this to look like:
If it exists, it can be broken.
3DModelerMan
Posts: 1691 Joined: Sun May 18, 2008 9:42 pm
Post
by 3DModelerMan » Thu May 07, 2009 2:14 pm
Yeah I noticed that to when I tried. I'm just using Blender now
.
hybrid
Admin
Posts: 14143 Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:
Post
by hybrid » Thu May 07, 2009 2:15 pm
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 » Thu May 07, 2009 4:18 pm
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 » Thu May 07, 2009 7:38 pm
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 » Thu May 07, 2009 8:41 pm
Really?
Gonna search for it, thanks hybrid!
dandi8
Posts: 45 Joined: Thu Feb 14, 2008 2:01 pm
Post
by dandi8 » Thu May 07, 2009 9:19 pm
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 » Thu May 07, 2009 10:19 pm
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 » Thu May 07, 2009 10:39 pm
.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 » Thu May 07, 2009 11:34 pm
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 » Fri May 08, 2009 7:13 am
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
Post
by 3DModelerMan » Fri May 08, 2009 1:59 pm
I tested .b3d versus .obj for you. It didn't work with either of them.
dandi8
Posts: 45 Joined: Thu Feb 14, 2008 2:01 pm
Post
by dandi8 » Fri May 08, 2009 6:21 pm
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 » Fri May 08, 2009 9:21 pm
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 » Wed May 13, 2009 5:57 am
I tried to look for it on google but i couldn't find it. can you provide a link?