Re: [R] rgl lighting question

From: Barry Rowlingson <b.rowlingson_at_lancaster.ac.uk>
Date: Fri, 21 Nov 2008 20:01:28 +0000

2008/11/21 Rajarshi Guha <rguha_at_indiana.edu>:
> 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 bring
> out the details of the surface. Could anybody point me to some examples of
> how to make a plain matte surface, which isn't obscured by specular
> reflections?

 Have you tried lit=FALSE? This sphere is so unspecular it appears flat:

 > spheres3d(0,0,0,color="red",lit=FALSE)

Barry



R-help_at_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. Received on Fri 21 Nov 2008 - 20:04:42 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 21 Nov 2008 - 20:30:33 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive