Closed kalyo-zjl closed 3 years ago
@kalyo-zjl please create separate issues for each separate question!
I found that SfMPerspectiveCameras requires to pass device as a parameter, so should I init it in every forward pass,
You can use cameras.to(device)
to move the camera tensors to a different device.
I may wonder if I can already get face color or vertex color with lighting, how can I choose a plain shader?
If you want there to be a uniform color for each face you can use the HardFlatShader
or SoftFlatShader
. If you want each vertex to have a color and interpolate this across the face you can use the HardGouraudShader
or SoftGouraudShader
.
If I need a differentiable render engine, does the following setting right?
In your current setup you will need to change the blur_radius
so it is > 0. We have several tutorials with example code for how to set up a renderer with PyTorch3D so you can use these as a reference.
Thank you very much! @nikhilaravi
Hi, thanks for releasing the useful 3D tools pytorch3d. It is really helpful for my project. But I have some problems when using it, can you give me a favor?
I'm confused that can I only initialize SfMPerspectiveCameras once in init function, if the camera is fixed? I found that SfMPerspectiveCameras requires to pass device as a parameter, so should I init it in every forward pass, as well as rasterizer and shader?
by the way, I'm new to this area. I may wonder if I can already get face color or vertex color with lighting, how can I choose a plain shader? Another question is that if I need a differentiable render engine, does the following setting right?
@nikhilaravi