Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » W3D Blender  () 3 Votes
Re: W3D Blender [message #469850 is a reply to message #467704] Mon, 25 June 2012 08:50 Go to previous messageGo to next message
NACHO-ARG is currently offline  NACHO-ARG
Messages: 397
Registered: October 2010
Karma: 0
Commander
never liked blender but what you have done so far is really awesome man, dont give up, you will find the way to sircunvent the any obstacle you may find soner or later.
Re: W3D Blender [message #472092 is a reply to message #467704] Sun, 22 July 2012 11:44 Go to previous messageGo to next message
Mauler
Messages: 448
Registered: May 2003
Location: Alberta, Canada
Karma: 0
Commander
I'm very eager to find out if you plan on creating a Max version of these tools, as they would benefit people with the newest versions of Max.. I would use the hell out of it Big Ups
Re: W3D Blender [message #479249 is a reply to message #467704] Mon, 11 February 2013 13:57 Go to previous messageGo to next message
yesfish is currently offline  yesfish
Messages: 16
Registered: May 2012
Karma: 0
Recruit
Sorry I haven't been on here for a while.

Last summer my forever sketchy sleep problems became chronic. I live in the UK, healthcare is free, but it is SLOW. 4 months waiting time for a doctor to tell me that "yep, you're tired" kind of slow. With very limited waking energy to spare, life has had to come first.

So I'm thinking, if everything goes okay, in a few months I might have some time to work on it again, with an improved plan:

1) Separate the w3d interpreter part into an xml<->w3d python module that you could use in 3ds max or blender, etc. which should fix a bunch of issues and make it a general purpose tool for all modders wanting to do stuff.

2) figure out the many issues with Blender and the w3d format and get the damn thing exporting workable models.

"The sleeper must awaken!"
Re: W3D Blender [message #479250 is a reply to message #479249] Mon, 11 February 2013 15:00 Go to previous messageGo to next message
Mauler
Messages: 448
Registered: May 2003
Location: Alberta, Canada
Karma: 0
Commander
Thanks for the reply, and take care of yourself first! I really look forward to hopefully work with newer versions of max for W3D Very Happy Thumbs Up

I have also talked to Abjab, he said he will release his latest W3D tools to myself with intent for hopefully create a new set of w3d tools for latest max versions. Not sure when that will happen, but soon Smile

[Updated on: Mon, 11 February 2013 15:02]

Report message to a moderator

Re: W3D Blender [message #480186 is a reply to message #479250] Wed, 27 March 2013 20:00 Go to previous messageGo to next message
Abjab is currently offline  Abjab
Messages: 12
Registered: August 2010
Karma: 0
Recruit
In case anyone still interested, here's my latest w3d tools (2006) where I left them.

unzip to your 3dsmax or gmax base folder.
tested on max 5 only.

feel free to modify or use part(s) of my script for your own work




EDIT:

Might not be the latest, found this script from 2007

just overwrite (max)/scripts/startup/Abjab's-W3D-Importer.ms with Abjab's-W3D-Importer.ms (2nd link).

EDIT:
or download: Abjab's-W3D-Tools-Latest.zip (third link)

I don't have max or gmax on my pc so can't try'em out, no clue if they even work as is.




[Updated on: Thu, 28 March 2013 16:54]

Report message to a moderator

Re: W3D Blender [message #480251 is a reply to message #467704] Mon, 01 April 2013 18:32 Go to previous messageGo to next message
Abjab is currently offline  Abjab
Messages: 12
Registered: August 2010
Karma: 0
Recruit
Oh boy, I just installed gmax...

This version ain't completed, won't import as is, plus few other things missing like buttons for texture browser and hierarchy builder.

I'll make a "quick" fix for this and will update the link above when done.

Re: W3D Blender [message #480252 is a reply to message #480251] Mon, 01 April 2013 23:57 Go to previous messageGo to next message
Mauler
Messages: 448
Registered: May 2003
Location: Alberta, Canada
Karma: 0
Commander
nice thanks! Thumbs Up
Re: W3D Blender [message #480676 is a reply to message #467704] Wed, 08 May 2013 18:08 Go to previous messageGo to next message
yesfish is currently offline  yesfish
Messages: 16
Registered: May 2012
Karma: 0
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.
Re: W3D Blender [message #480677 is a reply to message #467704] Wed, 08 May 2013 19:42 Go to previous messageGo to next message
Mauler
Messages: 448
Registered: May 2003
Location: Alberta, Canada
Karma: 0
Commander
wow great stuff! keep going buddy Thumbs Up
Re: W3D Blender [message #482807 is a reply to message #467704] Fri, 19 July 2013 20:18 Go to previous messageGo to next message
yesfish is currently offline  yesfish
Messages: 16
Registered: May 2012
Karma: 0
Recruit
https://github.com/huwpascoe/w3d/blob/master/w3d_elem.py

The library can now do both w3d->xml and xml->w3d. I'm so happy, it can convert to and from files already without any data loss!*

It just needs a bit of a cleanup, some testing and perhaps some detective work to verify every chunk of the format before I can declare it OK.




*random junk left by C++ exporters that don't initialize their structs to 0 is lost.
Re: W3D Blender [message #482808 is a reply to message #467704] Sat, 20 July 2013 00:20 Go to previous messageGo to next message
Mauler
Messages: 448
Registered: May 2003
Location: Alberta, Canada
Karma: 0
Commander
Good stuff man! I wish I could get a grasp on coding things Huh
anyways looking forward to future updates
Re: W3D Blender [message #482814 is a reply to message #467704] Sat, 20 July 2013 23:07 Go to previous message
yesfish is currently offline  yesfish
Messages: 16
Registered: May 2012
Karma: 0
Recruit
https://github.com/huwpascoe/w3d
This is the link to the repo itself as the last file was removed. (for some reason I can't edit previous posts)

Thank you to saberhawk for their contribution with the new shaders.

Here's what's left

No idea what to do about these
animation_channel
bit_channel
compressed_animation_channel
compressed_bit_channel
soundrobj_definition

Can't find these for some reason, will keep searching
lodmodel_header
lod
collection_header
placeholder
transform_node
texture_replacer_info

Any opinions on these?
obsolete_w3d_chunk_hmodel_aux_data
obsolete_w3d_chunk_shadow_node

I have no info on them other than what they're called, and that they're obsolete. Do these show up anywhere in westwood games at all? Should I include them?
Previous Topic: Is anyone still producing maps/etc for this game?
Next Topic: White Smoke Effect
Goto Forum:
  


Current Time: Wed Nov 13 04:37:59 MST 2024

Total time taken to generate the page: 0.00943 seconds