Updated Blender CMOD Exporter

Post requests, images, descriptions and reports about work in progress here.
Topic author
Yakk
Posts: 1
Joined: 10.08.2017
With us: 7 years 3 months

Updated Blender CMOD Exporter

Post #1by Yakk » 10.08.2017, 14:56

I've got a bare bones CMOD exporter add on for Blender 2.78 working, using the previous 2.4 exporter by cartrite. No materials or textures are exporting yet, and it is set up for triangles instead of quads. Would people be interested in me developing it a little further and posting it here? Exporting a quads mesh would be an easy addition and I'm interested in learning the Blender Python API better, so this would be a fun project in my spare time.

john71
Posts: 1009
Joined: 10.08.2016
With us: 8 years 3 months

Post #2by john71 » 19.08.2017, 19:41

I think anything which speeds up cmod creation would be a very good project.

I have to export obj files from Blender to create 3ds files to create cmod files...

Avatar
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 3 months
Location: NY, USA

Post #3by selden » 19.08.2017, 20:08

The utility cmodview is supposed to be able to import .OBJ files and export them as .CMOD. I've had problems getting it to work for me, but if it works for you it'd save a step and wouldn't have the 3DS limitation of 32K vertices per mesh.

One of its limitations seems to be that it can't apply materials to individual mesh faces.
Selden

john71
Posts: 1009
Joined: 10.08.2016
With us: 8 years 3 months

Post #4by john71 » 19.08.2017, 20:21

I can save Blender 3D objects in obj format and I can open them in Cmodview. Saving them in cmod binary format also works. I can edit the new cmod file.

Added after 43 seconds:
I'm not sure about materials... :think:

Avatar
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 3 months
Location: NY, USA

Post #5by selden » 19.08.2017, 20:39

Applying materials to individual mesh faces is one of the reasons I've stuck with the CMOD exporter that I wrote for Anim8or.
Selden

Avatar
John Van Vliet
Posts: 2944
Joined: 28.08.2002
With us: 22 years 3 months

Post #6by John Van Vliet » 19.08.2017, 22:48

there is NO need for the OLD blender 2.48 (
runs ONLY on the old blender 2.49b and older using the OLD pre 2.50 python API for blender

the cmod tool in the source builds just fine and excepts a uv mapped obj

i even fixed the headers being in the wrong place

https://github.com/JohnVV/MyCelestiaBuild/tree/master/celestia/src/tools/cmod
this builds just fine ( well for me on linux )
but should build just fine on MS windows and apple using QT creator


Return to “Add-on development”