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 = 1)

gives an error about un-used arguments in the function call. Also
skimming the web does not produce any helpful examples.

So please advise if there is a way to achieve my desired setting.
Alternatively any hint how and where to make (moderate) modifications to
the source code to get this functionality would be very welcome.


Thanks in advance.


Alex

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to