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

loab obj file example produced output #160

Open
monajalal opened this issue Jan 18, 2023 · 5 comments
Open

loab obj file example produced output #160

monajalal opened this issue Jan 18, 2023 · 5 comments

Comments

@monajalal
Copy link

Is this an expected output?
(nvisii) mona@ard-gpu-01:~/NVISII/examples$ python 04.load_obj_file.py
Found 1 GPUs available for rendering.
256/256 - done!

I downloaded the file from this link:
https://www.turbosquid.com/FullPreview/1129559#

and the produced png seems weird.

Screenshot from 2023-01-18 15-23-16

Screenshot from 2023-01-18 15-23-27

@monajalal
Copy link
Author

monajalal commented Jan 18, 2023

I forgot to add the bmp to the dragon, reload it again in meshlab and also reran your code, still same output is produced.
Screenshot from 2023-01-18 15-27-18

(nvisii) mona@ard-gpu-01:~/NVISII/examples$ python 04.load_obj_file.py
Found 1 GPUs available for rendering.
256/256 - done!

@TontonTremblay
Copy link
Collaborator

Can you do --interactive you will see debug views, I think the scale is probably too big or too small. I might have a piece of code that makes the object a default size so you do not have to play with that.

@monajalal
Copy link
Author

monajalal commented Jan 19, 2023

(nvisii) mona@ard-gpu-01:~/NVISII/examples$ python 04.load_obj_file.py 
Found 1 GPUs available for rendering.
Warning: Could not do CUDA graphics resource sharing for the display buffer texture (unknown error)... falling back to slower path
 256/256 - done!
(nvisii) mona@ard-gpu-01:~/NVISII/examples$ grep headless 04.load_obj_file.py 
nvisii.initialize(headless=False, verbose=True)

Thanks for looking at this issue.

Is this what you requested?

also, no problem when running from the dragon in content.
Screenshot from 2023-01-19 14-13-07

I have same problem when I load a scene of interest rather than the scene in your content (I commented the lines related to mirror in scene load). You can download the scene for free here https://www.cgtrader.com/items/2421249/download-page

(nvisii) mona@ard-gpu-01:~/NVISII/examples$ python 08.obj_scene_loader.py
Screenshot from 2023-01-19 14-15-56

@TontonTremblay
Copy link
Collaborator

TontonTremblay commented Jan 19, 2023 via email

@TontonTremblay
Copy link
Collaborator

I am not sure I am following the problem here. Is the problem related to not loading the new mesh you have?

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