[Bf-python] face.col: where's my mistake?
Fritz Mielert
blender at napshell.com
Tue Aug 8 17:28:15 CEST 2006
An HTML attachment was scrubbed...
URL: <http://lists.blender.org/pipermail/bf-python/attachments/20060808/d0404994/attachment.html>
-------------- next part --------------
Hey,
probably you can help me. In "textured" mode I see really nice colors,
but they become gray when I'm going to render...
thanks
fritz
The following is a similar test script:
from Blender import *
from Blender.NMesh import *
me = NMesh.GetRaw()
f = NMesh.Face()
v = NMesh.Vert(-1.0, 0.0, 0.0)
me.verts = [v]
f.v = [v]
v = NMesh.Vert(1.0, 0.0, 0.0)
me.verts.append(v)
f.v.append(v)
v = NMesh.Vert()
v.co[0] = 0.0; v.co[1] = 1.0; v.co[2] = 0.0
me.verts.append(v)
f.v.append(v)
f.col = [Col(255,0,0), Col(0,255,0), Col(0,0,255)]
me.faces=[f]
me.hasVertexColours(1)
NMesh.PutRaw(me)
Redraw()
More information about the Bf-python
mailing list