pomelo icon indicating copy to clipboard operation
pomelo copied to clipboard

No preview displayed

Open JLeG05 opened this issue 2 years ago • 5 comments

I've installed the program on a Surface tablet with no problems with displaying the final build and exporting the results. When I installed it on my PC running Win 10 with an AMD Radeon Pro WX7100, the program starts without any problems. I'm able to build the Skeleton and view it in the popup window, but when I click on the Build under 3D Profile, nothing shows up in the preview. I'm also able to export the resulting 3D object, just not preview the results.

JLeG05 avatar May 15 '23 03:05 JLeG05

Getting OpenGL to work reliably on Windows is a bit of a black art, I'm afraid. First question: When you open Pomelo on your PC, do you see the RGB triangle?

There are also two command line switches that may help:

--log-file c:/Temp/pomelo.log --debug_dir c:/Temp/pom

Try running Pomelo from cmd with these flags. And after you exit zip them up and attach to this bug report. We can start with the log file, as the debug directory can get quite large.

dov avatar May 15 '23 10:05 dov

  1. Yes, I see the RGB triangle.

  2. I ran the switches "c:\Program Files\Pomelo\bin\Pomelo.exe" --log-file c:/Temp/pomelo.log --debug_dir c:/Temp/pom and click on both builds.

  3. FYI – When you view the skeleton, it appears off center (image 02) until you pan the view (image 03). Image 01 is when you first open Pomelo and image 04 is after the last build is clicked.

From: Dov Grobgeld @.> Sent: Monday, May 15, 2023 3:20 AM To: dov/pomelo @.> Cc: JLeG05 @.>; Author @.> Subject: Re: [dov/pomelo] No preview displayed (Issue #15)

Getting OpenGL to work reliably on Windows is a bit of a black art, I'm afraid. First question: When you open Pomelo on your PC, do you see the RGB triangle?

There are also two command line switches that may help:

--log-file c:/Temp/pomelo.log --debug_dir c:/Temp/pom

Try running Pomelo from cmd with these flags. And after you exit zip them up and attach to this bug report. We can start with the log file, as the debug directory can get quite large.

— Reply to this email directly, view it on GitHubhttps://github.com/dov/pomelo/issues/15#issuecomment-1547587190, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A5HZH5IWWZ6AMVR6XTO5NBTXGH7LTANCNFSM6AAAAAAYBTHBWU. You are receiving this because you authored the thread.Message ID: @.@.>>

JLeG05 avatar May 15 '23 18:05 JLeG05

Forgot to add this info also which I received from another developer that I was testing his program when I could not see any menu items with the AMD card. Maybe this will give a clue to what is happening.

Message to AMD The problem was in openGL initialization, just in one line of code. I've changed this part a bit because in this version I have added antialiasing.

At old versions line was: glutInitDisplayMode(GLUT_RGBA | GLUT_DOUBLE | GLUT_ACCUM | GLUT_DEPTH);

As I added multisampling and as I saw in opengl tutorials I have also added GLUT_MULTISAMPLE glutInitDisplayMode(GLUT_RGBA | GLUT_DOUBLE | GLUT_ACCUM | GLUT_DEPTH | GLUT_MULTISAMPLE);

Sure I also added necessary multisampling code in my FBO, where I actually used it. I've used FBO for every UI panel and for viewport. It worked at my PC (NVidia Geforce GTX 1660 + AMD Radeon HD 6700 for second monitors, windows 10), at my friend pc with windows 11 (but not amd gpu), and even at Asus eee pc and macos VM. But there was a problem with windows 11 and some AMD GPUs.

Seems like GLUT_MULTISAMPLE was not necessary in openGL init because I used multisampling in FBO. I back it to old line and everything working at your PC. glutInitDisplayMode(GLUT_RGBA | GLUT_DOUBLE | GLUT_ACCUM | GLUT_DEPTH);

Probably it sounds stupid, because I don't know all subtleties of how opengl work. But if something is working everywhere except some AMD GPUs, seems like AMD need to fix it.

Regarding your link to stackoverflow and glutSetOption(GLUT_MULTISAMPLE..) it hasn't changed anything, so I think problem is not in samples count.

From: Dov Grobgeld @.> Sent: Monday, May 15, 2023 3:20 AM To: dov/pomelo @.> Cc: JLeG05 @.>; Author @.> Subject: Re: [dov/pomelo] No preview displayed (Issue #15)

Getting OpenGL to work reliably on Windows is a bit of a black art, I'm afraid. First question: When you open Pomelo on your PC, do you see the RGB triangle?

There are also two command line switches that may help:

--log-file c:/Temp/pomelo.log --debug_dir c:/Temp/pom

Try running Pomelo from cmd with these flags. And after you exit zip them up and attach to this bug report. We can start with the log file, as the debug directory can get quite large.

— Reply to this email directly, view it on GitHubhttps://github.com/dov/pomelo/issues/15#issuecomment-1547587190, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A5HZH5IWWZ6AMVR6XTO5NBTXGH7LTANCNFSM6AAAAAAYBTHBWU. You are receiving this because you authored the thread.Message ID: @.@.>>

JLeG05 avatar May 15 '23 18:05 JLeG05

@JLeG05 Can you please attach the log file to this bug report?

dov avatar May 17 '23 19:05 dov

I thought I zipped it with the debug files. If it’s a file other than the pomelo.log, nothing else was generated besides the pom folder contents (6 files [.giv and. png]).

From: Dov Grobgeld @.> Sent: Wednesday, May 17, 2023 12:04 PM To: dov/pomelo @.> Cc: JLeG05 @.>; Author @.> Subject: Re: [dov/pomelo] No preview displayed (Issue #15)

Can you please attach the log file to this bug report?

— Reply to this email directly, view it on GitHubhttps://github.com/dov/pomelo/issues/15#issuecomment-1551911412, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A5HZH5LKAK7QECTDBTT53TLXGUOIZANCNFSM6AAAAAAYBTHBWU. You are receiving this because you authored the thread.Message ID: @.@.>>

JLeG05 avatar May 18 '23 01:05 JLeG05