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

Problem about creating transparent 3D Model #345

Open
Gaben21 opened this issue Mar 6, 2024 · 7 comments
Open

Problem about creating transparent 3D Model #345

Gaben21 opened this issue Mar 6, 2024 · 7 comments

Comments

@Gaben21
Copy link

Gaben21 commented Mar 6, 2024

If I want to create a 3D model of a transparent object in Blender, like the one shown in the image below(ignore some lables on the objects), do I not need texture images?
f8379f050060f084e5cc88d3fee2699

Then, in the model files I construct for generating data, do I only need the .obj file and .mtl file for the transparent object?

@Gaben21 Gaben21 changed the title Problem about Problem about creating transparent 3D Model Mar 6, 2024
@TontonTremblay
Copy link
Collaborator

wow transparent stuff is hard! I would suggest to use blender directly to generate your data. We are currently working on a version with omniverse, you might be able to use this, but I dont have first hand experience. But nvisii has limited capacity for transparent objects. And modelling these objects you need to be precise.

@Gaben21
Copy link
Author

Gaben21 commented Mar 8, 2024

I created some 3D models of the transparent objects using blender and export .obj file and .mtl file. But when I want to import the model in NVISII, I found the material applied in the object is missing. I think if the function used to load model nvisii.import_scence only loads .obj file and doesn't load .mtl file. It seems I can only change the parameter alpha and transmission in the code to make the object transparent.If it has another way?
And I have another question is that where can I define the material before loading .obj file in the code. I print the material name of the object , it show 'basicMaterial'
Thank you very much !!!

@TontonTremblay
Copy link
Collaborator

obj mtl models do not have the capacity to express transparency. https://github.com/owl-project/NVISII/blob/master/examples/17.materials_visii_interactive.py check this and play with transmission. You need to apply that to your model, but transparency is not well supported by nvisii.

@Gaben21
Copy link
Author

Gaben21 commented Mar 9, 2024

OK! Thank you!

@Gaben21
Copy link
Author

Gaben21 commented Mar 22, 2024

@TontonTremblay
Hi, Tonton.I have a question about how can i adjust the distance between camera and the object when generating images. Some transparent objects in the image generated seem too small to be detected, as following image shown. And if you have some other advice to improve the result, I would be extrmely grateful.
00002
00002 png

@TontonTremblay
Copy link
Collaborator

I would change obj_scale

@Gaben21
Copy link
Author

Gaben21 commented Mar 22, 2024

ok,thank you very much!

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

2 participants