-
Notifications
You must be signed in to change notification settings - Fork 225
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
Possible to disable lighting (directly render base RGB)? #51
Comments
I think I've figured out the trick:
Thanks! |
Closing this issue. If anyone else has a better solution please let me know! |
I think this doesn't solve the problem. If I want to render a mesh with face_colors=[0,200,0], what I get is [0,228,0] (same for vertex_colors). @mmatl it would be great to have an option to disable PBR since people can use the color to simulate segmentation labels. Also would be great to have an option to disable anti-aliasing for the same purpose.
|
Oh, forget about my previous comment. Just notice this post: Thanks again for this great library. |
@simbaforrest do you have a sample of code replicating the problem you see (with [0,200,0] becoming [0,228,0])? The comment in #15 is a solution only in the context of semantic segmentation and would require iterating over the number of objects -- which is certainly not a computationally ideal solution either. |
I guess what you need is the albedo pass, which is not implemented in the code. I am looking for this feature too. :) |
Sorry, my code is a mess now. But you should be able to try this easily with your own code. |
Hi, I just came across the same issue @simbaforrest had a while ago. I would like to render a mesh with the exact colors specified in the vertex colors, without any additional lighting etc. Find below a code snippet that shows the problem. In this test I'm coloring all vertices with a constant color (e.g. [10,20,30]). The rendered image shows the object with constant color, but completely different color values. I also played around with the material properties but couldn't find a setting that renders the vertex colors correctly. Maybe I'm using the lighting/material in a wrong way?
|
I encounter the same problems as @markus-sp, also after specifying the face colors as in the case of @simbaforrest. Any news on this issue? |
It seems like flat shading, as also referenced in #15, was added a while ago but the documentation wasn't updated. You can enable it using the render flags: color, depth = r.render(scene, flags=pyrender.constants.RenderFlags.FLAT) |
Ideally what would fix this is a new flag that disables GL_MUTLISAMPLE in this line. Althought my quick test on this hasn't completely fixed this problem for me, but its a big step in the right direction. There still seems to be some strange blurring/blending of pixel values at certain points on the model. |
still no update on this? |
My method is : 1)turn off all external light sources |
Hi, thanks for setting up this amazing library!! I was wondering if its possible to render a scene without the need for adding lights. For example, since a mesh has an associated set of face colors and vertex colors, we should be able to directly render those RGB colors.
I noticed that OpenGL supported disabling lighting
glDisable(GL_LIGHTING)
; however, I couldn't figure out how to add this functionality to pyrender -- in the even that you don't already support this :)The text was updated successfully, but these errors were encountered: