[Bf-python] "Lamp.col": it's a bug?

Manuel manuelbastioni at tin.it
Tue May 20 09:55:34 CEST 2003


> BTW:  You are the main programmer behind Make Human, right?  That
> project is great : ).

Thanks!! :-D
We are working hard to to make a new release with a different approach:
a "console" GUI: http://www.kino3d.com/lab/index.php?id=111&lang=english


>What is bad? What makes your work
> harder?  What isn't working well?  Do you prefer Mesh or NMesh?

The main problem about MakeHuman is the function update() in the 225 API:
I've report 2 bugs here some day ago. We use the NMesh without problem.
For example, the core function of MH, the morphing function, is short and
optimized with NMesh :

------------------------------------------------
def morph(self,result, index, new_morph):
  actual_mesh = NMesh.GetRaw(result) #nella formula: Ri

  #Target to apply
  target = self.targets[index] #nella formula: Aki

  #Morphing value
  delta_morph = new_morph - self.morphing_values[index]#nella formula:
alfaprimok - alfak
  self.morphing_values[index] = new_morph #aggiorna la storia

  #Calcola il morphing
  for target_element in target:
   i = int(target_element.index)
   actual_mesh.verts[i].co[0] = actual_mesh.verts[i].co[0] +
delta_morph*(float(target_element.vert[0]) - self.init_mesh[i][0])
   actual_mesh.verts[i].co[1] = actual_mesh.verts[i].co[1] +
delta_morph*(float(target_element.vert[1]) - self.init_mesh[i][1])
   actual_mesh.verts[i].co[2] = actual_mesh.verts[i].co[2] +
delta_morph*(float(target_element.vert[2]) - self.init_mesh[i][2])

  if BL_VERSION<=223:
   # update() is available in 223 too, but makes the mesh invisible
   # so just return the new mesh with PutRaw
   NMesh.PutRaw(actual_mesh, result)
  else:
   # for 2.25, only update the mesh, don't use PutRaw
   actual_mesh.update()
  #last_mesh = get_coord(result_obj_name)
  #Window.RedrawAll()
----------------------------------------------------------------------

Another --very very little, almost stupid-- problem is to write caps in
the MakeHuman-console approach:
http://www.elysiun.com/forum/viewtopic.php?t=10046&highlight=

Of course, I must ask to the other members of MHteam.
Thanks for interesting. :-)

Cheers,

                      Manuel




More information about the Bf-python mailing list