Staredit Network > Forums > SC2 Assistance > Topic: Basic Model Editor
Basic Model Editor
Jan 23 2012, 2:09 am
By: DeProgrammer  

Jan 23 2012, 2:09 am DeProgrammer Post #1



Once in a while, I want to accomplish a pretty simple task, and I don't have the tools to do it. I didn't want to download a 3DS Max trial since it's huge...and a trial. But Blender has a M3 importer, but no exporter. There have been a few times I wanted to move a couple polygons in a model, and then there have been a few times I found animations labeled "None" in a model so there was no way to access them. And since I'm a programmer, I solved my problem the hard way. I wrote a quite simple M3 model editor, which can reposition vertices and rename animation sequences. At first, I had just made a program to scale the height of every model in a directory, because that's the only way to change the height of cliff faces.



And I didn't really want to stop so soon, since I spent 3 hours researching the M3 format. :P




I will probably implement the ability to remove vertices and possibly implement the ability to add them, depending on how difficult it ends up being. I'd like to support at least partial modifying of animations, but that's not looking very likely. I realize that effort would be better spent on a Blender exporter, but I haven't used Python before, and I'm not in a position where I'm comfortable starting that type of project right now since I'm entering the Air Force in March.

I hope someone gets some use out of it.

Edit: Moved the download to http://www.sc2mapster.com/assets/deps-m3-model-editor/ so I only have to update it in one place.

Post has been edited 3 time(s), last time on Feb 3 2012, 6:33 am by DeProgrammer.



None.

Jan 23 2012, 2:40 am Jack Post #2

>be faceless void >mfw I have no face

Quote
The application failed to initialize properly (0xc0000135). Click on OK to terminate the application.

:(

Might be something to do with .NET not being installed...



Red classic.

"In short, their absurdities are so extreme that it is painful even to quote them."

Jan 23 2012, 2:45 am DeProgrammer Post #3



Prooobably. This program requires .NET 3.5.



None.

Jan 24 2012, 5:54 pm DeProgrammer Post #4



Fixed a bug where the program loaded the wrong number of vertices. (As long as you didn't modify the vertices that shouldn't have been there in the previous version, it wouldn't have any effect on the model file.)
Fixed sorting by Z value.

I researched a bit more and figured out how faces are drawn, so if I don't get entirely bored with the project, I'll probably enable a polygonal draw mode and adding/removing vertices. (One cannot simply delete vertices without modifying the face data and possibly animation data.) I will also set up editing of material references, so you can put a different skin on a model while still using the original model with its original skin. I'd also like to deal with attach points (which requires implementing bones), but that's pushing it. :P



None.

Jan 24 2012, 7:43 pm TF- Post #5

🤙🏾

Quote from DeProgrammer
I will also set up editing of material references, so you can put a different skin on a model while still using the original model with its original skin. I'd also like to deal with attach points (which requires implementing bones), but that's pushing it. :P

This should be really useful, but if you put it in, see if you can't make the plain RGB materials (no textures) editable too.



🤙🏾

Jan 24 2012, 8:48 pm Jack Post #6

>be faceless void >mfw I have no face

Will you release the source code for it once you're done?



Red classic.

"In short, their absurdities are so extreme that it is painful even to quote them."

Jan 24 2012, 10:00 pm DeProgrammer Post #7



Yeah, if I remember, I'll release it when I don't think I'll work on it any more (mid-March at the latest). :P



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[07:46 am]
RIVE -- :wob:
[2024-4-22. : 6:48 pm]
Ultraviolet -- :wob:
[2024-4-21. : 1:32 pm]
Oh_Man -- I will
[2024-4-20. : 11:29 pm]
Zoan -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
You should do my Delirus map too; it's a little cocky to say but I still think it's actually just a good game lol
[2024-4-20. : 8:20 pm]
Ultraviolet -- Goons were functioning like stalkers, I think a valk was made into a banshee, all sorts of cool shit
[2024-4-20. : 8:20 pm]
Ultraviolet -- Oh wait, no I saw something else. It was more melee style, and guys were doing warpgate shit and morphing lings into banelings (Infested terran graphics)
[2024-4-20. : 8:18 pm]
Ultraviolet -- Oh_Man
Oh_Man shouted: lol SC2 in SC1: https://youtu.be/pChWu_eRQZI
oh ya I saw that when Armo posted it on Discord, pretty crazy
[2024-4-20. : 8:09 pm]
Vrael -- thats less than half of what I thought I'd need, better figure out how to open SCMDraft on windows 11
[2024-4-20. : 8:09 pm]
Vrael -- woo baby talk about a time crunch
[2024-4-20. : 8:08 pm]
Vrael -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
so that gives me approximately 27 more years to finish tenebrous before you get to it?
Please log in to shout.


Members Online: jackwrwn85, zzt