Re: [JAVA3D] Simple lighting example

2003-10-28 Thread Jean-Robert D'Amore
Ben, I send you a code with an animated sphere under 3 different lights (ambient, point, directional). You can go in the code and switch each light on and off if you want. You should read j3d tutorials and chapter 6 about lights anyway.. JR Ben Logan wrote: Hello, I wonder if someone could

Re: [JAVA3D] Simple lighting example

2003-10-27 Thread Jeremy Booth
Hi You need to look at bounding leaves if you want to limit where the light is going, if I recall correctly, there was definitly something online at one point to do with this, try googling and looking at the BoundingLeaf javadoc. HTH Jeremy -- Homepage: http://www.computerbooth.com/ Codepage:

Re: [JAVA3D] Simple lighting example

2003-10-27 Thread John Wright
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 b

[JAVA3D] Simple lighting example

2003-10-27 Thread Ben Logan
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