ywywdh / papervision3d

Automatically exported from code.google.com/p/papervision3d
0 stars 0 forks source link

ASE texture don't work #113

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Importing even sample 1.5 ase files in 2.0 throws an error "ERROR: 
MaterialObject3D: transformUV() material.bitmap not found!" and plain 
color shows up (i think it's the first or last pixel of the texture) 
instead of moviematerial, bitmapmaterial, bitmapassetmaterial, etc.
colormaterial, wireframematerial works.

Original issue reported on code.google.com by mar...@gmail.com on 9 Oct 2008 at 9:43

GoogleCodeExporter commented 9 years ago
http://www.ultrashock.com/forums/actionscript/papervision-2-0-ase-parser-texture
-
issue-91926.html

http://osflash.org/pipermail/papervision3d_osflash.org/2008-January/017068.html

Original comment by mar...@gmail.com on 16 Oct 2008 at 6:41

GoogleCodeExporter commented 9 years ago
We'll need some sample code to confirm.

Original comment by r.hauw...@gmail.com on 17 Oct 2008 at 1:50

GoogleCodeExporter commented 9 years ago
http://osflash.org/pipermail/papervision3d_osflash.org/2008-January/017068.html

On file org.papervision3d.objects.parsers.Ase.as

Line 291.

//  faceUV[0] = uvs[ parseInt( mtfl[1] )];
//  faceUV[1] = uvs[ parseInt( mtfl[2] )];
//  faceUV[2] = uvs[ parseInt( mtfl[3] )];
    faces[ num ].uv0 = uvs[ parseInt( mtfl[1] )];
    faces[ num ].uv1 = uvs[ parseInt( mtfl[2] )];
    faces[ num ].uv2 = uvs[ parseInt( mtfl[3] )];

that's all you need to fix, confirmed.

Original comment by mar...@gmail.com on 17 Oct 2008 at 3:03

GoogleCodeExporter commented 9 years ago
Almost the total fix. Added some more and now totally fixed. Thank you for 
reporting.

Original comment by r.hauw...@gmail.com on 17 Nov 2008 at 12:47