Page 1 of 1

DSpans: UVWMaps

PostPosted: Fri Jun 24, 2011 6:11 am
by Sirius
I want to recompile an XML file for a drawable spans, but I get an error from PRCC.
"Incorrect number of UVWMaps".
When I look in my file, I find that most vertices indeed have two UVWMaps:
Code: Select all
<UVWMaps>
    <hsVector3 X="0.8081970215" Y="0.02127075195" Z="0.950668335" />
    <hsVector3 X="-0.2063903809" Y="3.543914795" Z="-18.38085938" />
</UVWMaps>

I'm using the version Plasma_Win32_r801.
Any help ? Should I remove the second UVWMap ?

Re: DSpans: UVWMaps

PostPosted: Sat Jun 25, 2011 1:32 am
by Lontahv
Your buffergroup format flags are indicating a number of UVW's other than 2. If you aren't sure how to fix it, you can post your Format flags here and I can tell you what they should be set to.

Re: DSpans: UVWMaps

PostPosted: Sat Jun 25, 2011 6:19 am
by Sirius
Thanks Lontahv ! My buffer group was indeed <plGBufferGroup Format="0x81"> instead of <plGBufferGroup Format="0x82">. I didn't know it influenced it. Now I'll be more careful !

EDIT: now there is a bug: when I load the page with the file, there are texture problems (cursor replaced by a white box, faces appearing or dissapearing in the whole Age, the avatar's textures sometime used instead of the correct textures, alpha bugs...). The Format was changed to 0x000082 instead of 0x82. I'll see if I didn't make any error in the file, might be the bug.

Re: DSpans: UVWMaps

PostPosted: Sun Jun 26, 2011 10:39 am
by diafero
0x000082 is exactly the same as 0x82, just with some more loading zeroes - but just like 01 and 1 are the same number, this doesn't change anything :D

Re: DSpans: UVWMaps

PostPosted: Mon Jun 27, 2011 12:59 am
by Sirius
Yes, it doesn't seem to be a problem. I was just wondering because in the original file it was 0x82.

For the crash, I just made an error with the drawable spans. Now it works fine.

Thank you for the help !