Plastic lamp effect

Software: Away3D 4.x

gaeten, Newbie
Posted: 30 November 2012 11:37 PM   Total Posts: 1

Hi,

I would like to realize a “plastic lamp effect”: a simple mesh like a cube that in switch off mode is white and opaque and in switch on mode is colored and shine. is it possible to do something like this?
Thank you for your help.

   

Avatar
GoroMatsumoto, Sr. Member
Posted: 02 December 2012 03:32 AM   Total Posts: 166   [ # 1 ]
lampMaterial = new colorMaterial(0xFFFFFF);
view.filter3d [new BloomFilter3D()]// glow effect
pointLight.position lampMesh.position

switch off:

lightPicker = new StaticLightPicker([directionalLight]);
lampMaterial.lightpicker lightPicker

switch on:

lightPicker.lights [directionalLightpointLight]// add PointLight for other object around lamp
lampMaterial.lightpicker null// no shading 

You can try “SubsurfaceScatteringDiffuseMethod” too.
For performance, you can use switching 2 bake texture(on/off) with no lightpicker.

 

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X