kaolin icon indicating copy to clipboard operation
kaolin copied to clipboard

rendering multiple textured meshes in single scene

Open alex-helm opened this issue 5 years ago • 3 comments

Hi! Sorry for the basic question. I'm attempting to render one image of a scene with several meshes that each have a different image texture. I haven't been able to figure out how to do this with the DIB-R or NMR. Is this functionality built in and if so could you please point me to the documentation for it and/or examples. Thank you so much!

alex-helm avatar May 24 '20 04:05 alex-helm

Hi @alex-helm batching is an incoming feature (watch for release ! :D), meanwhile here is a little tips for you: you can concatenate vertices of multiple meshes on the dim=0, offset the indices stored inside faces (using the cumulative sum of the number of vertices of previous meshes) and concatenated them on dim=0.

Caenorst avatar May 24 '20 21:05 Caenorst

Hi @Caenorst where are the batching features in 2022? 😊 for the solution mentioned here, how to deal with multiple meshes with multiple texture maps..? Thank you!

zoezhou1999 avatar Nov 21 '22 02:11 zoezhou1999

Hi @zoezhou1999 , there are some batching features in Kaolin (most ops in mesh are batched by default). for the rendering with multiple texture maps is depend on the size of those texture maps, you can see the approach taken in our camera and rasterization tutorial

Caenorst avatar Dec 12 '22 23:12 Caenorst