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.
Plastic lamp effectSoftware: 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? |
||
GoroMatsumoto, Sr. Member
Posted: 02 December 2012 03:32 AM Total Posts: 166 [ # 1 ]
lampMaterial = new colorMaterial(0xFFFFFF); switch off:
lightPicker = new StaticLightPicker([directionalLight]); switch on:
lightPicker.lights = [directionalLight, pointLight]; // add PointLight for other object around lamp You can try “SubsurfaceScatteringDiffuseMethod” too.
|