I would like to ask for help someone who has some experience with converting away3d [FLASH] projects into away3d [HTML5]. I can’t figure out how to make lights work properly in HTML5.
I created a sample scene to present my problem. The scene contains point light with the following properties:
my_light = new PointLight(); my_light.x = 0; my_light.y = 0; my_light.z = 0; my_light.diffuse = 0.4; my_light.specular = 3; my_light.ambient = 0.001;
The first image shows FLASH version and second one shows HTML5 version. The two look completely different from each other. What’s more, no matter what properties I use, the HTML5 version always looks the same.
Are lights eligible to use in HTML5? If so, what’s the trick? I will appreciate any advice/help.