drei icon indicating copy to clipboard operation
drei copied to clipboard

Question about View

Open DDman1984 opened this issue 9 months ago • 1 comments

Hi, guy I see a demo about View

According to my understanding of code, does constructing a view also simultaneously create a mesh object in the scene? If this is correct, would there be performance issues when displaying a high-polygon model? In other words, if I have N views intending to display a model with 1,000,000 triangles, will the scene need to render N * 1,000,000 triangles simultaneously?

In practice, I did observe the triangle count on the Perf monitor steadily increasing in the scene....

DDman1984 avatar May 10 '24 08:05 DDman1984

If you create <View/> nothing shows. Same with

<View>
</View>

So you must create the meshes or nothing is displayed.

The sandbox you linked to is gone, but in the original is this one I think https://codesandbox.io/p/sandbox/multiple-views-with-uniform-controls-r9w2ob?file=%2Fsrc%2FApp.js

if you delete the {children} of the SidePanel, nothing shows up.

talkingtab avatar May 28 '24 17:05 talkingtab