Kitware / LookingGlassVTKModule

Other
15 stars 12 forks source link

problem about LookingGlassVTKModule #24

Open guyuezuntinggithub opened 2 years ago

guyuezuntinggithub commented 2 years ago

Hi~ I am using LookingGlassVTKModule these days. I build vtk with LookingGlassVTKModule successfully. But, when I debug the test project, the function “vtkRegressionTestImage(renderWindow)” always return vtkRegressionTester::NOT_RUN.

And the lookingGlass shows empty always. Any suggestions will be appreciated! It’s very important for me!

jcfr commented 2 years ago

Thanks for reporting the issue :pray:

@LucasGandel Do you have insight to help @guyuezuntinggithub ?

@guyuezuntinggithub Could you also look into https://github.com/Kitware/LookingGlassVTKModule/pull/23 ?

guyuezuntinggithub commented 2 years ago

@jcfr Thanks for your response very much,but sorry, I can't understand their content about the issue#23 . It seems like arbitrary quilting. I check my code result, It's 5 columns *9 rows. Is that mean the wrong arbitrary quilting cause the wrong return of function “vtkRegressionTestImage(renderWindow)”? How to set the arbitrary quilting. Is there any api that I can use? Thanks very much!

LucasGandel commented 2 years ago

@guyuezuntinggithub Sorry for my late reply.

The return value vtkRegressionTester::NOT_RUN is expected unless you run the test in interactive mode. To do so, just append the -I parameter to the command line.

Running the following from the my vtk build bin/Release directory works fine on my side:

./vtkLookingGlassCxxTests.exe "TestDragon" "-D" "path/to/vtk-build/ExternalData/Testing" "-T" "path/to/vtk-build/Testing/Temporary" -I

Don't hesitate if you still have issues running the example.

guyuezuntinggithub commented 2 years ago

@guyuezuntinggithub Sorry for my late reply.

The return value vtkRegressionTester::NOT_RUN is expected unless you run the test in interactive mode. To do so, just append the -I parameter to the command line.

Running the following from the my vtk build bin/Release directory works fine on my side:

./vtkLookingGlassCxxTests.exe "TestDragon" "-D" "path/to/vtk-build/ExternalData/Testing" "-T" "path/to/vtk-build/Testing/Temporary" -I

Don't hesitate if you still have issues running the example.

Very appreciate for your reply. The return value turns to vtkRegressionTester::DO_INTERACTOR. This problem is solved. But the screen of LookingGlass is still nothing. It's like that the screen is not powering(actually the screen is normal when the vtkLookingGlassCxxTests.exe is not run). bellow image is runing code image

guyuezuntinggithub commented 2 years ago

this is the running video https://user-images.githubusercontent.com/63081832/130716630-8a4dda91-6be5-4702-b8a6-1537a9853eb5.mp4

LucasGandel commented 2 years ago

You should have adapted the command line I shared to replace path/to/vtk-build/ with the correct path to you VTK build tree!

Looking at your screenshot, I guess your VTK build tree is 'F:/work/VTK-9.0.3/build/' so the right command line is: ./vtkLookingGlassCxxTests.exe "TestDragon" "-D" "F:/work/VTK-9.0.3/build/ExternalData/Testing" "-T" "F:/work/VTK-9.0.3/build/Testing/Temporary" -I

If the above does not work, I remember it was working only when having extended display. Can you please follow the instructions from here and see if it works better.

guyuezuntinggithub commented 2 years ago

You should have adapted the command line I shared to replace path/to/vtk-build/ with the correct path to you VTK build tree!

Looking at your screenshot, I guess your VTK build tree is 'F:/work/VTK-9.0.3/build/' so the right command line is: ./vtkLookingGlassCxxTests.exe "TestDragon" "-D" "F:/work/VTK-9.0.3/build/ExternalData/Testing" "-T" "F:/work/VTK-9.0.3/build/Testing/Temporary" -I

If the above does not work, I remember it was working only when having extended display. Can you please follow the instructions from here and see if it works better.

Thank you for your reply! I replace the path, and config the pc display to an extended display again. But It still does not work. This is the command line: image This is the build tree for temporary image This is externalData image

LucasGandel commented 2 years ago

Not sure what is going wrong on your side. If you disconnect the device and run the test, you should see the quilt on your screen. Can you give it a try?

Below is an example I used to draw a simple sphere. It uses either the render window approach or the render pass approach depending on the commented blocks. You might want to give it a try to see if one approach works better. Example.zip

guyuezuntinggithub commented 2 years ago

Not sure what is going wrong on your side. If you disconnect the device and run the test, you should see the quilt on your screen. Can you give it a try?

Below is an example I used to draw a simple sphere. It uses either the render window approach or the render pass approach depending on the commented blocks. You might want to give it a try to see if one approach works better. Example.zip

Thank you very much! I will try it

guyuezuntinggithub commented 2 years ago

you should see the quilt on your screen

Below is what is showing on my screen when I disconnect the device image

LucasGandel commented 2 years ago

Below is what is showing on my screen when I disconnect the device

This looks good, you have the correct rendering. Are you using the LookingGlass portrait device?

guyuezuntinggithub commented 2 years ago

Below is what is showing on my screen when I disconnect the device

This looks good, you have the correct rendering. Are you using the LookingGlass portrait device?

I am not sure. Below is the Instruction manual x725p5d3nglapop92nyue58g_0

guyuezuntinggithub commented 2 years ago

Below is what is showing on my screen when I disconnect the device

This looks good, you have the correct rendering. Are you using the LookingGlass portrait device?

Is it possible that the lookingGlass device I use is not supported by this exsample?

LucasGandel commented 2 years ago

Is it possible that the lookingGlass device I use is not supported by this exsample?

I'm not sure what could go wrong, using frame debuggers such as RenderDoc might help here. Maybe you experience the same arbitrary quilt size issue as I did with my portrait device. Can you give a try to my branch and see if it works better? https://github.com/LucasGandel/LookingGlassVTKModule/tree/support-looking-glass-portrait%C2%94

guyuezuntinggithub commented 2 years ago

Is it possible that the lookingGlass device I use is not supported by this exsample?

I'm not sure what could go wrong, using frame debuggers such as RenderDoc might help here. Maybe you experience the same arbitrary quilt size issue as I did with my portrait device. Can you give a try to my branch and see if it works better? https://github.com/LucasGandel/LookingGlassVTKModule/tree/support-looking-glass-portrait%C2%94 very appreciate! I will try it!