Blender Exporter 0.2 alpha release

Topics relating to Modeling with Reality Factory.
User avatar
Graywolf
Posts: 75
Joined: Mon Apr 14, 2008 8:36 pm
Location: Anchorage, Alaska
Contact:

Blender Exporter 0.2 alpha release

Post by Graywolf » Sat Jun 14, 2008 3:55 am

Since I don't think there is one of these around yet...

Here's a blender export script. My test runs so far have been sucessful, but I could really use some feedback and in-the-field testing.

Currently, only NFO export is supported, but the animation shouldn't be too far off.
Attachments
GenBlender-0.2.zip
Blender 2.46 .NFO exporter.
(6.46 KiB) Downloaded 152 times
"So, what's the life of a programmer like?" "...Huh? What life?!"

RF System X:
http://www.realityfactory.info/forum/vi ... f=9&t=3599

User avatar
zany_001
Posts: 1047
Joined: Fri Mar 02, 2007 8:36 am
Location: Aotearoa

Re: Blender Exporter 0.2 alpha release

Post by zany_001 » Sun Jun 22, 2008 10:16 pm

YAAAAAAYY!!!!
*Runs around in a circle waving arms*
YAAAAAAYY!!!!
:D :shock: :lol: :P :mrgreen:
FINALLY!!YAYAYAYAYAAAAAAAAY!!!

lol, thank you very much bro, this will be awesome.
Once I was sad, and I stopped being sad and was awesome instead.
True story.

User avatar
Graywolf
Posts: 75
Joined: Mon Apr 14, 2008 8:36 pm
Location: Anchorage, Alaska
Contact:

Re: Blender Exporter 0.2 alpha release

Post by Graywolf » Wed Jun 25, 2008 9:06 pm

zany_001 wrote:YAAAAAAYY!!!!
*Runs around in a circle waving arms*
YAAAAAAYY!!!!
:D :shock: :lol: :P
FINALLY!!YAYAYAYAYAAAAAAAAY!!!

lol, thank you very much bro, this will be awesome.
You're welcome. :)

I recently had a data disaster and lost the latest version, which 'nearly' had support for animations. Good thing I remember what needs to be done...

Anyways, the animation will still be a bit longer, but hopefully not too long.

I'm also planning to add support for generating AStudio project files... If I recall, they can be used with ActBuild on the command line, right?
Last edited by Graywolf on Sun Jul 13, 2008 12:37 am, edited 2 times in total.
"So, what's the life of a programmer like?" "...Huh? What life?!"

RF System X:
http://www.realityfactory.info/forum/vi ... f=9&t=3599

User avatar
anhdung86
Posts: 45
Joined: Mon Jun 30, 2008 9:47 am
Location: hanoi/vietnam
Contact:

Re: Blender Exporter 0.2 alpha release

Post by anhdung86 » Wed Jul 02, 2008 10:24 am

very useful, i love Blender and hope you will finish your work early :)

Shoujoboy
Posts: 10
Joined: Sat Apr 22, 2006 6:34 am

Re: Blender Exporter 0.2 alpha release

Post by Shoujoboy » Sat Jul 05, 2008 10:30 pm

yay!!! I love blender and I've gotten way better at modeling !
I didn't know how to get models into RF thats the only reason I didn't use it now I can use it and try out my game design ideas !!! WHOOT!! hopefully you can get animation support ! Thank you for making this wonderful gift !! (if you present this to the blender community I'm pretty sure you could single handedly revive this place)

Voltare
Posts: 263
Joined: Tue Jul 05, 2005 10:36 am

Re: Blender Exporter 0.2 alpha release

Post by Voltare » Sat Jul 12, 2008 2:06 am

yeah....that pain in the backside thing they call a game engine is so far behind Rf.....they should just jump at the chance for something usefull.

Allanon
Posts: 493
Joined: Mon Aug 29, 2005 8:23 am

Re: Blender Exporter 0.2 alpha release

Post by Allanon » Sun Jul 13, 2008 4:19 pm

Graywolf, you should also know that this exporter will probably work with the Jet3d engine since it's Actor Studio program also excepts Genesis3d NFO files and with a little tweaking of the data you should be able to add support for Jet3d's weighted vertices.

This is what the vertex data from the G3D NFO file format looks like:

Vertex List
Number of Vertices = 519
-2.140074 -4.829279 9.433767 0.907938 0.646101 1.082276 Bip01 Spine1
-3.999563 -3.373200 8.874804 0.842405 0.995786 0.656621 Bip01 Spine1
-5.064783 -0.656885 9.563820 0.068609 1.073452 0.000001 Bip01 Spine2
-2.068233 -3.907622 5.689651 0.064629 0.670174 0.826667 Bip01 Spine1



This is what the vertex data from the Jet3d NFO file looks like:

Vertex List
Number of Vertices = 519
0 5.444512 -0.589811 45.021313 0.908047 0.646114 1.082143 1.000000 Bip01 Spine1
0 3.849432 -2.387472 44.683033 0.842452 0.995797 0.656496 1.000000 Bip01 Spine1
0 1.616868 -2.985913 45.680084 0.068605 1.073453 -0.000009 1.000000 Bip01 Spine2
0 4.569498 -0.946196 41.282448 0.064738 0.670177 0.826655 1.000000 Bip01 Spine1
0 1.242938 -3.082367 41.051338 0.044648 1.038436 -0.000006 1.000000 Bip01 Spine1



The above example doesn't have vertex blending but it does show the added parameters.

The 0 at the start of the line indicates vertex groups. A new group is started when the value is 0. If all values are 0 then there are no vertex groups. If the value is not equal to 0 then that vertex is added to the group. And the added 1.000000 parameter is the weight of the bone, 1 is full weight and 0 is no weight.

Here is a made up example since I don't have any weighted models:

Vertex List
Number of Vertices = 519
0 5.444512 -0.589811 45.021313 0.908047 0.646114 1.082143 0.250000 Bip01 Spine1
1 5.444512 -0.589811 45.021313 0.908047 0.646114 1.082143 0.750000 Bip02 Spine1
0 3.849432 -2.387472 44.683033 0.842452 0.995797 0.656496 1.000000 Bip01 Spine1
0 1.616868 -2.985913 45.680084 0.068605 1.073453 -0.000009 1.000000 Bip01 Spine2
0 4.569498 -0.946196 41.282448 0.064738 0.670177 0.826655 0.700000 Bip01 Spine1
1 4.569498 -0.946196 41.282448 0.064738 0.670177 0.826655 0.300000 Bip02 Spine1
0 1.242938 -3.082367 41.051338 0.044648 1.038436 -0.000006 1.000000 Bip01 Spine1


Also at the start of the file you need to change NFO 2.0 to NFO 2.1 to tell Jet3d this file contains weighted vertices.

It would be nice if you made a Jet3d version with weighted vertices. :)

User avatar
Graywolf
Posts: 75
Joined: Mon Apr 14, 2008 8:36 pm
Location: Anchorage, Alaska
Contact:

Re: Blender Exporter 0.2 alpha release

Post by Graywolf » Sun Jul 13, 2008 4:36 pm

@Allanon:

Thank you for the excellent info! I'll definitely check into how this relates to Blender's weighting impementation, and if possible, I will add support for it.


On another note, I've finished out my plan for a RF branch release, so this is getting back-burnered for a bit. I'll be working on it here and there, as I develop my release. I plan to finish it up shortly before, or just after, my release is ready... I'll need it for the demo.
"So, what's the life of a programmer like?" "...Huh? What life?!"

RF System X:
http://www.realityfactory.info/forum/vi ... f=9&t=3599

kiwi666
Posts: 4
Joined: Sat Jul 12, 2008 7:41 am

Re: Blender Exporter 0.2 alpha release

Post by kiwi666 » Fri Aug 01, 2008 2:30 am

rock on, this made my day. how long till both animation and model can be exported?
You have no idea how happy i am, i am working on a rf game and my milkshape trial just expired. I use anim8tor primarily but i should be able to work with blender enough to animate my models. YAY!!!

User avatar
Graywolf
Posts: 75
Joined: Mon Apr 14, 2008 8:36 pm
Location: Anchorage, Alaska
Contact:

Re: Blender Exporter 0.2 alpha release

Post by Graywolf » Fri Aug 01, 2008 2:57 am

I can't make any promises as to when, but it hopefully won't be too long. I've been short on spare time(side effect of real life rearing it's ugly head and DEMANDING my attention...) I've also got an RF community release on my plate, and a few other things. But, it's on the to-do-pretty-soon list(I need it also.)
Last edited by Graywolf on Wed Aug 13, 2008 11:21 am, edited 1 time in total.
"So, what's the life of a programmer like?" "...Huh? What life?!"

RF System X:
http://www.realityfactory.info/forum/vi ... f=9&t=3599

User avatar
Kiji8989
Posts: 209
Joined: Tue Jul 22, 2008 11:39 pm

Re: Blender Exporter 0.2 alpha release

Post by Kiji8989 » Fri Aug 08, 2008 3:59 am

awsome! I dont use blender yet, but when I do...I will have an exporter :3
(\_/)
(O.o) copy bunny into your signature to
( >< )help him achieve world domination

User avatar
zany_001
Posts: 1047
Joined: Fri Mar 02, 2007 8:36 am
Location: Aotearoa

Re: Blender Exporter 0.2 alpha release

Post by zany_001 » Mon Apr 20, 2009 10:09 am

OK, I finally worked out how to use this, though I didn't really try, sorry.
First thing was I forgot to triangulate, but that's my fault. Second thing was I didn't know to select the armature before exporting. Once I worked that out, I tried to import with Equity, and Equity gave me some error messages which I will post in the Equity forum.
Once I was sad, and I stopped being sad and was awesome instead.
True story.

Nick
Posts: 1
Joined: Tue Nov 03, 2009 10:52 pm

Re: Blender Exporter 0.2 alpha release

Post by Nick » Tue Nov 03, 2009 10:56 pm

I'm really sorry, but I'm not good at this stuff and I'm kinda new to this, so I apologize for have to ask for this but if I have something to export, what do I do with the file that I downloaded that allows me to export blender to reality factory?

Srry,
Nick

User avatar
zany_001
Posts: 1047
Joined: Fri Mar 02, 2007 8:36 am
Location: Aotearoa

Re: Blender Exporter 0.2 alpha release

Post by zany_001 » Wed Nov 04, 2009 3:36 am

It's a little tricky. An easier way would be to export to a format that Equity supports, and import it into equity. Then save as an .act

Welcome to the forums!
Once I was sad, and I stopped being sad and was awesome instead.
True story.

Voltare
Posts: 263
Joined: Tue Jul 05, 2005 10:36 am

Re: Blender Exporter 0.2 alpha release

Post by Voltare » Fri Nov 13, 2009 4:32 am

Here's the thing.Blender is all about rendering and not actual gamemaking, therefore, it's not an ideal tool for any gamemaker.I could care less who made what with the crap; they're one of a very very VERY small tiny insignificant minority.As the creator of this found out, Blender hates you.It just does....since it's built from *nix code.

The people to actually help with this is the guys o the main blender forum...but they hate you, too.You're just a stupid noob to them.

Quit trying to make blender "useful", cause it'll never happen.

Locked