Home » Renegade Discussions » Mod Forum » W3D Blender
() 3 Votes
Re: W3D Blender [message #480676 is a reply to message #467704] |
Wed, 08 May 2013 18:08 |
yesfish
Messages: 16 Registered: May 2012
Karma:
|
Recruit |
|
|
Here is a working prototype of the xml<->w3d python module I mentioned in the last post. The purpose of being a standard library and reference for the format...
https://github.com/huwpascoe/w3d/blob/master/w3d_elem.py
Currently can only w3d->XML files. The code is much nicer than what I was doing last year but I know the format well now.
Every chunk is defined in a simple array and read with a small set of functions. Once it's done you'll be able to both use it to read-write w3d files (if you have a python project) or use it as a reference for the format.
So neat and clear!
{
'name' : 'mesh_user_text',
'code' : 0x0000000C,
'attrib' : [['', 'string']]
},
{
'name' : 'vertex_influences',
'code' : 0x0000000E,
'subname' : 'id',
'subattrib' : [['', 'uint16'], ['_padding', 'uint8', 6]]
},
{
'name' : 'mesh_header3',
'code' : 0x0000001F,
'attrib' : [
['Version', 'version'],
['Attributes', 'uint32'],
['MeshName', 'name'],
['ContainerName', 'name'],
['NumTris', 'uint32'],
['NumVertices', 'uint32'],
['NumMaterials', 'uint32'],
['NumDamageStages', 'uint32'],
['SortLevel', 'sint32'],
['PrelitVersion', 'version'],
['FutureCounts', 'uint32'],
['VertexChannels', 'uint32'],
['FaceChannels', 'uint32'],
['Min', 'vector3'],
['Max', 'vector3'],
['SphCenter', 'vector3'],
['SphRadius', 'float32']
]
},
Still todo:
enter and/or figure out remaining unimplemented chunks (52 left to go)
verify that I correctly guessed the format of the vaguely commented chunks
check data formats (right now everything is barfed out as a string)
XML -> w3d function
utility functions, make it a module.
I don't know when it will be finished.
|
|
|
|
|
W3D Blender
By: yesfish on Tue, 22 May 2012 12:08
|
|
|
Re: W3D Blender
By: Omar007 on Tue, 22 May 2012 12:33
|
|
|
Re: W3D Blender
|
|
|
Re: W3D Blender
|
|
|
Re: W3D Blender
|
|
|
Re: W3D Blender
|
|
|
Re: W3D Blender
By: yesfish on Tue, 22 May 2012 15:23
|
|
|
Re: W3D Blender
By: Mauler on Tue, 22 May 2012 20:49
|
|
|
Re: W3D Blender
By: yesfish on Wed, 23 May 2012 19:04
|
|
|
Re: W3D Blender
By: yesfish on Tue, 29 May 2012 02:35
|
|
|
Re: W3D Blender
|
|
|
Re: W3D Blender
By: iRANian on Tue, 29 May 2012 02:41
|
|
|
Re: W3D Blender
|
|
|
Re: W3D Blender
By: reborn on Tue, 29 May 2012 14:23
|
|
|
Re: W3D Blender
By: yesfish on Tue, 29 May 2012 15:21
|
|
|
Re: W3D Blender
By: yesfish on Fri, 01 June 2012 09:47
|
|
|
Re: W3D Blender
By: reborn on Fri, 01 June 2012 23:31
|
|
|
Re: W3D Blender
By: yesfish on Sun, 03 June 2012 07:31
|
|
|
Re: W3D Blender
|
|
|
Re: W3D Blender
By: Ethenal on Sat, 02 June 2012 10:50
|
|
|
Re: W3D Blender
By: yesfish on Fri, 08 June 2012 10:16
|
|
|
Re: W3D Blender
|
|
|
Re: W3D Blender
By: yesfish on Sat, 09 June 2012 11:06
|
|
|
Re: W3D Blender
By: yesfish on Sun, 24 June 2012 13:58
|
|
|
Re: W3D Blender
By: Omar007 on Sun, 24 June 2012 15:50
|
|
|
Re: W3D Blender
|
|
|
Re: W3D Blender
By: Mauler on Sun, 22 July 2012 11:44
|
|
|
Re: W3D Blender
By: yesfish on Mon, 11 February 2013 13:57
|
|
|
Re: W3D Blender
By: Mauler on Mon, 11 February 2013 15:00
|
|
|
Re: W3D Blender
By: Abjab on Wed, 27 March 2013 20:00
|
|
|
Re: W3D Blender
By: Abjab on Mon, 01 April 2013 18:32
|
|
|
Re: W3D Blender
By: Mauler on Mon, 01 April 2013 23:57
|
|
|
Re: W3D Blender
By: yesfish on Wed, 08 May 2013 18:08
|
|
|
Re: W3D Blender
By: Mauler on Wed, 08 May 2013 19:42
|
|
|
Re: W3D Blender
By: yesfish on Fri, 19 July 2013 20:18
|
|
|
Re: W3D Blender
By: Mauler on Sat, 20 July 2013 00:20
|
|
|
Re: W3D Blender
By: yesfish on Sat, 20 July 2013 23:07
|
Goto Forum:
Current Time: Sun Dec 22 05:04:55 MST 2024
Total time taken to generate the page: 0.01353 seconds
|