www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: gpsunjp on June 16, 2006, 08:53:32 am

Title: How to set a Object color?
Post by: gpsunjp on June 16, 2006, 08:53:32 am
Hello

I have two objects. One is yellow, and the other is blue. How to set the objects' color? I do not want to use texture.

Sun
Title: How to set a Object color?
Post by: Raven on June 16, 2006, 12:00:22 pm
Hi there.

If I remember correctly you just need to call the setAdditionalColor(java.awt.Color) on the Object3D in question.

-Raven.
Title: How to set a Object color?
Post by: Melssj5 on June 16, 2006, 02:39:57 pm
Yes, you can use setAditionalColor, but, the method is mostly used for give an ilumination to an object so the resultant color will be very bright. This question was answered few time ago. In anyway, have a look to the model3d program on the download section. I use it to set the color of my objects. Have a look to the resultant color and check if its what you need (unzip it at a path with non spaces like C:\whatever\).
Title: How to set a Object color?
Post by: EgonOlsen on June 16, 2006, 03:50:22 pm
The question has already been answered here: http://www.jpct.net/forum/viewtopic.php?t=554