[Papervision3D] BitmapMaterial Shader appears BLACK
jbpv3d at googlemail.com
Thu Mar 4 13:02:05 PST 2010
[Just one more question that I have is, that when material.tiled = false,
and no shader applied, why did the smiley totally dissappear? ]
Its UV (U) data is -1 t0 0.
Have look on the net about UV editors maps etc
[Is tiled = true required for displaying any material on DAE?]
As long as your UVdata is in the range 0to1 then you don't have to have
tiled set to true. But its best to have it set to true. And the DAE class
does it automagically.
And if that still doesn't make sense, let me confuse you more
//stick this in your loadconplete
var d:DisplayObject3D = daeModel.getChildByName("mesh1", true); //change
daemodel to what you called your dae
Triangle3D(d.geometry.faces).uv0.u += 1;
Triangle3D(d.geometry.faces).uv1.u += 1;
Triangle3D(d.geometry.faces).uv2.u += 1;
//smiley can now have a shader. YAY
Theres nothing wrong with your materials loading, its the UV data thats not
in the 0 to 1 range.
The materials ARE loading.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Papervision3D