Page 1 of 1

Demon Stone model *.XBG

Posted: Thu Apr 21, 2016 10:56 am
by Roman
I get mesh, but i see bad mesh:

Re: Demon Stone model *.XBG

Posted: Thu Apr 21, 2016 10:57 am
by Roman
Start Index +0x3000. Start Vertex +0x4DC0. Vertex stride 0x40
File this model:

Re: Demon Stone model *.XBG

Posted: Thu Apr 21, 2016 11:03 am
by Roman
Indices 16 bit.

Re: Demon Stone model *.XBG

Posted: Thu Apr 21, 2016 5:34 pm
by shakotay2
first submesh, tristripped face indices:
Sorcerer.jpg

Re: Demon Stone model *.XBG

Posted: Thu Apr 21, 2016 5:50 pm
by Roman
Thanks.
tristripped face indices
You mean quad indices ?

Re: Demon Stone model *.XBG

Posted: Thu Apr 21, 2016 6:06 pm
by shakotay2
nope. Google for 'triangle strips'.

Re: Demon Stone model *.XBG

Posted: Thu Apr 21, 2016 6:34 pm
by Roman
Thanks !
Now mesh draw correct.

Re: Demon Stone model *.XBG

Posted: Tue Apr 26, 2016 9:38 am
by Szkaradek123

Code: Select all

offset 0	NM40
offset 4	(2,)
offset 8	(50, 26)
offset 12	(1.0, 1.0, 1.0, 1.0, 3.0)
offset 48	(64, 204-offset to info section, 873, 184)
offset 64	(3, 3, 0, 0, 2, 0, 80, 0, 0, 0)

offset 204	(0, 3)
offset 208	(236,)-offset to mesh info

offset 212	(2, 1)
offset 216	(437,)-offset to mesh info
offset 220	(3, 1)
offset 224	(489,)-offset to mesh info
offset 228	(3, 1)
offset 232	(541,)-offset to mesh info

#mesh count = 3

offset 236	(1, 0, 24, 3801-indice count)
offset 244	(1464-vert count, 320, 12288-indice stream offset, 19904-vert stream offset, 344)
offset 264	(1, 0, 24, 1741)
offset 272	(647, 364, 113600, 117088, 388)
offset 292	(1, 0, 9, 203)
offset 300	(68, 408, 158496, 158912, 417)

#next 3 meshes

offset 437	(1, 0, 4, 1095, 350-indice count, 0)
offset 449	(465, 163264-indice stream offset, 165456-vert stream offset, 469)
offset 465	(4880, 5396)
offset 489	(1, 0, 4, 2315, 768, 0)
offset 501	(517, 187856, 192496, 521)
offset 517	(4880, 5396)
offset 541	(1, 0, 4, 2463, 891, 14)
offset 553	(569, 241648, 246576, 573)
offset 569	(4880, 5396)

Re: Demon Stone model *.XBG

Posted: Tue Apr 26, 2016 12:04 pm
by Roman
Szkaradek123
You script for blender ?