MeshEx - .msh exportation for Gmax + XSI Mdt's
Moderator: Moderators
-
MasterSaitek009
- Black Sun Slicer
- Posts: 619
- Joined: Wed Aug 23, 2006 4:10 pm
Re: MeshEx - .msh exportation for Gmax + XSI Mdt's
We are all very grateful for your work Rep'. 
-
MandeRek
- Sith Master

- Posts: 2766
- Joined: Tue Oct 02, 2007 10:51 am
- Projects :: Battlefront Zer0
- xbox live or psn: No gamertag set
- Location: Ghosting around GT
- Contact:
Re: MeshEx - .msh exportation for Gmax + XSI Mdt's
Fantastic Rep! You´re making something for the community which was never to be expected, and you´re saving us A LOT of money... really nice that obj is compitable as well, great work

-
RepSharpshooter
- Gametoast Staff

- Posts: 1351
- Joined: Tue Jul 10, 2007 4:10 pm
Re: MeshEx - .msh exportation for Gmax + XSI Mdt's
Well I think the obj import things work. Now just to debug the rest of it. 
-
MandeRek
- Sith Master

- Posts: 2766
- Joined: Tue Oct 02, 2007 10:51 am
- Projects :: Battlefront Zer0
- xbox live or psn: No gamertag set
- Location: Ghosting around GT
- Contact:
-
RepSharpshooter
- Gametoast Staff

- Posts: 1351
- Joined: Tue Jul 10, 2007 4:10 pm
Re: MeshEx - .msh exportation for Gmax + XSI Mdt's
Ok, a mysterious error while writing the file is now gone, and it's better code anyway. The polygon stripping algorithms are so-so. They work well if all you want to export are planes. So at this point, it can export planes. Problems arise when the triangles are turned different ways. A strip can only be in a clockwise fashion. If you have a triangle turned the other way, it makes a weird shape. Ex: a strip should look like this |\|\|\|\| Zig-zaggy. When you have the triangles turned in different directions, it goes like this: |\_|\|\_| and does weird things, which isn't good. So my option is to cut (at the points with the _) the strip up into smaller strips like |\ *cut* /| *cut* |\ *cut* /| or something like that.
-
RepSharpshooter
- Gametoast Staff

- Posts: 1351
- Joined: Tue Jul 10, 2007 4:10 pm
Re: MshEx - .msh exportation for Max + XSI Mdt's
WOOT

(MshEx-ported)
For more:
Note this is JK514's skin, I just used it to test adding override textures a while back.
Problem is it seems you have to almost be a professional in modeling in order to use it. There's a certain thing you have to do for it to export the uvs correct. You have to detach the faces that have different uv mapping from the faces around them. This is hard to grasp by some people. So in the mean time, still testing it. Hopefully I'll be able to make a simpler and functional program later. (Like some people don't feel comfortable hex editing hps into it, so I guess I'll have to add a function to do so).

(MshEx-ported)
For more:
Hidden/Spoiler:
Problem is it seems you have to almost be a professional in modeling in order to use it. There's a certain thing you have to do for it to export the uvs correct. You have to detach the faces that have different uv mapping from the faces around them. This is hard to grasp by some people. So in the mean time, still testing it. Hopefully I'll be able to make a simpler and functional program later. (Like some people don't feel comfortable hex editing hps into it, so I guess I'll have to add a function to do so).
-
MandeRek
- Sith Master

- Posts: 2766
- Joined: Tue Oct 02, 2007 10:51 am
- Projects :: Battlefront Zer0
- xbox live or psn: No gamertag set
- Location: Ghosting around GT
- Contact:
Re: MeshEx - .msh exportation for Gmax + XSI Mdt's
Still, as i said before, this is fantastic man! You really did hell of a job on this one 
-
RepSharpshooter
- Gametoast Staff

- Posts: 1351
- Joined: Tue Jul 10, 2007 4:10 pm
Re: MeshEx - .msh exportation for Gmax + XSI Mdt's
Ok so now I'm looking into MaxScript, and how I can extend the obj format to meet my needs. I'll looking into weights, bones, and enveloping right now. I understand the WGHT chunk, not sure about the ENVL chunk as of now. The Maxscript seems straightforward, I'll have to look at some more WGHT chunks and see if everything is rigidly skinned (each vertex is only weighted to one bone). Then I'll try and mess around with some of max's skinning functions (fyi skinning = enveloping = rigging = weighting sorta). And since I'll be using a maxscript obj exporter, I can customize it for better msh export. It's a lot to look forward to, sadly not enough time to do it all as I would like.
- AceMastermind
- Gametoast Staff

- Posts: 3285
- Joined: Mon Aug 21, 2006 6:23 am
- Contact:
Re: MeshEx - .msh exportation for Gmax + XSI Mdt's
Rigging
the process by which a person creates constraints and relationships
between objects that will generate controls to aid in the manipulation of a digital character
Enveloping
surrounding and closing in on (surround the skeleton with a mesh)
Skinning
the process where a model is wrapped around a skeleton.
When the skeleton moves, the model will move correspondingly.
The model effectively forms a skin over the skeleton joints.
Weighting
the process of systematically increasing the value of a particular data
element or elements so as to give that element more significance in the analysis or calculations.
I had to do it
the process by which a person creates constraints and relationships
between objects that will generate controls to aid in the manipulation of a digital character
Enveloping
surrounding and closing in on (surround the skeleton with a mesh)
Skinning
the process where a model is wrapped around a skeleton.
When the skeleton moves, the model will move correspondingly.
The model effectively forms a skin over the skeleton joints.
Weighting
the process of systematically increasing the value of a particular data
element or elements so as to give that element more significance in the analysis or calculations.
I had to do it
-
RepSharpshooter
- Gametoast Staff

- Posts: 1351
- Joined: Tue Jul 10, 2007 4:10 pm
Re: MeshEx - .msh exportation for Gmax + XSI Mdt's
Yeah Yeah
You can go into details like that (hence the "sorta" lol).
So now I have a run-of-the-mill object exporter which I will expand. Right now it only walks objects under the rootnode which is bad, because then I need to walk down the object's children that are under the root node. Like
So now I have a run-of-the-mill object exporter which I will expand. Right now it only walks objects under the rootnode which is bad, because then I need to walk down the object's children that are under the root node. Like
- rootnode
- object1
- children1
- children2
- object2
- object1
-
MandeRek
- Sith Master

- Posts: 2766
- Joined: Tue Oct 02, 2007 10:51 am
- Projects :: Battlefront Zer0
- xbox live or psn: No gamertag set
- Location: Ghosting around GT
- Contact:
Re: MeshEx - .msh exportation for Gmax + XSI Mdt's
Still, not exporting nulls and bones isn't a real problem... Gogie told me that everything can be replaced with meshes (if i understood that well) You can use meshes as bones, and, also, as nulls. Example; the assets weapons... Bones don't have an example, though tentacles get animated with meshes as bones... So this is not a worryingpoint i believe...
-
RepSharpshooter
- Gametoast Staff

- Posts: 1351
- Joined: Tue Jul 10, 2007 4:10 pm
Re: MeshEx - .msh exportation for Gmax + XSI Mdt's
That's interesting
I'll have to look more into that.
Well I've switched from bones and nulls to materials. I can now export all the materials in a scene, with correct texture names, diffuse colors etc. Also, I'm going to work on separating the mesh into segments depending what material they have (This will make it so you can have multiple materials applied to a single object). This is a feature I definitely need to do any other type of texturing. Unfortunately it causes headaches in nearly every section of my program, lol
. Then I have to fix that weird uv problem as well.
Well I've switched from bones and nulls to materials. I can now export all the materials in a scene, with correct texture names, diffuse colors etc. Also, I'm going to work on separating the mesh into segments depending what material they have (This will make it so you can have multiple materials applied to a single object). This is a feature I definitely need to do any other type of texturing. Unfortunately it causes headaches in nearly every section of my program, lol
-
MandeRek
- Sith Master

- Posts: 2766
- Joined: Tue Oct 02, 2007 10:51 am
- Projects :: Battlefront Zer0
- xbox live or psn: No gamertag set
- Location: Ghosting around GT
- Contact:
Re: MeshEx - .msh exportation for Gmax + XSI Mdt's
It sounds that you're doing a great job! My dad always says that headaches are caused by hard- and succesful work! Great job Rep! Btw, if it works; replacing bones and nulls with meshes, i would like to build a new unittemplate for you (replace bones with meshes)
-
Commander_Cody771
- Vader's Apprentice
- Posts: 1069
- Joined: Thu Jun 07, 2007 5:02 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Looking for a new CPU
- Contact:
Re: MeshEx - .msh exportation for Gmax + XSI Mdt's
Wow Rep you have REALLY made considerable progress. 




