Hi there,
Does anyone know how to get CGO objects to be properly shaded?
For example, if I create two triangles which lie in perpendicular
planes...
obj = [
BEGIN, TRIANGLES,
COLOR, 1, 0, 0,
VERTEX, 0, 0, 0,
VERTEX, 1, 0, 0,
VERTEX, 1, 1, 0,
COLOR, 1, 0, 0,
VERTEX, 0, 0, 0,
VERTEX, 1, 0, 0,
VERTEX, 1, 0, 1,
END
]
cmd.load_cgo(obj,'triangles')
... the colour of both triangles looks identical, in either OpenGL or
ray-traced rendering.
I want to use CGOs to create 'floor' and 'walls' as a backdrop to
ray-traced images, to give better perspective. At the moment, I have to
manually set the shade of each wall in order to get it to look right.
Details of my setup:
PyMOL version 0.95 beta, running on Linux
GL_VENDOR: 2d3D, Inc
GL_RENDERER: Mesa DRI Intel(R) 845G 20021115
GL_VERSION: 1.2 Mesa 4.0.4
Cheers,
Gareth
--
-------------------------------------------------------------------------------
Gareth Stockwell
EMBL - European Bioinformatics Institute
Wellcome Trust Genome Campus
Hinxton
Cambridge CB10 1SD [email protected]
Tel 01223 492548 http://www.ebi.ac.uk/~gareth