Blender WEAPON exporter

Post anything to do with editing Nexuiz here. Whether its problems you've had, questions, or if you just want to show off your work.

Moderators: Nexuiz Moderators, Moderators

Blender WEAPON exporter

Postby ihsan » Fri Sep 28, 2007 4:44 pm

I took the last couple of days and wrote a weapon exporter for Nexuiz. It is currently designed to export the "in your hand" weapon model. It is not finished yet but its useful enough to post.

This is not a zym exporter or a smd exporter really although it exports both formats.

What it DOES:
For SMD export it takes your selected mesh, attaches Bone01 at the origin and outputs a SMD mesh.

For ZYM export :D it takes your selected mesh, attaches Bone01, configures zmodel (included) to bake all standard animations (included) and runs zmodel for you. If you don't have python calling zmodel may fail but all you have to do is run the included batchfile to finish.

Download:
http://xoopstuner.com/nex/Blender-Nexuiz-weapon-export-prealpha.zip

Crylink with spikes:
Image

Blender Interface:
Image
ihsan
Alien trapper
 
Posts: 305
Joined: Fri Mar 03, 2006 3:33 pm
Location: Trinidad (Where Obama met Chavez)

Postby Shoe » Fri Sep 28, 2007 6:49 pm

That is very cool indeed :)

What about more advanced/intricate animations than the standard stuff? Like if a person wanted spinny parts or tubes that would throb, would there be support for stuff like that?
Shoe
Keyboard killer
 
Posts: 517
Joined: Wed Mar 08, 2006 2:18 am

Postby ihsan » Fri Sep 28, 2007 7:08 pm

I need to add the md3 export to have a "complete" weapon exporter and after that a standard HUMANOID exporter is needed.
After those are operational I'll add ANOTHER tool for baking your own animations.
ihsan
Alien trapper
 
Posts: 305
Joined: Fri Mar 03, 2006 3:33 pm
Location: Trinidad (Where Obama met Chavez)

Postby leileilol » Fri Sep 28, 2007 7:10 pm

Why not make a complete DPM/SMD exporter?
field hockey
leileilol
Alien trapper
 
Posts: 299
Joined: Tue Feb 28, 2006 10:00 pm
Location: pole vaulting

Postby torus » Fri Sep 28, 2007 7:19 pm

This is fantastic. Thank you! :D :D
Image
torus
Forum addon
 
Posts: 1341
Joined: Sun Dec 24, 2006 6:59 am
Location: USA

Postby ihsan » Fri Sep 28, 2007 7:31 pm

leileilol wrote:Why not make a complete DPM/SMD exporter?

Various SMD exporters have varying degrees of support for Mesh, Skeleton, Animation and Physics. Writing a true SMD exporter would take much more than 2 days.
Also, a perfect SMD exporter still leaves a lot of zmodel configuring, and Nexuiz specific up to the user. The Blender template with all animations would be very complex and, hence, very delicate.
My approach was to make a simple tool specifically for the jobs of Making weapons and making characters. I'm keeping it simple and effective.

Before yesterday Ii never programed in python so why don't you give it a shot?
ihsan
Alien trapper
 
Posts: 305
Joined: Fri Mar 03, 2006 3:33 pm
Location: Trinidad (Where Obama met Chavez)

Postby Taiyo.uk » Sat Sep 29, 2007 1:12 pm

Great stuff, easy exporters will make adding much needed content less bothersome.
Taiyo.uk
Alien trapper
 
Posts: 436
Joined: Mon Apr 17, 2006 8:48 pm
Location: Reading, IN-GER-LUND!!!

Postby ihsan » Sun Sep 30, 2007 1:37 am

I bolted on the XreaL md3 exporter so the weapon export script will be done soon. :D
I have offset and scaled the md3 export module to match the humanoid models i.e. it is setup to export v_crylink.md3.
The ground model seems to be self animated so if you overwrite g_crylink.md3 it will not spin (and it would be slightly buried in the ground) .

:?: I need to know which frames the weapon spin animation is read from. Please help.

Here's what md3 export outputs from crylink.blend:
Don't move anything around and it would fit in the model's hand perfectly.
Image

First person perspective is also OK out-of-the-box. I just need to sort out the ground animation.

Image
ihsan
Alien trapper
 
Posts: 305
Joined: Fri Mar 03, 2006 3:33 pm
Location: Trinidad (Where Obama met Chavez)

Postby KadaverJack » Sun Sep 30, 2007 1:49 am

ihsan wrote::?: I need to know which frames the weapon spin animation is read from. Please help.

Afaik there's a flag in the md3 model format that causes the model to spin when it's enabled. There's no "real" animation involved, it's hardcoded in the engine.
KadaverJack
Site admin and forum addon
 
Posts: 1102
Joined: Tue Feb 28, 2006 9:42 pm

Postby tZork » Sun Sep 30, 2007 5:23 am

grab modeltool from the DP SVN repos and patch you model with one of the following:

Code: Select all
EF_ROCKET       1                       // leave a trail
EF_GRENADE      2                       // leave a trail
EF_GIB          4                       // leave a trail
EF_ROTATE       8                       // rotate (bonus items)
EF_TRACER       16                      // green split trail
EF_ZOMGIB       32                      // small blood trail
EF_TRACER2      64                      // orange split trail + rotate
EF_TRACER3      128                     // purple trail


Great job on the exporter btw!
HOF:
<Diablo> the nex is a "game modification"
<Diablo> quake1 never had a weapon like that.
<Vordreller> there was no need for anything over 4GB untill Vista came along
<Samua>]Idea: Fix it? :D
<Samua>Lies, that only applies to other people.
tZork
tZite Admin
 
Posts: 1337
Joined: Tue Feb 28, 2006 6:16 pm
Location: Halfway to somwhere else

Next

Return to Nexuiz - Editing

Who is online

Users browsing this forum: No registered users and 1 guest

cron