.sdw 3d files

Skeletons, animations, shaders, texturing, converting, fixing and anything else related to read game models
sd3tree
Posts: 2
Joined: Thu Jul 13, 2017 9:47 am

.sdw 3d files

Post by sd3tree »

example data:
https://mega.nz/#!MoxiHZQI!YJuJJqzkIWiN ... 1XxSrdDsKA
vertex/vertices data starts at 0xa0 ,
vertex/vertices count is 709,
vertex/vertices dataformat is short i think

So on this moment i only have a 3d point cloud

Can someone tell me how to find the faces ?

there are some strings like "VERTEX" "NORMALS" "TEXCOORD" ... in this file i am sure the faces need to be some where too
id-daemon
Posts: 1040
Joined: Sun Mar 22, 2015 7:09 pm

Re: .sdw 3d files

Post by id-daemon »

face indices start somewhere around 0x4200

note that they have separate indices for vertices, normals and texture coordinates
sd3tree
Posts: 2
Joined: Thu Jul 13, 2017 9:47 am

Re: .sdw 3d files

Post by sd3tree »

now i get this
Image
when i start from 0x41ee

how to solve this ?
Szkaradek123
Posts: 124
Joined: Sat Aug 29, 2015 1:13 pm

Re: .sdw 3d files

Post by Szkaradek123 »

Hi

indices data start from 0x41F0

Code: Select all

   #python code
   #big endian
   #start from 0x41EA
   
   faceCount=g.i(1)[0] #integer from 4 bytes
   g.B(2) #skip 2 bytes
   for m in range(faceCount):
      face=[]
      for n in range(3):
         face.append(g.H(1)[0]) #indice - get integer from 2 bytes
         g.seek(4,1) #indices for normals , uv - skipped
      mesh.faceList.append(face)
Karpati
Posts: 107
Joined: Wed Nov 12, 2014 1:46 pm

Re: .sdw 3d files

Post by Karpati »

Can you tell me which program uses the .sdw model files?