1. I couldn't map a texture on it. I tried what I thought was right: an ssc (see below) defining the mesh and the texture. I noted that the cmod made by 3dstocmod (the original model is a 3ds) lacked a material, so I added a diffuse one (I read at Selden's place that only diffuse models can have their texture replaced by an ssc).
2. I couldn't rotate the model appropriately. I read (also at Selden's) that some programs produce models which are rotated with respect to Celestia needs. So I added a rotation in the ssc. It didn't work.
Surprisingly, commenting out the Mesh line in the ssc correctly wraps the texture on the standard Vesta model of Celestia (it's the video I showed on another thread).
Any idea on what I am doing wrong? Thanks.
Some details. The ssc says something like this:
Code: Select all
Modify "4 Vesta:Vesta" "Sol"
{
Mesh "vesta.cmod" # vesta.cmod is in folder ./models
Texture "vesta.jpg" # vesta.jpg is in folder ./textures/medres
Orientation [-90 0 0] # this one has NO effect
}
The ascii version of the model (I used both this one and the binary, generated by cmodview) says:
Code: Select all
#celmodel__ascii
material
diffuse 0.5 0.5 0.5 <- this I added by hand
opacity 1.0 <- this I added by hand
end_material
mesh
vertexdesc
position f3
normal f3
end_vertexdesc
vertices 11904
-0.350018 0.159879 241.661 -0.000296335 -0.121033 0.992648
-0.298044 23.6474 241.628 0.21904 0.135771 0.966224
...
-0.29615 -1.34105e-006 -227.494 0.0733081 -0.152258 -0.985618
-0.296143 22.4924 -227.609 -0.0670438 -0.0217 -0.997514
1.91186 22.4169 -227.939 -0.225818 -0.0451936 -0.973121
trilist 0 11904
0 1 2 3 4 5 6 7 8 9 10 11
12 13 14 15 16 17 18 19 20 21 22 23
24 25 26 27 28 29 30 31 32 33 34 35
...
11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891
11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903
end_mesh