Deep_Object_Pose icon indicating copy to clipboard operation
Deep_Object_Pose copied to clipboard

Problem about creating transparent 3D Model

Open Gaben21 opened this issue 1 year ago • 7 comments

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 avatar Mar 06 '24 08:03 Gaben21

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.

TontonTremblay avatar Mar 06 '24 19:03 TontonTremblay

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 !!!

Gaben21 avatar Mar 08 '24 06:03 Gaben21

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.

TontonTremblay avatar Mar 08 '24 16:03 TontonTremblay

OK! Thank you!

Gaben21 avatar Mar 09 '24 00:03 Gaben21

@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

Gaben21 avatar Mar 22 '24 01:03 Gaben21

I would change obj_scale

TontonTremblay avatar Mar 22 '24 02:03 TontonTremblay

ok,thank you very much!

Gaben21 avatar Mar 22 '24 03:03 Gaben21