Additional Exports

Compiling, libraries, modules, coding guidelines and porting

Moderators: jesterKing, stiv

pwihms
Posts: 2
Joined: Fri Oct 18, 2002 12:22 am

Additional Exports

Postby pwihms » Fri Oct 18, 2002 12:41 am

At the moment, I can see that Blender only exports to VRML 1.0, DXF and videoscape, and even with those they don't export well. If possible, could we get a better export and in other formats such as obj and 3ds?

SirDude
Posts: 941
Joined: Sun Oct 13, 2002 7:37 pm
Location: University of Minnesota (USA)
Contact:

Postby SirDude » Fri Oct 18, 2002 8:14 am

They might not be the best but you can find links toadditional exporters/importers
at
http://www.cs.umn.edu/~mein/blender/converters.html

jesterKing
Site Admin
Posts: 1848
Joined: Fri Oct 18, 2002 12:48 pm
Location: Finland

Postby jesterKing » Fri Oct 18, 2002 12:53 pm

Still I think it would be good to have Blender export 'natively' to a wide variety of formats.

pwihms
Posts: 2
Joined: Fri Oct 18, 2002 12:22 am

Postby pwihms » Fri Oct 18, 2002 2:59 pm

I agree, particularily since I will be using the models from Blender to be used in other programs. If someone were wanting to make these models available to others to use in other programs it would be difficult at the moment.

Has anyone found a program that will take a blender model and convert it to dxf, 3ds or obj? Like jpg, bmp and gif of the imaging world these are the common formats of the 3D modeling world.

At the moment, the dxf export in Blender comes up with some errors that I can't seem to figure out why I'm getting them. When I try to import it in to various programs, such as Poser and Painter, I get an error message that reads that "This DXF file does not contain any facet entity data and hence no model was imported."

pgregory
Posts: 43
Joined: Wed Oct 16, 2002 11:09 pm

Postby pgregory » Fri Oct 18, 2002 5:40 pm

jesterKing wrote:Still I think it would be good to have Blender export 'natively' to a wide variety of formats.


Not sure I agree with that, the 'native' part that is. I think that if the scripting API is sufficiently flexible, then any exporter should be doable in script as a plugin. This would prove to be an excellent test of the scripting API as much as anything else.

Cheers

PaulG

sedgetone
Posts: 50
Joined: Thu Oct 17, 2002 9:09 pm

Postby sedgetone » Fri Oct 18, 2002 9:22 pm

I don't know if anybody is aware of the fact that there's a very nice open source C library available for the 3DS format.

http://lib3ds.sourceforge.net/

I don't really have the time I'd like to be able to develope something around it. Maybe somebody else would like to pick the ball up and have a play with it. The library has all the functions we'd need:

Written in portable ANSI-C
Supported platforms:
GNU build tools (autoconf, automake, libtool)
UNIX
Windows with Cygwin (static libraries only!)
MS Visual C++ 6.0
Supports little and big endian CPUs
Load and save:
Atmosphere settings
Background settings
Shadow map settings
Viewport setting
Materials
Cameras
Lights
Meshes
Hierarchy
Keyframes
Evaluation of all animation (keyframing) data
Simple easy to manipulate data structures
Vector mathematics module
Quaternion mathematics module
Matrix mathematics module
Integrates seemless with OpenGL

Just the ticket!!! Only getting materials in and out could be a problem, but I'm sure some bright spark will find a way round it.

Sedgetone :!:

MrMunkily
Posts: 79
Joined: Mon Oct 14, 2002 5:24 am

Postby MrMunkily » Sat Oct 19, 2002 9:49 pm

Still I think it would be good to have Blender export 'natively' to a wide variety of formats.



Not sure I agree with that, the 'native' part that is. I think that if the scripting API is sufficiently flexible, then any exporter should be doable in script as a plugin. This would prove to be an excellent test of the scripting API as much as anything else.

When exporting a large model, no matter how extensible the scripting code, it is going to be SLOW. a model of a tank that took 45 seconds to render in blender and 15 seonds to save to a .blend took 16 HOURS to export to lightflow. What we need are compiled export plugins.

beatabix
Posts: 73
Joined: Fri Oct 18, 2002 1:12 am

Postby beatabix » Thu Oct 24, 2002 12:59 am

pgregory wrote:
jesterKing wrote:Still I think it would be good to have Blender export 'natively' to a wide variety of formats.


Not sure I agree with that, the 'native' part that is. I think that if the scripting API is sufficiently flexible, then any exporter should be doable in script as a plugin. This would prove to be an excellent test of the scripting API as much as anything else.


well, how about a compromise --> import/export scripts that can be plugged into the file menu.

gui integration of python scripts is a big issue, as the best way to promote a user friendly interaction system is to make the code invisible to the average user. if plugins can be designed to load immediately running, or plug straight into the GUI somewhere, rather than the user having to ALT+P, blender would appear much more seamless.

BEAT

dmoc
Posts: 74
Joined: Fri Oct 18, 2002 2:21 pm

Postby dmoc » Sun Oct 27, 2002 8:59 pm

I agree with beatabix. In the past a lot of functionality seemed to depend on this or that (particular Python version fi) and, as we see today, never got addressed. Import/ export is such a critical area that IMHO it should be integral to Blender. I think this is where inferior programs such as Milkshape (no disrespect intended) end up winning much more support than Blender (and money) because they got their priorities right from the start, ie, make it easy to get various fornats into and out of the program and only then add other functionality. So there should be a plug-in API that can work independant of any scripting.

lisabeeren
Posts: 15
Joined: Mon Oct 28, 2002 9:48 am

Java3D Export

Postby lisabeeren » Mon Oct 28, 2002 9:53 am

I should like to write a Java3D export plugin once the plugin system is sorted out. (exporting .class files implementing Shape3D maybe?)

J.

SirDude
Posts: 941
Joined: Sun Oct 13, 2002 7:37 pm
Location: University of Minnesota (USA)
Contact:

Postby SirDude » Tue Oct 29, 2002 2:20 pm

Probably the next big thing we need to get hammered out is a
small api for import/export scripts.

Something like every import/export script should have
load_scene(filename,args) # load your pov or 3ds or whatever
save_scene(filename,args) # save your pov or 3ds or whatever
call_gui(args) # generic function to call the gui to adjust paramters.
args would probably be an array of values you can pass.

or something similar.
Then we could write a small function that looks in a predefined
directory for files with these functions and adds them to a menu
in the gui. Assuming we did this it would also make it alot easyer
to write a function to auto update import/export plugins and what not.

As ton stated I'm guessing the blender league already did some of this, if so it'd be great if someone from their posted what they have so people could get started on the plugins side of things.

lisabeeren
Posts: 15
Joined: Mon Oct 28, 2002 9:48 am

Blender to Java3D

Postby lisabeeren » Sun Nov 03, 2002 7:08 am

Well, I've done it...

Written a script for exporting Blender Objects to Java3D source code.

I'm creating a SF project now, and should have it up in not too long. Fairly simple and dirty at the moment, only exports the geometry, not colour etc. info.

Haven't been able to figure out how to do that considering the APPALLING state of the Blender Python documentation.

I wrote it using a lot of trial and error, as no API documentation or tutorials seem anywhere near uptodate. And that doc-browser thing is impossible to read.

J.


Return to “Coding Blender”

Who is online

Users browsing this forum: No registered users and 4 guests