owl-project / NVISII

Apache License 2.0
319 stars 27 forks source link

loab obj file example produced output #160

Open monajalal opened 1 year ago

monajalal commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago
(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 commented 1 year ago

I am sorry i thought this was the dope GitHub. Sorry. I am not sure why it is not loading then. I will check later tomorrow.

On Thu, Jan 19, 2023 at 11:12 Mona Jalal @.***> wrote:

(nvisii) @.:~/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) @.:~/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?

— Reply to this email directly, view it on GitHub https://github.com/owl-project/NVISII/issues/160#issuecomment-1397478181, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABK6JIB7XMQVQVY2HNCFL6LWTGGZXANCNFSM6AAAAAAT7QW2CQ . You are receiving this because you commented.Message ID: @.***>

TontonTremblay commented 1 year ago

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