Displaying 20 results from an estimated 1000 matches similar to: "rgl: How to position a window during open3d call"
2011 Sep 09
1
rgl: axis/viewport/box problems in persp3d()
Dear expeRts,
I am a new user of rgl, below is my first trial to plot a simple function in 3d.
I managed to put the axes in the right locations, but:
(1) The xlab, ylab, and zlab arguments are ignored; how can I put in axes labels?
(2) Since I removed the axes in persp3d() the viewport is too small; is it possible
to keep the size of the viewport?
(3) The box is not correctly drawn, there
2008 Mar 01
1
How to chain user mouse handlers in rgl
Dear Rglers,
With rgl, I would like to set marker when a button is pressed, but leave the
standard trackball handling otherwise. Thanks to Duncan and Oleg for helping
me handling key down.
How do I say in a custom mouse handler "after having done your work, forward
to standard trackball once only"? The example below shows the idea, but it
works only once, then reverts to standard
2009 Feb 16
1
Help with rgl
Hi,
I don't know much about the RGL package, and I have read the
documentation and tried some parameters, with no luck... I would like
to generate a movie from a 3D object (code below), where the vortex A
is closer to the observer, and then the object rotates and the B
vortex gets closer. I would like to capture this movie to a file.
By the way, I am not being able to insert unicode text
2008 Jun 24
2
problem with rgl interactivity with R-2.7.1 and Ubuntu Hardy
I'm trying to use the rgl package on R-2.7.1 running on top of Ubuntu
Hardy amd64. using open3d() and plot3d() I get a plot, but it is not
interactive. Furthermore, changes to par3d("FOV"=my.new.value) do
nothing. I suspect something is wrong with the rendering engine or
interface to it. I do have an Nvidia driver installed and compiz works
correctly on the desktop.
I've
2010 Apr 27
2
how to set chart output size in rgl (surface3d)?
Hi R users,
Does anyone know how to change the size of 3d charts? I'm using surface3d in
rgl package, opening a new window each time to display the chart. I want it
so that the chart fills the whole window, because when I output it to png, I
don't want all the white space around the chart (right now, i'm getting this
white "border" around the chart because the chart is
2012 Jan 06
1
how to use rgl to plot dynamic orbit
Dear all,
I have a question about the plotting of the dynamical orbit by using rgl.
My code is as follows:
open3d()
par3d(cex=2)
bg3d("white")
for(i in 1:out.length){
ind<-which
plot3d(x[1:i],y[1:i],out[,"z"][1:i],xlim=c(-10,10),ylim=c(-10,10),zlim=c(-10,10),col="red",cex=2)
Sys.sleep(0.0001)
}
,where x,y,out[,"z"] are the position of the object in
2011 Apr 25
1
Defining origin for rotation in RGL device
Hi all,
How can I tell RGL to set the center for the rotation to the origin of the coordinate system (0,0,0).
It seems that the default is to use the center of the display not the origin of the coordinate system.
open3d()
lines3d(c(0, 1), c(0,0), c(0,0))
lines3d(c(0,0), c(0, 1), c(0,0))
lines3d(c(0,0), c(0,0), c(0, 1))
TIA
Mark
???????????????????????????????????????
Mark Heckmann
Blog:
2009 Oct 15
1
ImageMagick not seen by movie3d function from rgl package
Hello R-users,
I have downloaded and installed a binary version for Windows OS of ImageMagick (ImageMagick6.5.6-10-q16-windows-dll.exe), I have installed the rgl package and i've tried running the following example from ?movie3d()
library(rgl)
open3d()
plot3d( cube3d(col="green") )
M <- par3d("userMatrix")
play3d( par3dinterp( userMatrix=list(M,
2023 Jan 26
1
Failing to install the rgl package
Hi,
I try to execute the seven lines of code below to plot a graph. But I
am failing as the messages below show. Where am I going wrong?
install.packages("rgl")
library(rgl)
y_hat = X%*%B_hat
open3d(windowRect = c(100,100,900,900),family = "serif")
color = rainbow(length(y_hat))[rank(y_hat)]
plot3d(educ,exper,wage,col = color,type = "s",size = 0.5,xlim =
2011 Oct 21
1
windows limits
Hello,
Using the rgl package, I can set the device window to any dimension (that I
have tested):
par3d(windowRect=c(1,1,700,700))
With windows I can't get the window to span from the top to the bottom of
the monitor. In the following, no matter how large the ypinch value gets it
stops, leaving about 2 inches of space at the bottom of my screen:
windows(record=TRUE, ypinch=1100, xpinch=10,
2011 Jun 03
1
movie3d in rgl object 'movie' not found
Hello,
I am trying to save a .gif movie using movie3d from the package {rgl}. I am
using the following code combined with the globe example on the ?movie3d
page. I've installed ImageMagick and the directory seems to be working
properly, i.e. when I do Sys.getenv("PATH"), C:\\Program Files
(x86)\\ImageMagick-6.7.0-Q16 shows up.
####
library(rgl)
open3d()
lat <-
2008 Jan 06
3
Can a dynamic graphic produced by rgl be saved?
Dear r-helpers,
Can one save a dynamic graphic produced by rgl, e.g.:
open3d(); x <- sort(rnorm(1000)); y <- rnorm(1000); z <-
rnorm(1000) + atan2(x,y); plot3d(x, y, z, col=rainbow(1000), size=2)
as a dynamic figure that can be embedded in a pdf?
_____________________________
Professor Michael Kubovy
University of Virginia
Department of Psychology
USPS: P.O.Box 400400
2008 Jun 21
1
question on rgl.surface
I'd like to use rgl.surface (or some other function if more
appropriate) to create a horizontal and vertical transparent grey
slice (plane) running through both the x and y origins and extending
across the z axis, i.e. the 3-d equivalent of the normal 2-d
coordinate axes we are all familiar with. The examples for rgl.surface
are a bit more complex than what I need and I am having trouble
2010 Jul 27
1
rgl package don't draw points with a color over points with another color
I want to plot points with different colors to show different
selections of points in a 3d plot.
My problem is that if I plot a red point at a location where already a
blue point was plotted, than the point is still blue.
Is there a parameter or so which can be used to draw over a existing point?
Example:
> require(rgl)
> open3d()
> plot3d(a<-c(1,2,3,4,5),a,a,type="l",
2008 Oct 24
1
movie3d function in the rgl package
Dear list,
I'm using the function "movie3d" in the package "rgl" to create a .gif
animation of a 3d graphic. The program "ImageMagik" is working
properly, R packages are working, basic examples available in the
manual also working fine.
Problem Solved: when I tried to create more complex movies, i.e.
combining different views and zooming, the R-console crashed
2010 Dec 17
2
rgl: coordinating and saving viewpoints, zoom, scale for multiple images
Context: I have two or more rgl-based views of a given data set, perhaps
fitting different
models, or showing different things across views. I want to be able to
hand-rotate, zoom, scale
one view to something I like, and then show the other views with
matching viewpoints and scaling.
so that one could flip back/forth among graphs and see only the relevant
differences.
In 2D, all this usually
2006 Jan 03
1
How to set the size of a rgl window, par3d() ?
Dear R- Users,
is there a way to determine the size of
an rgl window (rgl.open()) either in advance or
afterwards, (without using the mouse, of course) ?
Intuitively, one would assume to set the size by:
library("rgl");
par3d(viewport=c(0,0,500,500));
#rgl.open();
for example. As the parameter 'viewport' is 'readonly'
this results in an
2008 Apr 20
1
rgl snapshot
Hello everyone,
I know I can save a snapshot an rgl device, but currently it only appears to
do png format. Is there some way of exporting a high-quality picture more
fit for publication?
Thanks,
Mike
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
2007 Feb 22
2
rgl update: please test!
(This is bcc'd to a list of people who have had problems with rgl lately
or who are known to be big users; not cc'd, so you don't all get cc'd
all the responses on the R-devel list).
I've just put together a test build of rgl, and put it on my web site as
http://www.stats.uwo.ca/faculty/murdoch/software/rgl_0.70.564.tar.gz
(source)
and