Fix for decades old CMOD bug discovered

All about models for Celestia. How-to, programs, work in progress...
Avatar
Topic author
Shadow-Dragon-777
Posts: 94
Joined: 03.11.2021
Age: 32
With us: 4 years 3 months
Location: A Galaxy Far Far Away....

Fix for decades old CMOD bug discovered

Post #1by Shadow-Dragon-777 » 12.01.2026, 16:03

CMOD ever since it was developed almost 2 decades ago, has had a bug where one of the meshes is unable to be textured.
I ran into this problem when I gave CMODing my first try and decided to brain storm several workarounds, eventually going for taking a simple triangle textured mesh and duplicating a couple handred times. I still ran into this later with a model I added stuff after adding the triangles and I was suggested 3DS to CMOD converter. I will include it here as it is needed for this process.
3ds2cmodv3-2.zip
CMODfix
(463.18 KiB) Downloaded 14 times


After some tinkering and looking at the model file in notepad, I theorized why this bug happened and successfully found a fix for it.

When you have generated a CMOD via CMODview or Anim8tor, save it.
Open "CmodConverter" in the folder
Navigate to your CMOD
Check "Output as ascii"
Click "process model"
Exit

Next, open your CMOD in Notepad (or related program).
Navigate to
"mesh
vertexdesc
position f3
normal f3
texcoord0 f2
end_vertexdesc"

below youll see a bunch of numbers, above youll see many "material diffuse etc" indentifiers
CMODfix ascii notepad1.png
Before

In the space above "mesh", copy and paste

material
diffuse 1 1 1
end_material
CMODfix ascii notepad2.png
After

save as (filename).cmod

and now that CMOD mesh can be textured.

A nightmare that has been plagueing CMOD has finally ended

I would like to thank
PedroJ and DaveBowman2001 for their support in my brainstorming sessions figuring out a fix for this (and I am sure many are probably screaming with joy a fix has been found for this).
Thanks to the three of us, we figured it out!!!
Happy modeling everyone!!!

Return to “Modelling”