-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
snapshot3d fails on Windows 10 #391
Comments
First: your code works for me without an error. I'm not on Windows so that's not a big surprise, but it probably means I'm not going to be able to do much debugging here. In any case, it looks to me as though the problem is in
Because I put the |
I tried using webshot2 directly and it worked. I wonder if the issue wit using snapshot3d is associated with how the temp html file is being saved. widget <- rglwidget(width = 600, height = 600) |
Thanks for following up. Maybe some more of the details affect things. I think this code is equivalent to what would happen from
Does that also work for you? If you get any warnings or errors, which lines triggered them? |
Did not work. Error occurs on last line which is calling webshot: file:///C:\Users\cholbert\AppData\Local\Temp\RtmpYtOniO\file43c44fbe5168.htmlC:\Users\cholbert\AppData\Local\Temp\RtmpYtOniO\file43c44fbe5168.html screenshot completed 2: In normalizePath(path.expand(path), winslash, mustWork) : |
Okay, that's progress. The first error shows that the temp file
|
Worked after changing "mustwork" to "mustWork"! |
Great, I can add that workaround, and leave an issue for |
Thank you so much for helping!! |
snapshot3d fails when trying to save a simple example on Windows 10. The example code is as follows:
vertices <- c(
-1.0, -1.0, 0,
1.0, -1.0, 0,
1.0, 1.0, 0,
-1.0, 1.0, 0
)
indices <- c( 1, 2, 3, 4 )
open3d()
wire3d( mesh3d(vertices = vertices, quads = indices) )
snapshot3d('mesh.png')
I get the following errors:
Warning messages:
1: In onRejected(...) :
An error occurred: Error in onFulfilled(value): Unable to find any visible elements for selectors.
2: In normalizePath(path.expand(path), winslash, mustWork) :
path[1]="An error occurred: Error in onFulfilled(value): Unable to find any visible elements for selectors.
": The filename, directory name, or volume label syntax is incorrect
3: In snapshot3d("mesh.png") :
webshot2::webshot() failed; trying rgl.snapshot()
When I run chromote::find_chrome() I get the following path:
[1] "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"
rgl Version: 1.2.1
R Version: 4.3.1
Platform: Windows 10>
The text was updated successfully, but these errors were encountered: