PLEASE help need Save Object

Blitz3D Forums/Blitz3D Programming/PLEASE help need Save Object

Guy Fawkes(Posted 2009) [#1]
Hi

Does anyone know where I can find a code that saves any object of choice to a b3d or x file, w/ all the correct colormaps and textures, and detailmaps and details in place?

Thanks

~DS~


Adam Novagen(Posted 2009) [#2]
I'm curious; are you making a 3D scene creator, or media program of some sort? You've been doing a lot of technical file-related stuff... Geez, now I'm dying of curiosity. 8)


wmaass(Posted 2009) [#3]
Did you try this?

http://www.blitzbasic.com/codearcs/codearcs.php?code=866


Matty(Posted 2009) [#4]
Code Archives has plenty of resources to cover this such as the one in the previous post.

You may need to modify it slightly however to handle 2nd uv coord sets and multiple textures per mesh, although it's not too difficult.


Ross C(Posted 2009) [#5]
Saving a multimesh, multitextured mesh is somewhat difficult. Mainly due to the inability to get some of the details from a mesh. If you are creating the mesh from blitz commands, and you have multiple meshes, you need to keep track of every texture you use, and texture scales (which is something you can't get from a loaded mesh, unless you read the file.

Saving using jfk's code, for a single textured mesh is fairly simple though.