You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
is it possible to add a texture from a file to an entity/mesh created with a obj file?
I create the entity using:
obj = nvisii.entity.create(
name=object,
mesh = nvisii.mesh.create_from_file("object", "object.obj"),
transform = nvisii.transform.create("object"),
material = nvisii.material.create("object")
)
I create the texture using: nvisii.texture.create_from_file("tex_object", "texture.jpg")
And then set the texture with: nvisii.material.get("object").set_base_color_texture(tex_klt)
The object in the rendered images just changes to color to a kind of grey. I also tried different obj files and texture.jpg files with the same result. When i use a nvisii.mesh.create_box mesh the textures looks perfect!
any idea?
The text was updated successfully, but these errors were encountered:
Even with procedural textures i get the same problem.
I used the same noise generated texture with set_base_color_texture() on both entities but get a very different look.
is it possible to add a texture from a file to an entity/mesh created with a obj file?
I create the entity using:
obj = nvisii.entity.create(
name=object,
mesh = nvisii.mesh.create_from_file("object", "object.obj"),
transform = nvisii.transform.create("object"),
material = nvisii.material.create("object")
)
I create the texture using: nvisii.texture.create_from_file("tex_object", "texture.jpg")
And then set the texture with: nvisii.material.get("object").set_base_color_texture(tex_klt)
The object in the rendered images just changes to color to a kind of grey. I also tried different obj files and texture.jpg files with the same result. When i use a nvisii.mesh.create_box mesh the textures looks perfect!
any idea?
The text was updated successfully, but these errors were encountered: