Just installed Ubuntu in a virtual box and saw a nice application to construct a planet!
A script for 2.49 may be exported!
I like to conert the resulting Blender info to 2.59 which is solved for most of it already
I have some problems with this part, the vertex colors of the planet … will not succeed
at this moment.
Here the 2.49 function to set colors and vertex colors …
def f(mesh,material,v0,v1,v2,c0,c1,c2):
face=NMesh.Face()
face.transp=NMesh.FaceTranspModes.ALPHA
face.smooth=1
face.mat=material
face.v.append(mesh.verts[v0])
face.v.append(mesh.verts[v1])
face.v.append(mesh.verts[v2])
face.col.append(NMesh.Col(c0[0],c0[1],c0[2],c0[3]))
face.col.append(NMesh.Col(c1[0],c1[1],c1[2],c1[3]))
face.col.append(NMesh.Col(c2[0],c2[1],c2[2],c2[3]))
mesh.faces.append(face)
And a lot of data like this …
f(m,0,2685,676,2686,(19,245,0,255),(49,230,0,255),(26,241,0,255))
how to convert (19,245,0,255),(49,230,0,255),(26,241,0,255) the three colors in the data
for tri’s …
dividing by 255 does not do je job
white seems to be (255,255,255,255) (r g b a)
If I read a result from Bl 2.49 in Bl 2.59 and copy the vertexcolors from 2.49 verson to 2.59 version all is OK
See picture one.
and MY conversion result (using x/255.0)
my f is this
teller = -1
def f(mesh,material,v0,v1,v2,c0,c1,c2):
global verts, faces, facematerial,teller
teller += 1
faces.append((v0,v1,v2))
colors.append((c0[0]/255.,c0[1]/255.0,c0[2]/255.0))
colors.append((c1[0]/255.0,c1[1]/255.0,c1[2]/255.0))
colors.append((c2[0]/255.0,c2[1]/255.0,c2[2]/255.0))
if teller % 1000 == 0:
print(colors[-3],colors[-2],colors[-1])
facematerial.append(material)