Comments (12)
That's a good question and I'm not sure. I can try to offer some possible solutions.
https://stackoverflow.com/a/26790802
If you follow the instructions here and get the code structured in the right order, does it work? If not, it may be because the renderer doesn't always draw to the screen each frame, and only draws to the screen when the next sample is completely rendered. In this case, does running your code inside the renderer.onSampleRendered callback work?
from ray-tracing-renderer.
Hello! @VinAr22 I can save it normally on my Google browser, and it's also black on Firefox.
from ray-tracing-renderer.
Good question. It's not possible at the moment, but I'm in the middle of separating the different of stages of rendering (useful for spatial denoising) that will also make transparency possible as well. So we'll probably have that in a few weeks!
from ray-tracing-renderer.
I have hard-coded this code:
if (typeof window.screenShot == "function") {
if (window.doScreenShot){
window.screenShot();
window.doScreenShot=false;
}
}
At the end of the function drawTile()
if (isLastTile) {
...
HERE
}
from ray-tracing-renderer.
Hi! Thanks for the quick response. The method using requestAnimationFrame does not work. renderer.onSampleRendered did the trick
from ray-tracing-renderer.
So i have another question about this topic. Maybe it is possible to save only model view on transparent background? :)
from ray-tracing-renderer.
Hello! It'll be cool! Please let me know when it will be possible
from ray-tracing-renderer.
Hello @jaxry! After the update, saving the canvas data does not work with renderer.onSampleRendered. :(
from ray-tracing-renderer.
Thanks for letting me know. onSampleRendered
now measures performance as well, and to get an accurate number, the callback is called one frame after the sample is rendered to the screen. Doing so makes the callback fall out of sync with the browser's draw frame.
Unfortunately I don't think we can move the callback back to where it was. Instead, would a separate callback, like renderer.getScreenshot(callback)
get the job done?
from ray-tracing-renderer.
Hi @jaxry ! Thanks for the response. I understand correctly, this function already exists? Or is it just planned? it would be cool to be able to save a screenshot.
from ray-tracing-renderer.
Hi @nicolab28 ! Is it works with the last version of the ray tracing renderer?
from ray-tracing-renderer.
I don't think I'm using the very last one, but I don't see why it won't work?
from ray-tracing-renderer.
Related Issues (20)
- Issue with Material Transparency HOT 9
- Using threejs renderer and raytracing renderer in the same canvas HOT 5
- Color depending on the depth of the glass. HOT 1
- Unable to run demo: Failed to execute 'getActiveUniforms' on 'WebGL2RenderingContext' HOT 4
- Hi, everyone. I'd like to ask when the ray tracing renderers can add light sources and spotlights HOT 6
- Handle vertexColors: true in meshStandardMaterial HOT 2
- Dead white pixels even after convergence HOT 7
- Hello, I'd like to ask about the render support three.js Is the bump in the map HOT 2
- Block shadows in GLTF model HOT 1
- Not working with the latest version of three.js. Any advice on how to fix this?
- Envrionment map is displayed rotated when Object3D .DefaultUp is Z Axis.
- I can't run the demos
- Why there is no output in display?
- about shadowCatcher
- Some Glb file will not load
- Bright Pixels show on screen when transparent material is used HOT 3
- ES6 in the browser? HOT 1
- muti material not supported
- Broken demo HOT 4
- How to detect hardware/software compatibility? HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ray-tracing-renderer.