Thanks for your answer, Joachim Diepstraten
I have found the error. Im sure that is a newbie error.
When I saved the scene I wrote in my file all the vertex of the object, but no the
normals.
All I have done is write the Normal for each vertex, and in the loader class, load the
normal for each vertex.
Now it works.
I dont understand well why happens this, but the important thing by the moment is that
the program works. :)
----- Original Message -----
From: "Joachim Diepstraten" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 20, 2001 9:35 AM
Subject: Re: [JAVA3D] the object disappear if i set a material.
| Hi Borja
|
| > I have written code for saving the scene to my own file format. In this file I
|save all the vertex and the material of the shape3d.
| >
| > When I load the scene if I set a material to the shape3d appearance, the object
|disappears. What is happening?
| >
| > I think all is working fine if I dont set the material and texture of the object,
|but I need loading that.
| >
| > Please help me because its urgent.
| Hmm maybe you don't have any lights? Or turned off. Normaly Shapes nodes
| when created with the default constructor come with a default appearance
| which uses a material which has as emissive color 1.0f, 1.0f, 1.0f
| appearing completly white. So if you don't have any
| light source this shape will still appear.
|
| EOF,
| J.D.
|
| --
| Realtime Raytracer in JAVA
| (http://www.antiflash.net/raytrace)
|
| ===========================================================================
| To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
| of the message "signoff JAVA3D-INTEREST". For general help, send email to
| [EMAIL PROTECTED] and include in the body of the message "help".
==========================================================================To
unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".