Spot light

I need a spot light in my game e.g. a light i can specify an origin and a direction and have a very focused cone of light to highlight areas of my game. I’ve taken a look at the DirectionalLight etc. but cannot find what i’m looking for. can anyone point to any tutorials or suggest where to start.

Thanks

http://java.sun.com/products/java-media/3D/forDevelopers/J3D_1_3_API/j3dapi/javax/media/j3d/SpotLight.html

Also don’t miss the good Java3d PDF tutorials: http://java.sun.com/products/java-media/3D/collateral/index.html#tutorial
“Chapter 6, Lights” could be interesting for you.

Since Xith is similar to Java3d several of Java3d’s Javadocs and Tutorials can be used. Not anything is the same in Xith, though. So please always read with a Xith class/member list next to you in order to cross-check what’s different or still missing in Xith.

PS: In case you want to read the Java3d utils docu, too, you’ve to download Java3d and use the docu inside the archive, because the utils chapter is not online with the Java3d Javadoc.

Check SphereMotionLighting example.

Yuri