What is going on with my lighting.

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
Philth
Posts: 8
Joined: Tue Mar 01, 2005 11:34 pm

What is going on with my lighting.

Post by Philth »

The shading is all pixelated on my objects. I'm using a dynamic light .. And it seems to work somewhat and then the shading just goes to huge blocks and my objects look like they're flat shaded instead of smooth.

Here's an image:

Image

A snippit of code is like:

node1 = smgr->addAnimatedMeshSceneNode( mesh1 );
node1->setMaterialFlag(EMF_LIGHTING, true);
smgr->addLightSceneNode(0,vector3df(0,-10,-30),SColorf(1.0f, 1.0f, 1.0f, 1.0f), 600.0f);

And that's all im doing to the obect(s)....

I want shading, I dont want everything to be lit.
Philth
Posts: 8
Joined: Tue Mar 01, 2005 11:34 pm

Post by Philth »

I found out the problem is LithUnwrap and the way it saves all model formats. I loaded the "earth.x" model from one of the tuts and it looked fine .. So I loaded it into LithUnwrap and it looked fine still. I saved it as Earth2.x without changing anything and tried my program again and it looked like crap as pictured above.

In short: LithUnwrap is useless. The free version anyways.

Can anyone suggest any other texture mapping program that can also import formats and such? I've spent nearly a week trying to figure this out and it's a bit painful coming to this conclusion. Argh.
MikeR
Posts: 767
Joined: Sun Dec 26, 2004 4:03 pm
Location: Northern California USA
Contact:

Post by MikeR »

http://www.unwrap3d.com/ is probably a good deal. It is what lithunwrap became. I'm told that it does a great job.
If it exists in the real world, it can be created in 3d

Sys specs:
AMD 3700+ 64 processor
1.0 gb ram
e-Geforce 6600 graphics 256 mb onboard ram
Philth
Posts: 8
Joined: Tue Mar 01, 2005 11:34 pm

Post by Philth »

Well, I tried the demo, but doesn't allow me to save. So I can't tell if this does what I want it to do. Bleagh.
Post Reply