prozorov's picture

Export model to .obj/.3ds file

Hellow!
Help me please, how can I export my model to file on disk??
I create the model from emgu cv point cloud and need to save it into file. I hope correct it by the Blender 3D in the future.
Thanks in advance!


Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
prozorov's picture

Anybody? Can you help me?

winterhell's picture

You are unlikely to stumble across C# exporters for .obj or .3ds.
If you are proficient enough you can learn about one of the file formats, look up tutorials on reading, and then reverse the process to write your own.
Random links from Google for .obj
http://people.sc.fsu.edu/~jburkardt/txt/obj_format.txt

http://www.opengl-tutorial.org/beginners-tutorials/tutorial-7-model-load...

Obj is supposedly easier to deal with, and its in ASCII text format, while .3ds is binary.

the Fiddler's picture

There is a sample script here: http://wiki.unity3d.com/index.php?title=ExportOBJ

It is made for Unity, but the file format is extremely simple. Check MeshToString and DoExport, you can use those to build your own exporter in 100-200 lines of code.

prozorov's picture

Thank you for answers! I'll try it.
But on first time I solved my issue by exporting cloud to .ply file.