Hi PyMOLers,
I have been tackling this problem (on and off) for quite some time now but
without any luck. I have been trying to create CGO triangles using the
following simple sample script:
###################################
from pymol.cgo import *
from math import *
from pymol import cmd
def triangle ():
name="test";
obj=[ BEGIN, TRIANGLES ]
obj.extend([COLOR,1.0,0.0,0.0,VERTEX,0.0,0.0,0.0])
obj.extend([COLOR,1.0,0.0,0.0,VERTEX,2.0,0.0,0.0])
obj.extend([COLOR,1.0,0.0,0.0,VERTEX,0.0,2.0,0.0])
obj.extend([END])
cmd.delete("test")
cmd.load_cgo(obj,"test")
return
cmd.extend("triangle",triangle)
###################################
This creates a nice red triangle for me in the viewing window. However, when I
move it around and then ray trace the image, I end up getting either a triangle
with the original bright red color, a black triangle, or a dark red triangle.
What I'm looking for is to be able to get the same bright red triangle no
matter how I manipulate the object. I've tried playing around with the
"NORMAL" value but, if I recall correctly, ray tracing produced a blank image.
Any help or suggestion would be greatly appreciated. Thanks!
Sean
_________________________________________________________________
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net