Skip to content
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

pixel normal #212

Open
chen990627 opened this issue Mar 7, 2023 · 0 comments
Open

pixel normal #212

chen990627 opened this issue Mar 7, 2023 · 0 comments

Comments

@chen990627
Copy link

chen990627 commented Mar 7, 2023

`pixel_attributes,alphas = rasterize_triangles.rasterize_triangles(
vertices, vertex_attributes, triangles, clip_space_transforms,
image_width, image_height, [-1] * vertex_attributes.shape[2])

pixel_normals = tf.nn.l2_normalize(pixel_attributes[:, :, :, 0:3], axis=3)`

the code above is from mesh_renderer.py and I debug it with a image.
why does the pixel normal contain negative values? what do these negative values represent?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant