kaolin
kaolin copied to clipboard
Any suggestion about rendering transparent part?
Hello, I have a model with pbr mat which has transparent part ,but I don't know how to render it correctly. I got the basecolor of the transparent part instead of the color behind it. Is there a way to render it correctly?
@XiongFenghhh , If you are using nvdiffrast, you could use nvdiffrast.torch.DepthPeeler
@XiongFenghhh , If you are using nvdiffrast, you could use
nvdiffrast.torch.DepthPeeler
Thank you for your suggestion, I got the desired render result based on the nvdiffrast document. However, according to the doc, the hyperparameter "num_layers" need to be set. Is there a way to automatically set it? or does it currently only support manual settings?
with nvdiffrast.torch.DepthPeeler(glctx, pos, tri, resolution) as peeler:
for i in range(num_layers):
rast, rast_db = peeler.rasterize_next_layer()
(process or store the results)
@XiongFenghhh , If you are using nvdiffrast, you could use
nvdiffrast.torch.DepthPeeler
Thank you for your suggestion, I got the desired render result based on the nvdiffrast document. However, according to the doc, the hyperparameter "num_layers" need to be set. Is there a way to automatically set it? or does it currently only support manual settings?
with nvdiffrast.torch.DepthPeeler(glctx, pos, tri, resolution) as peeler: for i in range(num_layers): rast, rast_db = peeler.rasterize_next_layer() (process or store the results)
I set num_layers to a safe value.