Skip to content
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

can't render multi times #176

Open
a873054267 opened this issue May 26, 2022 · 0 comments
Open

can't render multi times #176

a873054267 opened this issue May 26, 2022 · 0 comments

Comments

@a873054267
Copy link

first of all ,Thank you so much for your open source project!
I want to add three-view-drawing on this system;

1 when inital renderer, setting renderer.autoclear = false;
2 add the following code before execute renderer.render in animate function

this.renderer.setViewport(0, 0, 200, 200);
this.renderer.render(this.scene, this.camera);
this.renderer.setViewport(0, 0, this.canvasContainer.clientWidth, this.canvasContainer.clientHeight);

this.renderer.render(this.scene, this.camera);
3 the canvas should exist two render result,but only the last;

4 the above code is correct in my old three project;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant