-
-
Notifications
You must be signed in to change notification settings - Fork 35.4k
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
Editor: Added REALISTIC shading support for video rendering #28463
Conversation
Hmm, is there a way of not modifying |
extends it instead?
|
That'd be better 👌 |
4881b94
to
5c19ac6
Compare
6fc54a7
to
ba0eeee
Compare
Details:
Suggestions:
|
@@ -1,37 +1,40 @@ | |||
import { ViewportPathtracer } from '../Viewport.Pathtracer.js'; | |||
|
|||
var APP = { | |||
|
|||
Player: function () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have you tried doing:
Player: function ( renderer = null ) {
if ( renderer === null ) renderer = new THREE.WebGLRenderer( { antialias: true } );
}
That way we can do new Player( new PathTracingRenderer() )
and we should be able to keep the current untouched?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or maybe just adding a setRenderer()
method to Player
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mean that using single Player
to handle both playing app
and rendering video
? or, Using two players, and make them both accept a custom renderer?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trying to look for ways to implement this while modifying the current code as less are possible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#28517 (Added setPathTracer()
to Player
)
Closing since the modifications to |
video.rendering.+.realistic.shading.mp4
Preview: https://raw.githack.com/ycw/three.js/editor-render-video-with-realistic-shading/editor/index.html
Demo project: (File>Open) project (1).json