Author Topic: How to set a Object color?  (Read 4600 times)

Offline gpsunjp

  • byte
  • *
  • Posts: 7
    • View Profile
How to set a Object color?
« 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

Offline Raven

  • int
  • **
  • Posts: 62
    • View Profile
    • http://www.vortex.is/raven
How to set a Object color?
« Reply #1 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.

Offline Melssj5

  • double
  • *****
  • Posts: 724
    • View Profile
How to set a Object color?
« Reply #2 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\).
Nada por ahora

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
How to set a Object color?
« Reply #3 on: June 16, 2006, 03:50:22 pm »
The question has already been answered here: http://www.jpct.net/forum/viewtopic.php?t=554