Page 1 of 1
Troll and i smd models
Posted: Fri Apr 07, 2017 3:32 pm
by Roman
I have Win 7 and game Troll and I not launch on Win 7 !
But i found smd models in this game !
This game for 2017 year.
I try smd importer(2011) for 3d max 2009 , but model was not loaded.
FOREST_01_DIRT_HILL_01.rar
Re: Troll and i smd models
Posted: Mon Apr 17, 2017 8:17 am
by shakotay2
have a look at the smd in a hexeditor to see that it's binary data
Forest_Dirt_Hill.JPG
(no normals)
It starts with this submesh (FVFsize= 60, has normals):
0x12600 1218
Vb1
60 28
0x888 1218
020000
0x0 255
Re: Troll and i smd models
Posted: Sun Apr 23, 2017 7:32 am
by Roman
Hm...
shakotay2 do you use PRIMITIVE_TOPOLOGY_TRIANGLELIST ?
My mesh not look like on your picture !
And i find Box.smd mesh.
BOXORIGIN.rar
I render correct this box.smd (vertices offset 24 decimal value not hex) PRIMITIVE_TOPOLOGY_TRIANGLELIST and 36 indexes and 24 vertices.
Vertex begin at 0x0888 and Index begin at 0x0AC8
Re: Troll and i smd models
Posted: Sun Apr 23, 2017 8:36 am
by shakotay2
Roman wrote:shakotay2 do you use PRIMITIVE_TOPOLOGY_TRIANGLELIST ?
guess, no. (There's many other names, for example
D3DPT_TRIANGLELIST or GL_TRIANGLES.)
I just use the face indices from the model to create triangles, one after the other.
You could open the
test.obj which
hex2obj creates with a text editor and compare the faces to the ones your app produces:
f 1/1 2/2 3/3
f 4/4 5/5 6/6
For the Forest_Dirt_Hill sample you could even use the face autocreation feature (button noPtC -> Fake).
(Be aware that there's a naming bug, it says "autocreated tristripped", but it's normal triangles only. )
Re: Troll and i smd models
Posted: Sun Apr 23, 2017 11:59 am
by Roman
Aha !
I found 'VERT' and i use this data for vertices !
Now i understood and now work all fine
Thanks !
Re: Troll and i smd models
Posted: Sat May 13, 2017 11:32 am
by Karpati
Roman wrote:Aha !
I found 'VERT' and i use this data for vertices !
Now i understood and now work all fine
Thanks !
Did you find the UV datas for the character model (48 bytes vertex size)?