Glass Material

Software: Away3D 4.x

oulaboula, Newbie
Posted: 19 October 2011 10:38 AM   Total Posts: 15

Hi,

I can see here : http://code.google.com/p/away3d/source/browse/trunk/fp10/Away3D/src/away3d/materials/GlassMaterial.as?r=2474

that there was a glass material with away3d for fp10.

But i don’t see it in fp11 away3d repo.

Is there a way to have it ?

thanks

   

Richard Olsson, Administrator
Posted: 19 October 2011 11:58 AM   Total Posts: 1192   [ # 1 ]

In Away3D 4.0 you have proper environment mapping with fresnel effect, which I believe is what the above material is “faking”. Try using the FresnelEnvMapMethod on your material.

   

oulaboula, Newbie
Posted: 19 October 2011 01:21 PM   Total Posts: 15   [ # 2 ]

thanks richard, do you know if anyone have done a texture explorer for away3d ?

i mean, i’m trying to make a glass texture and it turns into making several tests before finding the correct combination…

   

Alex Bogartz, Sr. Member
Posted: 21 October 2011 09:13 PM   Total Posts: 216   [ # 3 ]

Just for reference,  getting a pretty great gold texture with the following.

var coin_material:ColorMaterial = new ColorMaterial(0xFFFF00);
    
coin_material.lights sceneLights;
    
coin_material.gloss .2;
    
coin_material.specular .2;
    var 
fres:FresnelEnvMapMethod = new FresnelEnvMapMethod(cubeMap)
    
fres.normalReflectance .3;
    
fres.fresnelPower .5;
    
coin_material.addMethodfres);
    
coin_material.ambient .7
    
    coin
.material coin_material;
    
scene.addChild(coin); 
   

oulaboula, Newbie
Posted: 22 October 2011 08:59 PM   Total Posts: 15   [ # 4 ]

nice ! thank you man.

I’m about to finish a texture explorer (in waiting the new prefab), just a tool for testing different combination. i’ll share it when finished.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X