Salil Jain
2010-07-15 05:40:10 UTC
I am trying to pass particular triangle from the image to Face3d by
following code
new Face3D( [v[2], v[3], v[0]], bitmapMaterial.toString() , [[1 , 1], [0 ,
1], [0 , 0]] )
Here array v has my 3d vertices information, bitmapMaterial is the material
and [[1 , 1], [0 , 1], [0 , 0]] is uv array. I don't see any effect of uv
array and it seems to use only uv information. I am using Papervision 1.5 as
in recent version I couldn't find Face3D.as.
I would really appreciate if you can explain what I am doing wrong and how
to achieve rendering of a particular triangle from image in 3d space.
Ultimately I want to render a vrml file. I know Papervision supports DAE
files but I can't use them.
Thanks
following code
new Face3D( [v[2], v[3], v[0]], bitmapMaterial.toString() , [[1 , 1], [0 ,
1], [0 , 0]] )
Here array v has my 3d vertices information, bitmapMaterial is the material
and [[1 , 1], [0 , 1], [0 , 0]] is uv array. I don't see any effect of uv
array and it seems to use only uv information. I am using Papervision 1.5 as
in recent version I couldn't find Face3D.as.
I would really appreciate if you can explain what I am doing wrong and how
to achieve rendering of a particular triangle from image in 3d space.
Ultimately I want to render a vrml file. I know Papervision supports DAE
files but I can't use them.
Thanks