-
Notifications
You must be signed in to change notification settings - Fork 267
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
Render pplastic material using mesh vertex attributes stored in a .PLY 3D model #496
Comments
Could you please post the full version of your test scene that also includes your Also, do you observe the same problem with a simpler |
This is the full version of my test scene (I modified docs/scenes/bsdf_pplastic.xml). I had no problem when I used diffuse BSDF. |
Ah ok, I see what is happening now. It's a combination of two things:
|
Thank you very much! The problem is solved. |
Great :) |
Summary
I can use a texture to set spatially varying diffuse albedos of 'pplastic' material, but I wonder whether the diffuse albedo can be assigned spatially using the color of vertices stored in .ply 3D models.
System configuration
scalar_rgb
scalar_spectral
scalar_rgb_polarized
scalar_mono_polarized
scalar_spectral_polarized
Description
I used your sample code of 'bsdf_pplastic.xml', and changed the uniform albedo to a texture.
I also tried to set the albedo according to the vertex color stored in the .ply model but it says that
unreferenced object MeshAttribute[
[xml.cpp:1059] name = "vertex_color",
[xml.cpp:1059] scale = "1"
[xml.cpp:1059] ] (within bsdf of type "pplastic")
Is there something wrong or 'pplastic' does not support MeshAttribute plugin?
bsdf_pplastic.zip
The text was updated successfully, but these errors were encountered: