Horde3D

Next-Generation Graphics Engine
It is currently 24.11.2024, 09:51

All times are UTC + 1 hour




Post new topic Reply to topic  [ 45 posts ]  Go to page Previous  1, 2, 3
Author Message
 Post subject: Re: Blender Exporter
PostPosted: 02.10.2009, 08:26 
Offline
Engine Developer

Joined: 10.09.2006, 15:52
Posts: 1217
Funto wrote:
Hmm, a warning means something went wrong : a mesh could have no tex coords and it can be what is wanted by the user...(for example, that's the case with the Tux model I use :)).

Asset validation is an important part of the asset pipeline. Some information for artists regarding common problems (also degenerated triangles or normals) makes it a lot easier to track problems early that might only show up later.


Top
 Profile  
Reply with quote  
 Post subject: Re: Blender Exporter
PostPosted: 02.10.2009, 08:41 
Offline
Tool Developer

Joined: 13.11.2007, 11:07
Posts: 1150
Location: Germany
Well, there should be support for models without texture coordinates anyway. But of course it needs an appropriate shader for rendering those models.


Top
 Profile  
Reply with quote  
 Post subject: Re: Blender Exporter
PostPosted: 02.10.2009, 15:56 
Offline

Joined: 10.07.2009, 21:16
Posts: 42
Yep, I think emitting a warning would be the good thing to say, I am just pointing out that when we don't want tex coords, we get annoying warnings anyway...


Top
 Profile  
Reply with quote  
 Post subject: Re: Blender Exporter
PostPosted: 03.10.2009, 07:45 
Offline

Joined: 10.07.2009, 21:16
Posts: 42
I just added the warning to the community branch and also added the "animation only" button from flammable.

Volker >> the version in SVN didn't have mix bugfix for NaN values...I added it.

Last version is here : [url=http://mm-werkstatt.informatik.uni-augsburg.de/public/Horde3D/trunk/Tools/Exporters/Blender/Horde3DExport.py]Horde3DExport.py[url]


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

Joined: 13.11.2007, 11:07
Posts: 1150
Location: Germany
Ah, I accidentally had overwritten the changes again when starting to port the CB to Beta4. That's probably also the reason why flammable had an old version. Thanks for fixing it again :-)


Top
 Profile  
Reply with quote  
 Post subject: Re: Blender Exporter
PostPosted: 01.11.2009, 06:18 
Offline

Joined: 10.07.2009, 21:16
Posts: 42
I just added an ugly patch to the Blender exporter because I got NaN values for some normals in my model...
Now the exporter emits a warning and exports [0, 0, 0], which is not quite good :/


Top
 Profile  
Reply with quote  
 Post subject: Re: Blender Exporter
PostPosted: 01.11.2009, 17:24 
Offline
Engine Developer

Joined: 10.09.2006, 15:52
Posts: 1217
I know, this sort of things is annoying. Every engine has a certain set of rules and conventions for assets that artists need to follow. So not all models are always valid. Some mistakes can be fixed automatically by the asset pipeline (like removal of zero sized triangles) but to avoid further complications, it is usually better if artists create clean models and fix invalid models.

So the best we can do is making it easy for artists to recognize which parts of a model are broken. This requires good communication of the asset problems in form of warnings. However, it is still difficult to see which specific polygons are affected. A convenient way to overcome this for a direct converter could be to add an option that will select/mark all invalid triangles after export. This makes it easier to quickly fix the problems.


Top
 Profile  
Reply with quote  
 Post subject: Re: Blender Exporter
PostPosted: 02.11.2009, 07:49 
Offline

Joined: 10.07.2009, 21:16
Posts: 42
Hmm you are right, in my case for example, it would be interesting if the exporter selected the vertices which have problems...
It must not be so hard to add to the exporter, I will have a look at this :)


Top
 Profile  
Reply with quote  
 Post subject: Re: Blender Exporter
PostPosted: 21.11.2009, 02:56 
Offline

Joined: 10.07.2009, 21:16
Posts: 42
I just modified the Blender exporter for adding some buttons to have more precise control of which files are created (if we want to create a static mesh, we can skip the creation of the .anim file for example).
I also made some changes to the "warnings" system, it should be better now :)

Next step would be to find out why the animations are so buggy...


Top
 Profile  
Reply with quote  
 Post subject: Re: Blender Exporter
PostPosted: 21.11.2009, 08:31 
Offline
Tool Developer

Joined: 13.11.2007, 11:07
Posts: 1150
Location: Germany
Great work! Thanks a lot!


Top
 Profile  
Reply with quote  
 Post subject: Re: Blender Exporter
PostPosted: 28.11.2009, 06:05 
Offline

Joined: 10.07.2009, 21:16
Posts: 42
4 days ago, Blender 2.5 alpha0 went out, and final 2.6 is expected for mid-2010.
As it is a huge rewrite of a lot of Blender internals, it comes also with incompatibilities, and among them, the animation system is totally new and the Python API is based on a module named "bpy", instead of the "Blender" module for Blender 2.4x.

The exporter is incompatible with this release, for the moment at least. Also, I haven't found the "COLLADA" export option in Blender 2.5 alpha0, but it seemed to be far from perfect anyway when I tested it from the associated GSoC branch on Blender SVN repository.


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

Joined: 22.11.2007, 17:05
Posts: 707
Location: Boston, MA
Funto wrote:
The exporter is incompatible with this release, for the moment at least.
Permanently - the exporter API has been completely rewritten.
Quote:
Also, I haven't found the "COLLADA" export option in Blender 2.5 alpha0, but it seemed to be far from perfect anyway when I tested it from the associated GSoC branch on Blender SVN repository.
You need a 2.5 alpha specially built with collada support. It isn;t terribly stable yet, but expect things to improve as we move into next year :)

_________________
Tristam MacDonald - [swiftcoding]


Top
 Profile  
Reply with quote  
 Post subject: Re: Blender Exporter
PostPosted: 28.11.2009, 16:37 
Offline

Joined: 10.07.2009, 21:16
Posts: 42
Quote:
Permanently - the exporter API has been completely rewritten.

You mean the Python API; I know it is totally incompatible, by "for the moment", I mean because the exporter has not been updated yet to the new API ^^. And I wonder if this will be necessary or not, depending on the COLLADA support...

Quote:
You need a 2.5 alpha specially built with collada support. It isn;t terribly stable yet, but expect things to improve as we move into next year :)

Yes, COLLADA support is not built in the alpha0 release. When I compiled myself the GSoC branch, the COLLADA exportation was very basic and did not support animations...


Top
 Profile  
Reply with quote  
 Post subject: Re: Blender Exporter
PostPosted: 04.03.2010, 12:35 
Offline

Joined: 11.06.2008, 10:34
Posts: 119
whats the svn repo for GSoC branch? can't seem to find it.

_________________

Let's bring 'em out! Any old iron! Any old iron!
A door opens and a homewife brings out a rather sophisticated-looking ground-to-air missile system, and dumps it on the cart.
Thank you.


Top
 Profile  
Reply with quote  
 Post subject: Re: Blender Exporter
PostPosted: 22.10.2012, 16:40 
Offline

Joined: 15.01.2012, 11:54
Posts: 7
with the new exporter for blender 2.63+ i hope to have fixed most problems.
for animation it is necessary to have the armatures origin at the objects origin. sorry no script solution found yet.
nla tracks have to be added as well.

for more information see user_docu.pdf in community svn or:
http://www.hcm-lab.de/projects/GameEngi ... rdesigners


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

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 3 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