similar to: rgl lighting question

Displaying 20 results from an estimated 1000 matches similar to: "rgl lighting question"

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 17
1
using an image as a dendrogram label
Hi, does anybody know if it is possible to use an image (rather than text) to label the leaves of a dendrogram? I realize that this will not always lead to a useful on-screen display, but ideally I'd like to directly go from the dendrogram to a PDF and on-screen viewing is not to too important for me. Also, my trees are relatively small. Any pointers would be apreciated
2009 Feb 07
1
vignettes are installed but not viewable?
Hi, I have a package for which I'm writing a vignette. The vignette looks fine as indicated by R CMD check. However after installing the package (in my personal R library location) doing vignette('rcdk') says Warning message: vignette 'rcdk' *not* found But I can see the PDF file located under rcdk/doc in the R library directory. The header of the Rnw file is %
2008 Mar 17
0
'distance' between a vector and a permutation of the vector
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I've been trying to identify a good way to do the following: Say I have a vector of unique, integers x <- c(1,3,2,4,5) I then have a permuted version of the above vector, say y <- c(1,3,5,2,4) Is there an easy way to get the "distance" between the two vectors. The sense I'm thinking of is such, that if we have y
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
2005 Nov 26
1
Tomb Raider 4 and wine 0.9.1(DirectX 6.1)
Hi! I've just installed wine-0.9.1 on my Fedora Core 3 system (Radeon 9600XT - fglrx-8.19.10). While TR3(demo) setup & gameplay runs okay, TR4 breaks and gives me this error output after the setup screen is thru: ALSA lib seq_hw.c:446:(snd_seq_hw_open) open /dev/snd/seq failed: No such file or dir ectory err:int:INSTR_EmulateInstruction mov cr4,eax at 0x0048da53
2007 Oct 08
2
Fill a polygon with a pattern
What is the simplest (namely: minimum number of libraries or conflicts) way to fill a polygon with a pattern? For example, suppose I have (in a graphic file, like a jpeg) the drawing of an "X". Then I fill a polygon (like a triangle) with this pattern, and get something like: X XXX XXXXX XXXXXXX (where the border "X"s could be truncated). I searched the rimage
2006 Dec 18
2
surface3d grid from xyz dataframe
Hi List, I am trying to plot a grid with an overlayed height. I have a dataframe with four variables: x,y,gridvalue,height. The dataframe has 2.5mio observations (ie grid points), I assign colors through the gridvalue using map_color_gradient thus producing: x,y,gridvalue,height,gridcol as variables of the dataframe. The grid dimensions are 1253 x 2001 (=2507253 data points). My attempts with
2025 May 31
2
constructing a matrix for rgl plots
Hi, rgl plots seem to require the z object in the form of a matrix. I would like some help in constructing this matrix when I cannot use the outer function. Let me explain. library(rgl) library(plot3D) x <- 1:10 y <- 1:20 fun1 <- function (x,y) {x^2+y^2} z <- outer(x,y, fun1) open3d() surface3d(x,y,z,col="red",theta=50, phi=20) This works fine. However, when I have a data
2008 Jun 16
2
Plotting 3d data?
Hi all! I'm very new to R, and I'm having trouble figuring out how to go from a file of points that I have to a 3d surface plot of the data. I typically have something like this: X Y Z 0.005 0.023 34.45 0.0035 0.63 28.48 . I've tried looking at the persp and wireframe packages, and the rgl package, but I can't seem to figure out how to
2017 Oct 19
1
overlaying points and lines on a surface3d rgl plot with axes
Hi R users and experts, I am interested in learning more about the use of 3D plots. Specifically, I want to add points and lines to a surface plot. And get the axes and labels plotted also. Here is what I have tried with an example data set : library(rgl) vol2 <- 2*volcano # Exaggerate the relief library(reshape) mvol2 <- melt(vol2) str(mvol2) # First, persp and persp3d plots do not succeed
2015 May 01
0
Wine release 1.7.42
The Wine development release 1.7.42 is now available. What's new in this release (see below for details): - Support for dynamic timezone information. - Initial desktop shell window support. - Some more Direct2D support. - Various bug fixes. The source is available from the following locations: http://prdownloads.sourceforge.net/wine/wine-1.7.42.tar.bz2
2020 Oct 22
0
3d plot of earth with cut
On 21/10/2020 8:45 a.m., Balint Radics wrote: > Hello, > > Could someone suggest a package/way to make a 3D raster plot of the Earth > (with continent boundaries), and then make a "cut" or "slice" of it such > that one can also visualize some scalar quantity as a function of the > Radius/Depth across that given slice ? > > Formally, I would have a
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 <-
2025 May 31
1
constructing a matrix for rgl plots
On 2025-05-31 7:04 a.m., ravi via R-help wrote: > Hi, > rgl plots seem to require the z object in the form of a matrix. I would like some help in constructing this matrix when I cannot use the outer function. Let me explain. > library(rgl) > library(plot3D) > x <- 1:10 > y <- 1:20 > fun1 <- function (x,y) {x^2+y^2} > z <- outer(x,y, fun1) > open3d() >
2006 Feb 13
1
Saving surface3d Output
Hello, Please could someone advise if it's possible to save the graphical output from the surface3d() function? I have tried the dev.copy() function to save as a pdf but an error message says I cannot copy from the null device. Laura Quinn Institute of Atmospheric Science School of Earth and Environment University of Leeds Leeds LS2 9JT tel: +44 113 343 1596 fax: +44 113 343 6716 mail:
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
2019 Mar 29
0
Wine release 4.5
The Wine development release 4.5 is now available. What's new in this release (see below for details): - Support for Vulkan 1.1. - Better support for kernel objects in device drivers. - Still more Media Foundation APIs implemented. - Support for SVG elements in MSHTML. - Fixes for case conversion troubles in Turkish locale. - Various bug fixes. The source is available from the
2025 May 31
1
constructing a matrix for rgl plots
I'll mention that the 'akima' package is also handy for this kind of interpolation. On 5/31/25 11:18, Duncan Murdoch wrote: > On 2025-05-31 7:04 a.m., ravi via R-help wrote: >> Hi, >> rgl plots seem to require the z object in the form of a matrix. I >> would like some help in constructing this matrix when I cannot use the >> outer function. Let me
2024 Dec 31
1
R: R: samba remote site client authentication and network browsing problem
On Tue, 31 Dec 2024 09:42:05 +0000 Manzini Enrico via samba <samba at lists.samba.org> wrote: > Ok, but why if i browse the network from the client with the remote > rodc and the rwdc used as replication partner for rodc join online, > everything work as expected, but if i shutdown the rwdc used for rodc > join replication partner offline, client no work anymore? >