Discussion:
How to use part of images in Face3D
Salil Jain
2010-07-15 05:40:10 UTC
Permalink
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
Salil Jain
2010-07-15 05:42:20 UTC
Permalink
I don't see any effect of uv
array and it seems to use only uv information.
==>
I don't see any effect of uv
array and it seems to use only v information.

Sorry for typo.
Post by Salil Jain
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
Salil Jain
2010-07-15 06:51:24 UTC
Permalink
Never mind.
I had to add like this
[new NumberUV(0, 0), new NumberUV(0, 1), new NumberUV(1, 1)];

Sorry for wasting your time.

Thanks
Steve D
2010-07-15 13:49:44 UTC
Permalink
It is never a waste to ask a question, especially if we get it answered.
Now, if anyone else has a similar issue, they can see your solution and get
one step closer to solving theirs.

:)
Post by Salil Jain
Never mind.
I had to add like this
[new NumberUV(0, 0), new NumberUV(0, 1), new NumberUV(1, 1)];
Sorry for wasting your time.
Thanks
_______________________________________________
Papervision3D mailing list
http://osflash.org/mailman/listinfo/papervision3d_osflash.org
Loading...