Fredrik Your light demo looks nice. The other objects just have too few faces. As the light reflection is pixel-by-pixel Gouraud interpolated using the light values at vertices, few faces means poor light effect. A simple example is the look of a sphere with few faces against a sphere with large amount of faces. The low polygon count sphere will reflect the light in a few special angles, but the high polygon count will looks nice all the time.
Solution: Build, or import, a cube with more mesh faces per side. Tip: if you put a 4 side base Cone build as : Cone top = new Cone(sideSize, // x size 0.01f, // height, primflags, // primitive flags 4, // 4 side base 32, // 32 division border to centre a ap); //the appereance just over you cube or ground object will solve it by increasing polygon count of the enlighten surface. Alessandro PS.: my eyes are failing or that cylinder light really dimmer up and down ?? This effect with light color changing from orange to ligh blue should be terrific... --- Fredrik Andersson <[EMAIL PROTECTED]> escreveu: > Hello! > > I try to learn how the light classes works in > Java3D. > > I have created a small app that contains 3 > gaslights. Below each gaslight > there > is a surface, cylinder, box and a instance of a > class called Ground (a > Shape3D > rectangle). > > The gaslight emitts a spotlight downwards. The light > that hits the > cylndertop > creates a very nice effect. But in some how it only > seems to hit the > cylinder. I > would like to be able to create the same effect on > my other objects below a > gaslight. > > Perhaps it is something wrong with the apparence, I > do not know? > > I also have problems to regulate the size of the > spreadangle and > concentration > of the light. If I change it it doesn't seems to > have any effect. This code > is > inside the class GasLight. > > So if you would like to test it, and see if you can > help me out. I would be > greatfull. Below is all the code, ready to be > compiled and lounched. > > To turn of the the directionlight and the > ambientlight just comment the > line: > simpleUniverse.addBranchGraph( addLight() ); > > Best regards > Fredrik Andersson > ______________________________________________________________________ Participe da pesquisa global sobre o Yahoo! Mail: http://br.surveys.yahoo.com/global_mail_survey_br =========================================================================== 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".