light noob question
-
- Posts: 54
- Joined: Wed Oct 04, 2006 6:56 am
light noob question
there is a easy way to setup a light that ligthen all the scene in a uniform way?
I think you want an ambiente light ???
Use setAmbientLight(...) (have a look at the API for more infos) !!!
Use setAmbientLight(...) (have a look at the API for more infos) !!!
while(!asleep) sheep++;
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
-
- Posts: 54
- Joined: Wed Oct 04, 2006 6:56 am
did you set your nodes to Lighting = true ???
while(!asleep) sheep++;
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
-
- Posts: 54
- Joined: Wed Oct 04, 2006 6:56 am
Hmm, it could be that the normals are not correct, but I don't know if this also affects ambiente light...
Of course you can send me your mesh for testing !!!
BTW, what 3d editor you're using ???
Of course you can send me your mesh for testing !!!
BTW, what 3d editor you're using ???
while(!asleep) sheep++;
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
-
- Posts: 54
- Joined: Wed Oct 04, 2006 6:56 am
yes, i tried it, and i cant see the texture in irredit, could this be the problem? also i've upload the mesh that does don't see good if you cant sugest me some 3d editing software ( actually I'm using 3d Studio ) or can make me a litle tutorial of how to solve the problem. For my game I only need simple objects like smooth cubes or something like that.
http://www.megaupload.com/?d=3AE8K0TB
EDIT: also i did put the gold material properties to the model in irrlith and it still sees bad
http://www.megaupload.com/?d=3AE8K0TB
EDIT: also i did put the gold material properties to the model in irrlith and it still sees bad
Now I did not test the models, yet...
I will test them tomorrow...
But I had a look with MilkShape3D ad they look fine with it...
I exported them to .x format !!!
Try them now, perhaps they're working now ???
http://abusoft.g0dsoft.com/models.zip
I will test them tomorrow...
But I had a look with MilkShape3D ad they look fine with it...
I exported them to .x format !!!
Try them now, perhaps they're working now ???
http://abusoft.g0dsoft.com/models.zip
while(!asleep) sheep++;
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
-
- Posts: 54
- Joined: Wed Oct 04, 2006 6:56 am
Well, there are some DX exporters for 3dsm avilable...
But it seems they are not really easy to handle (many posts in the forum about this)...
About the position offset:
no the position is not shifted !!!
it's because I forgot one thing when I converted the meshes:
3dsm uses an other coordinate system, so the meshes are rotated at the origins !!!
Unfortunately this is hard to see if the meshes are symetric !!!
But it seems they are not really easy to handle (many posts in the forum about this)...
About the position offset:
no the position is not shifted !!!
it's because I forgot one thing when I converted the meshes:
3dsm uses an other coordinate system, so the meshes are rotated at the origins !!!
Unfortunately this is hard to see if the meshes are symetric !!!
while(!asleep) sheep++;
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
I just had a look at the coordinate systems...
You'll have to rotate the meshes about -90° on the X-axis !!!
You'll have to rotate the meshes about -90° on the X-axis !!!
Code: Select all
node->setRotation(vector3df(-90, 0, 0));
while(!asleep) sheep++;
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
-
- Posts: 54
- Joined: Wed Oct 04, 2006 6:56 am