-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Propagate from rendered image into meshes? #276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@magicknight what are the rasterization settings for the renderer? |
Hi @nikhilaravi , thank you for your reply. # Rotate the camera by the azimuth angle
R, T = look_at_view_transform(dist=2.5, elev=10, azim=50)
cameras = OpenGLPerspectiveCameras(device=device, R=R, T=T)
lights = PointLights(device=device, location=[[5.0, 5.0, -0.0]])
# blend_setting = BlendParams(2.0, 2.0, (0.0, 0.0, 0.0))
raster_settings = RasterizationSettings(
image_size=512,
blur_radius=0.0,
faces_per_pixel=1,
bin_size = None, # this setting controls whether naive or coarse-to-fine rasterization is used
max_faces_per_bin = None # this setting is for coarse rasterization
)
renderer = MeshRenderer(
rasterizer=MeshRasterizer(
cameras=cameras,
raster_settings=raster_settings
),
shader=SoftPhongShader(
device=device,
cameras=cameras,
lights=lights,
# blend_params=blend_setting
),
)
# Change specular color to green and change material shininess
materials = Materials(
device=device,
specular_color=[[1.0, 1.0, 1.0]],
shininess=1.0
)
# Render the mesh, passing in keyword arguments for the modified components.
cow_image = renderer(cow_mesh, lights=lights, materials=materials, cameras=cameras)
defect_image = renderer(defect_mesh, lights=lights, materials=materials, cameras=cameras) |
@magicknight the
|
@magicknight if this resolves your question please close this issue. |
Thank you nikhilaravi :D |
Hi,
I am trying to propagate from a single rendered image into meshes, but it seems that the meshes never converge?
My poor cow was deforming into a moster like this:
This is the original cow and the target cow:
My code looks like this:
The text was updated successfully, but these errors were encountered: