Horde3D

Next-Generation Graphics Engine
It is currently 19.03.2024, 09:26

All times are UTC + 1 hour




Post new topic Reply to topic  [ 45 posts ]  Go to page 1, 2, 3  Next
Author Message
 Post subject: Blender Exporter
PostPosted: 06.06.2008, 07:00 
Offline
Tool Developer

Joined: 13.11.2007, 11:07
Posts: 1150
Location: Germany
Some time ago, I said, that I hired a student to develope a Blender Exporter.
Well he did a great job so far. Export is working quite well for Meshes. But as you might guess we have problems with animations. Mesh Animations are working but not the skeleton ones. Morph Targets are not yet supported at all.

We are both not very familiar with Blender and thought perhaps someone here in the community can help us to finish the exporter. So attached you can find our first steps.


Attachments:
Horde3DExport.zip [9.98 KiB]
Downloaded 1296 times
Top
 Profile  
Reply with quote  
 Post subject: Re: Blender Exporter
PostPosted: 06.06.2008, 16:06 
Offline

Joined: 18.05.2008, 17:47
Posts: 96
"hired a student"? o_O
good job, I will take a look ( I will need reference for geo format though )
edit:
found: download/file.php?id=7
---> http://www.horde3d.org/docs/_formats.html
what is the endian-ness of the format


Top
 Profile  
Reply with quote  
 Post subject: Re: Blender Exporter
PostPosted: 06.06.2008, 17:02 
Offline

Joined: 14.04.2008, 15:06
Posts: 183
Location: Germany
kal wrote:

The same as the computer which generated the file... You can use the version number in the header to determine if it's little or big endian. If you read a LE file on BE you should get 5 << 24 instead of 5 as the version number.


Top
 Profile  
Reply with quote  
 Post subject: Re: Blender Exporter
PostPosted: 06.06.2008, 17:17 
Offline

Joined: 18.05.2008, 17:47
Posts: 96
so it depends on the computer. of course you can detect using the header(header to int then check endian-ness) but it would be good to fix it as little endian or big endian. machine dependant format sounds a little strange :|


Top
 Profile  
Reply with quote  
 Post subject: Re: Blender Exporter
PostPosted: 06.06.2008, 17:30 
Offline

Joined: 14.04.2008, 15:06
Posts: 183
Location: Germany
Yes that would be better. Big endian aka network byte order as default? Performance impact on LE shouldn't be measureable - disks are much to slow for that...


Top
 Profile  
Reply with quote  
 Post subject: Re: Blender Exporter
PostPosted: 07.06.2008, 03:19 
Offline

Joined: 22.11.2007, 17:05
Posts: 707
Location: Boston, MA
Codepoet wrote:
Yes that would be better. Big endian aka network byte order as default? Performance impact on LE shouldn't be measureable - disks are much to slow for that...
On the other hand, little endian machines are far and away more common (apart from some consoles). Perhaps we should just ensure that the engine reads both?

_________________
Tristam MacDonald - [swiftcoding]


Top
 Profile  
Reply with quote  
 Post subject: Re: Blender Exporter
PostPosted: 07.06.2008, 07:43 
Offline
Tool Developer

Joined: 13.11.2007, 11:07
Posts: 1150
Location: Germany
Perhaps we should first try to get the exporter working well, before we care about the endianess :-)


Top
 Profile  
Reply with quote  
 Post subject: Re: Blender Exporter
PostPosted: 07.06.2008, 13:36 
Offline

Joined: 22.11.2007, 17:05
Posts: 707
Location: Boston, MA
Volker wrote:
Perhaps we should first try to get the exporter working well, before we care about the endianess :-)
That was my point, above :)

_________________
Tristam MacDonald - [swiftcoding]


Top
 Profile  
Reply with quote  
 Post subject: Re: Blender Exporter
PostPosted: 08.07.2008, 11:03 
Offline
Tool Developer

Joined: 13.11.2007, 11:07
Posts: 1150
Location: Germany
A small update: Morph Targets / Shape Keys seem to work now, but joint transformations and skinning are still a problem


Attachments:
File comment: Python Script for Blender
Horde3DExport.zip [10.62 KiB]
Downloaded 1152 times
Top
 Profile  
Reply with quote  
 Post subject: Re: Blender Exporter
PostPosted: 22.08.2008, 14:53 
Offline
Tool Developer

Joined: 13.11.2007, 11:07
Posts: 1150
Location: Germany
Another small update,... for some models the bones and morph targets are now supported. But there are still some problematic constellations of joints where the exporter will fail.


Attachments:
File comment: Python Script for Blender
Horde3DExport.zip [11.26 KiB]
Downloaded 1123 times
Top
 Profile  
Reply with quote  
 Post subject: Re: Blender Exporter
PostPosted: 26.08.2008, 09:21 
Offline

Joined: 21.08.2008, 11:44
Posts: 354
Why don't calling Blender forums help?
Perhaps they can help us to creating Blender exporter efficiently and much more faster :idea:


Top
 Profile  
Reply with quote  
 Post subject: Re: Blender Exporter
PostPosted: 30.08.2008, 08:14 
Offline

Joined: 18.05.2008, 17:47
Posts: 96
Siavash wrote:
Why don't calling Blender forums help?
Perhaps they can help us to creating Blender exporter efficiently and much more faster :idea:

also blender dev channel at freenode is another option. they are really helpful


Top
 Profile  
Reply with quote  
 Post subject: Re: Blender Exporter
PostPosted: 03.09.2008, 19:56 
Offline

Joined: 15.06.2008, 11:21
Posts: 166
Location: Germany
Just got this thing to run, and have one problem with it:

The rotations of the bones sometimes got into the wrong direction or affect wrong axises (while the correct rotation is used as well, so that the leg of my person here rotates correctly around the knee, but also along the leg (=local y axis)

Anybody can confirm that problem?

EDIT: Sry, was my fault. The animations don't work with objects which have been scaled in Object Mode (I thought I had scaled it in edit mode)


Top
 Profile  
Reply with quote  
 Post subject: Re: Blender Exporter
PostPosted: 04.09.2008, 20:45 
Offline

Joined: 15.06.2008, 11:21
Posts: 166
Location: Germany
Changing line 410 from
Code:
__AdditionalJointMat = Matrix()

to
Code:
self.__AdditionalJointMat = Matrix()

fixes a crash for me when exporting only a skeleton.

I think the exporter be into SVN btw.


Top
 Profile  
Reply with quote  
 Post subject: Re: Blender Exporter
PostPosted: 14.09.2008, 22:45 
Offline
Engine Developer

Joined: 10.09.2006, 15:52
Posts: 1217
The exporter is on the community branch, so you can submit your little patch if you want.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 45 posts ]  Go to page 1, 2, 3  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group