File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Game Development
Bookmark "Viewing inside the Box!" Watch "Viewing inside the Box!" New topic

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

Joined: Sep 20, 2010
Posts: 4627

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

Joined: Oct 18, 2000
Posts: 4121

Maybe the normals of the sides are only facing outwards?

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:
subject: Viewing inside the Box!
It's not a secret anymore!