Open GoogleCodeExporter opened 9 years ago
with this version python(x,y) and Mayavi, the 3D render may have some problem
with the "light", by changing the #232 line in light_manager.py
from
self.sourcs.color = val
to
self.color = val
may solve this problem.
Original comment by scott910...@gmail.com
on 7 Mar 2014 at 1:55
sample code to reproduce the issue will be very helpfull
Original comment by grizzly.nyo
on 9 Mar 2014 at 6:00
after switching the qt api to api #2, and enter the python code below may
reproduce the "Light" error,
#--------------------------------------------------------code starts here.
# -*- coding: utf-8 -*-
from numpy import *
from enthought.mayavi import mlab
# Create the data.
dphi, dtheta = pi/20.0, pi/20.0
[phi,theta] = mgrid[0:pi+dphi*1.5:dphi,0:2*pi+dtheta*1.5:dtheta]
m0 = 4; m1 = 3; m2 = 2; m3 = 3; m4 = 6; m5 = 2; m6 = 6; m7 = 4;
r = sin(m0*phi)**m1 + cos(m2*phi)**m3 + sin(m4*theta)**m5 + cos(m6*theta)**m7
x = r*sin(phi)*cos(theta)
y = r*cos(phi)
z = r*sin(phi)*sin(theta)
# View it.
s = mlab.mesh(x, y, z, representation="wireframe", line_width=1.0 )
mlab.show()
#--------------------------------------------------------code Ends here.
thank you.
Original comment by scott910...@gmail.com
on 10 Mar 2014 at 7:35
Original issue reported on code.google.com by
scott910...@gmail.com
on 7 Mar 2014 at 1:42