Ben, I don't have time to write sample code for this, but the key you may be looking for is to set the bounds of your light source so that it doesn't go outside the box you want illuminated. Otherwise this can be a lighting issue for people that don't understand Java 3D - lights are NOT blocked by objects.
- John Wright Starfire Research Ben Logan wrote: > > Hello, I wonder if someone could take the time to write a simple > lighting example for me, just to help me get my head around how to > program lights. > For example; a simple (ceiling) light on the roof of a 1,1,1 cube, > shining down and lighting the contents of the box (but nothing else) - > so it shouldn't breach the walls in anyway. Of all the books I have on > Java3D this simple example is all I need to help get me started, but I > cant find example code anywhere! > Any help would be much appreciated > > Regards > Ben > > ******************************************** > Ben Logan - Graduate Software Engineer > RCID > Stephenson Building > Newcastle Upon Tyne > NE1 7RU > www.rcid.ncl.ac.uk > ******************************************** > > =========================================================================== > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body > of the message "signoff JAVA3D-INTEREST". For general help, send email to > [EMAIL PROTECTED] and include in the body of the message "help". =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".