how to set different material on plane back side or front side ?
Software: Away3D 4.x
layola, Newbie Posted: 26 December 2011 04:49 AM Total Posts: 3
how to set different material on plane (or other mesh)back side or front side ?
away3d 3.x just set {back:materialback ,front:materialfront}
and I don’t know how to do same in away3d 4.
I only found bothsides on base material.
YopSolo, Newbie Posted: 26 December 2011 05:34 PM Total Posts: 2
[ # 1 ]
Same question for a : away3d.primitives.Cube
shall i create an ObjectContainer3D with 6 planes, if i want give différent material to each side ?
YopSolo, Newbie Posted: 27 December 2011 11:02 AM Total Posts: 2
[ # 2 ]
just found a double sided prop.
i suppose that you have to create 2 differents planes.
layola, Newbie Posted: 11 January 2012 04:22 PM Total Posts: 3
[ # 3 ]
up,+
bmanderscheid, Newbie Posted: 12 December 2012 08:08 PM Total Posts: 8
[ # 4 ]
Can anyone point me to an example of this being done. I still haven’t found a complete solution or example of a plane with different materials on front and back.
Thanks!
80prozent, Sr. Member Posted: 12 December 2012 09:54 PM Total Posts: 430
[ # 5 ]
Hi
you need to create two different materials,
the bothSides=true parameter can be set for one material, meaning that the same material will be shown on both sides of the faces.
to create a playing card, create two planes and addChild them to the same objectcontainer.
give each plane a different material, set bothSides=true for both materials
move both cards a little bit along one axis
if one of the visuall sides of the cards appear to be mirrored, you need to rotate this card around 180°.
hope that helps
bmanderscheid, Newbie Posted: 12 December 2012 10:05 PM Total Posts: 8
[ # 6 ]
awesome, it worked!
The sample textures I used were 512 x 512.
Using my textures at 300 x 400 it doesnt render at all.
Is this just a rule I have to follow? like 256 x 512 etc?
Thanks!
bmanderscheid, Newbie Posted: 12 December 2012 10:05 PM Total Posts: 8
[ # 7 ]
awesome, it worked!
The sample textures I used were 512 x 512.
Using my textures at 300 x 400 it doesnt render at all.
Is this just a rule I have to follow? like 256 x 512 etc?
Thanks!
80prozent, Sr. Member Posted: 12 December 2012 10:07 PM Total Posts: 430
[ # 8 ]
jeah
all textures must have sizes of power of two (64 128 256 512 1024 2048)