This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons 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: 3602
    
  14

Does the box have a color on the inside?
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?
 
 
subject: Viewing inside the Box!
 
Similar Threads
Has anyone seen a real ghost?
about Room
wrapping to Set
testing concurrency and sleeping threads
Fun Flash Game