jQuery in Action, 3rd edition
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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 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: 4101
    
  19

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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Viewing inside the Box!
 
It's not a secret anymore!