similar to: positioning a light source within a rgl-plot

Displaying 20 results from an estimated 3000 matches similar to: "positioning a light source within a rgl-plot"

2010 Sep 09
1
rgl and lighting
Dear R community (and Duncan more specifically), I can't work out how to make additional light sources work in rgl. Here is the example. First 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
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
2012 Nov 16
2
Question about contour3d and writeWebGL: rgl and misc3d package
I saw that in rgl:::writeWebGL that "Polygons will only be rendered as filled; there is no support in WebGL for wireframe or point rendering.". I found that you can easily use contour3d to make reproducible contour web figures, such as (taken from contour3d help) library(AnalyzeFMRI) a <- f.read.analyze.volume(system.file("example.img", package=
2013 May 16
1
3d interactive video using the rgl package
Hi all, I've been using the 'rgl' package to visualise in 3d the water temperature recorded by a glider deployed off the coast of Australia (see snapshot attached). Using the writeWebGL function, I'm able to produce an html file of the scene with which I can then interact (e.g. zoom in/out, rotate) in my web browser. In R, I have created another scene that includes a loop
2012 Nov 05
2
exporting 3D dynamic graph
Hi the list, Using misc3d, we can export 3d dynamic graph in pdf format. Is it also possible to export these graph into a format that we can publish on the web? Christophe -- Christophe Genolini Maître de conférences en bio-statistique Vice président Communication interne et animation du campus Université Paris Ouest Nanterre La Défense [[alternative HTML version deleted]]
2010 Dec 07
5
fast subsetting of lists in lists
Hello, my data is contained in nested lists (which seems not necessarily to be the best approach). What I need is a fast way to get subsets from the data. An example: test <- list(list(a = 1, b = 2, c = 3), list(a = 4, b = 5, c = 6), list(a = 7, b = 8, c = 9)) Now I would like to have all values in the named variables "a", that is the vector c(1, 4, 7). The best I could come up
2008 Sep 17
1
rgl: How to position a window during open3d call
Dear all, The documentation on the function open3d in the rgl package, reads: open3d opens a new rgl device, and sets the parameters as requested. I want the new rgl device (window) to be sized and positioned in a specific place on my screen. So, I try to set the "windowRect" parameter as follows: > library("rgl") > open3d(windowRect=c(100,100,500,500))
2013 Oct 14
1
Transform plot3d grafics in to executable files
Hello, I did some nice grafics using plot 3d and scatter3d. Is there a, hopefully not too complicated way, to transform these dynamic, three-dimensional and interactive grafics in a kind of executable file? I want to show and send them via e-mail to projekt partners who don`t use GNU R and who are not used to do programming. So the result should be quite comfortable to execute for them in
2012 Oct 08
1
3d polar coordinates in rgl function view3d()
Dear all: I'm enjoying using rgl and I want to set a specific viewpoint. I understand that view3d() will do so by setting the 3d polar coordinate angles, theta and phi. In standard polar coordinates, theta is the angle away from the X axis in the X-Y plane and phi (inclination angle) is the angle between the Z axis and the radius vector It appears that when you use view3d() theta is
2012 Aug 27
1
RGL plot : lighting problem when triangle3d and persp3d are used in the same plot
Dear all, I have tried to plot a triangular matrix with the function persp3d(rgl). for example z=rbind(c(1,NA,NA,NA),c(5,3,NA,NA),c(4,2,9,NA),c(8,6,5,11)) x=1:4 y=1:4 persp3d(x,y,z,color="gray") The two extreme points are not plotted (value=1 and value=10). It seems because the half of the matrix have 'NA' and perp3d need planar quadrilateral face. So I decided to use the
2013 Dec 17
3
In-string variable/symbol substitution: What formats/syntax is out there?
Hi, I'm try to collect a list of methods/packages available in R for doing in-string variable/symbol substitution, e.g. someFcn("pi=${pi}"), anotherFcn("pi=@pi@") and so on becomes "pi=3.141593". I am aware of the following: ** gsubfn() in the 'gsubfn' package, e.g. > gsubfn( , , "pi = $pi, 2pi = `2*pi`") [1] "pi = 3.14159265358979,
2011 Sep 09
1
Rgl and plotmath symbols (via sprites): a trial
Dear all, Below is some code where I try to get plotmath symbols in an rgl plot. Duncan Murdoch kindly suggested to use a "sprite" for this. As you can see, on can get it to work, but my knowledge about grid and rgl is too limited to perfectly solve the problem. 1) As you can see (please rotate the plot a little bit so that (0,0,0) is "in front"), the quality of the .png
2014 Sep 13
1
Picking 'rgl' as source package instead of 'r-cran-rgl'
Hi, $ more /etc/apt/sources.list.d/additional-repositories.list deb http://www.stats.bris.ac.uk/R/bin/linux/debian wheezy-cran3/ deb-src http://www.stats.bris.ac.uk/R/bin/linux/debian wheezy-cran3/ $ sudo apt-get update $ sudo apt-get install r-cran-rgl # works great $ sudo apt-get build-dep r-cran-rgl Reading package lists... Done Building dependency tree Reading state information...
2009 Sep 21
1
Three dimensional view of the profiles using 'rgl' package (example of 3 dimensional graphics using rgl package).
Hi there, Anyone has an idea how to put those two sets of code together so that I can get a 3-dimensional picture that includes points instead of 2 separate pictures which doesnt make that much sense at the end. #Let's say that these are the data we would like to plot: A<-c(62,84,53) B<-c(64,82,55) C<-c(56,74,41) D<-c(46,68,38) E<-c(71,98,72) data<-rbind(A,B,C,D,E)
2007 Feb 01
1
rgl.postscript{rgl} crashes R
Hi list, I am trying to print a rgl scene. I can do this with rgl.snapshot("test.pnt",fmt="png"), but rgl.postscript("test.pdf",fmt="pdf") does crash R and returns to the linux shell after extented time period. I am running R 2.4.0 on i686 linux mandrake 10.2. Do I need any other R external program to make this work? Thanks Herry Dr Alexander Herr -
2016 Jan 11
0
rgl.snapshot only captures a small portion what's visible in the RGL device window on CentOS 7
On 01/11/2016 10:55 AM, Wittner, Ben, Ph.D. wrote: > Dear R-SIG-Fedora, > > I'm finding that on CentOS 7, rgl.snapshot (a function in the R package rgl, which provides an R interface to the OpenGL 3-d graphics library) only captures a small portion what's visible in the RGL device window. This does not happen with the same R and rgl versions on CentOS 5.3 (see details below).
2016 Jan 11
0
rgl.snapshot only captures a small portion what's visible in the RGL device window on CentOS 7
On 01/11/2016 05:13 PM, Wittner, Ben, Ph.D. wrote: > I followed the instructions in the link below, which allowed me to install the nvidia driver, which fixed the original problem with rgl.snapshot. > > Thanks very much for all your help. > > I guess I'll file a bug in the CentOS Bug Tracker so that the nouveau driver might get fixed. I'll also post to R-help so someone
2016 Jan 11
0
rgl.snapshot only captures a small portion what's visible in the RGL device window on CentOS 7
On 01/11/2016 01:24 PM, Wittner, Ben, Ph.D. wrote: > Dear Tom, Thank you very much for thinking about this. Please see my replies below. -Ben > >> Are you using the EPEL R 3.2.3 builds? > > I'm not sure what the question means, but I'm pretty sure the answer is no. I know I built the versions of R I used from source code (i.e., ./configure followed by make). Okay. I do
2016 Jan 11
0
rgl.snapshot only captures a small portion what's visible in the RGL device window on CentOS 7
On 01/11/2016 03:52 PM, Wittner, Ben, Ph.D. wrote: > I started trying to do this, but I'm stuck. > I started with http://us.download.nvidia.com/XFree86/Linux-x86_64/340.96/README/installdriver.html , which led me to http://us.download.nvidia.com/XFree86/Linux-x86_64/340.96/README/commonproblems.html#nouveau . I created /etc/modprobe.d/disable-nouveau.conf as instructed then rebooted,
2011 Nov 11
1
Window positioning is messy
When a window or a dialog of an application opens, it is automatically positioned somewhere on the screen (for example somewhere in the center). In current Wine and Ubuntu Oneiric (I can't tell for other distributions), child windows of automatically positioned windows appear offset, often at [0,0] in the top left corner of the screen. This is not too much annoying for tool windows, but it is