This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Java 3d: Cylinder with GEOMETRY_NOT_SHARED showing up white  RSS feed

 
Kai Johnson
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a Java3D program, and I'm trying to put several Cylinders that are the same size on the screen. I want to change a cylinder's appearance when something collides with it, but I've been getting an error when I try to. So I think I need to make its GEOMETRY_NOT_SHARED, but when I do that, the cylinder shows up white no matter what appearance I give it.

I've boiled it down to the following code, which goes in the usual framework of the universe and branch group already set up:




It shows up totally white, with no directional lights on it. Is there something else I need to do to make it show its appearance?
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!