This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Game Development and the fly likes Viewing inside the Box! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Game Development
Bookmark "Viewing inside the Box!" Watch "Viewing inside the Box!" New topic
Author

Viewing inside the Box!

Ashish Malik
Ranch Hand

Joined: Jul 11, 2010
Posts: 50
I am working in Java 3D to produce a scene of a room. So i used a box to create room. But when the view is inside the box i see nothing but black. I tried placing lights inside, disabled back face culling but to no use.

Any help?
Stephan van Hulst
Bartender

Joined: Sep 20, 2010
Posts: 3893
    
  18

Does the box have a color on the inside?


The mind is a strange and wonderful thing. I'm not sure that it will ever be able to figure itself out, everything else, maybe. From the atom to the universe, everything, except itself.
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

Maybe the normals of the sides are only facing outwards?


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Ashish Malik
Ranch Hand

Joined: Jul 11, 2010
Posts: 50
I have tried with default 'appearance' i.e with white color.
Also tried by assigning a red color.

Regarding the normals, i think you mean normals of face!
But aren't normals of inner faces by default point inwards?
 
Consider Paul's rocket mass heater.
 
subject: Viewing inside the Box!
 
It's not a secret anymore!