Double Side Material Possible in Away3d 4.0 ?

Software: Away3D 4.x

Concept Z, Sr. Member
Posted: 27 June 2011 12:53 PM   Total Posts: 124

There is a sphere , with a rounded hole on its surface , i want to apply a BitmapMaterial on its outside surface , then apply another BitmapMaterial on its inside surface , so , when the light penetrate the hole , i can see both the surface of the sphere !


But currently , i can’t achieve such effect using Away3d Broomstick .


Anyone can help me ? thanks in advance !

 Signature 
signature_image

Anyone can cook but only the fearless can be great

   

YG, Newbie
Posted: 23 November 2011 11:53 PM   Total Posts: 18   [ # 1 ]

this is very necessary.
i need it to.

if it not exist can you point we to a direction how to build it

   

Alex Bogartz, Sr. Member
Posted: 24 November 2011 01:47 AM   Total Posts: 216   [ # 2 ]

This is easily done by unwrapping your mesh in your 3D program and applying the textures there. Make sure you export those UVs. Then when you import the model, just set the material as needed.

   

Avatar
theMightyAtom, Sr. Member
Posted: 24 November 2011 06:54 AM   Total Posts: 669   [ # 3 ]

Alex, unfortunately it’s more complex than that. First you can’t have different materials on the front and back of a face, and secondly if you apply light(s) to a material they will only work on the side where the normals are pointing outwards.

However, it can be done smile
You need to make a copy of your mesh, scale it by a very small amount (for example 0.999) and then use the MeshHelper class to flip the normals.
Now you have 2 spheres, the one with lighting/material on the inside (should be the smaller one, obviously) and one with the normals pointing outwards.

This should give you the result you’re looking for, even if it does double your geometry.

Good Luck!

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X