Skip to content

Is there a way to make canvas reuse existing renderer? #96

Closed
@UltimateForm

Description

@UltimateForm

In my case i have a sort of 3d models gallery with many canvases so I eventually reach the
WARNING: Too many active WebGL contexts. Oldest context will be lost. and the later THREE.WebGLRenderer: Context Lost.. I could use just one canvas for many models but the gallery has other things other than 3d models + they are encapsulated in non-threeJs components.

I am also aware of this https://stackoverflow.com/questions/21548247/clean-up-threejs-webgl-contexts but I wanted to know if there is a way to do so and keep fiber's more react-friendly ways

Also what would be the best way to collect a thumbnail lets say using Fiber? From the canvas html element within fiber's Canvas or through https://threejs.org/docs/#api/en/renderers/WebGLRenderer.domElement ?

Thank you in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions