search for: light3d

Displaying 3 results from an estimated 3 matches for "light3d".

Did you mean: light
2013 Jan 27
1
positioning a light source within a rgl-plot
Hello useRs, I would like to draw a 3D-surface using rgl with a point-like light-source within the scene, that is with finite distance of the light-source to the surface to be lit. >From the help to the 'light3d' command I read: "They [the light-sources] are positioned either in world space or relative to the camera using polar coordinates." which *could* be understood as if such a thing would be possible. But probably this is wishful thinking as my naive approach: light3d(x = 0, y = 0, z...
2008 Nov 21
2
rgl lighting question
Hi, I'm using rgl to generate a 3D surface plot and I'm struggling to get the lighting correct. Currently the surface gets plotted, but is very 'shiny'. On rotating the view, I get to see parts of the surface - but overall I don't see much detail because of the spotlight like lighting. I've played around with the specular, ambient and diffuse but I can't
2010 Sep 09
1
rgl and lighting
...I create a cube and visualize it: > cubo <- cube3d(col="black") > shade3d(cubo) Next I position the viewpoint at theta=0 and phi=30: > view3d(theta=0,phi=30) Next, I want to create a 2nd light source which diffuses red light from the front face. I thought I could do: >light3d(diffuse="red",theta=0,phi=0) but...the front side doesn't show any red-iness. Same goes for specular and ambient. What am I doing wrong here? How should the fron side show in red colour? J Dr James Foadi PhD Membrane Protein Laboratory (MPL) Diamond Light Source Ltd Diamond House H...