[Papervision3D] BitmapMaterial Shader appears BLACK
John Brookes
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?]
No.
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
//heres smiley
//stick this in your loadconplete
var d:DisplayObject3D = daeModel.getChildByName("mesh1", true); //change
daemodel to what you called your dae
Triangle3D(d.geometry.faces[4]).uv0.u += 1;
Triangle3D(d.geometry.faces[4]).uv1.u += 1;
Triangle3D(d.geometry.faces[4]).uv2.u += 1;
Triangle3D(d.geometry.faces[5]).uv0.u +=1
Triangle3D(d.geometry.faces[5]).uv1.u +=1
Triangle3D(d.geometry.faces[5]).uv2.u +=1
BitmapMaterial(Triangle3D(d.geometry.faces[4]).material).resetUVS();
//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...
URL: <http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20100304/253e706b/attachment.html>
More information about the Papervision3D
mailing list