LookingGlassVTKModule icon indicating copy to clipboard operation
LookingGlassVTKModule copied to clipboard

problem about LookingGlassVTKModule

Open guyuezuntinggithub opened this issue 4 years ago • 15 comments

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!

guyuezuntinggithub avatar Aug 10 '21 03:08 guyuezuntinggithub

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 ?

jcfr avatar Aug 10 '21 14:08 jcfr

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

guyuezuntinggithub avatar Aug 12 '21 02:08 guyuezuntinggithub

@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.

LucasGandel avatar Aug 24 '21 08:08 LucasGandel

@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 avatar Aug 25 '21 02:08 guyuezuntinggithub

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

guyuezuntinggithub avatar Aug 25 '21 02:08 guyuezuntinggithub

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.

LucasGandel avatar Aug 25 '21 13:08 LucasGandel

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

guyuezuntinggithub avatar Aug 26 '21 02:08 guyuezuntinggithub

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

LucasGandel avatar Aug 26 '21 06:08 LucasGandel

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 avatar Aug 26 '21 07:08 guyuezuntinggithub

you should see the quilt on your screen

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

guyuezuntinggithub avatar Aug 26 '21 07:08 guyuezuntinggithub

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?

LucasGandel avatar Aug 26 '21 09:08 LucasGandel

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 avatar Aug 26 '21 09:08 guyuezuntinggithub

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?

guyuezuntinggithub avatar Sep 01 '21 03:09 guyuezuntinggithub

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

LucasGandel avatar Sep 01 '21 08:09 LucasGandel

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!

guyuezuntinggithub avatar Sep 02 '21 01:09 guyuezuntinggithub