Author Topic: Early WIP on v2.55  (Read 178971 times)

Michael Lobko-Lobanovsky

  • Administrator
  • *****
  • Posts: 1481
Re: Early WIP on v2.55
« Reply #315 on: December 16, 2018, 10:33:34 pm »
From what I can see immediately:

0. FPS counter gets shifted away together with gP.hGL. I think it should stay in view, i.e. be positioned relative to the gP.hMain frame and lighting panel if it is visible.

1. If the splitter is shifted, then when the toast window is visible and gP.hMain is moved (dragged around), the toast window gets misplaced too far to the left.

2. Splitter/gP.hGL position isn't restored when the main window is restored from maximized to normal (as you said).

3. Double click is intercepted but not yet implemented as intended.

Is that all correct?
« Last Edit: December 16, 2018, 10:38:20 pm by Michael Lobko-Lobanovsky »
Mike
(3.6GHz Intel Core i5 Quad w/ 16GB RAM, nVidia GTX 1060Ti w/ 6GB VRAM, Windows 7 Ultimate Sp1)

Patrice Terrier

  • Administrator
  • *****
  • Posts: 1992
    • zapsolution
Re: Early WIP on v2.55
« Reply #316 on: December 16, 2018, 11:13:39 pm »
I shall look at this tomorrow.
Have a good sleep!
« Last Edit: December 17, 2018, 06:48:49 am by Patrice Terrier »
Patrice
(Always working with the latest Windows version available...)

Patrice Terrier

  • Administrator
  • *****
  • Posts: 1992
    • zapsolution
Re: Early WIP on v2.55
« Reply #317 on: December 17, 2018, 08:15:30 am »
Could you remind me what the double click must do exactly, i must have removed inadvertently your previous post about this.  :(

I think to remember that the splitter must jump directly to the center of the viewport using a scrolling effect like for the control panel, am i right?

« Last Edit: December 17, 2018, 08:25:01 am by Patrice Terrier »
Patrice
(Always working with the latest Windows version available...)

Michael Lobko-Lobanovsky

  • Administrator
  • *****
  • Posts: 1481
Re: Early WIP on v2.55
« Reply #318 on: December 17, 2018, 09:37:10 am »
Yes, when it's double clicked in its rightmost position, it should scroll quickly to the viewport center. When in any other position, it should scroll to the rightmost position.
Mike
(3.6GHz Intel Core i5 Quad w/ 16GB RAM, nVidia GTX 1060Ti w/ 6GB VRAM, Windows 7 Ultimate Sp1)

Patrice Terrier

  • Administrator
  • *****
  • Posts: 1992
    • zapsolution
Re: Early WIP on v2.55
« Reply #319 on: December 17, 2018, 12:09:51 pm »
Here is my patch.

Note: Because the gP.hGL is using ANCHOR_HEIGHT_WIDTH, when switching from maximized to restore the rw.right could become negative, then in this case the splitter is constraint to the left border size.

WM_NCLBUTTONDBLCLK is compatible with light or mesh animation(s).
Patrice
(Always working with the latest Windows version available...)

Michael Lobko-Lobanovsky

  • Administrator
  • *****
  • Posts: 1481
Re: Early WIP on v2.55
« Reply #320 on: December 17, 2018, 02:33:59 pm »
Thank you, Patrice!

The main glitch I'm seeing is that when the splitter is somewhere midway and the lighting panel is visible, the panel stays OK when the main window is dragged around the screen. But it still jumps to the left (sometimes completely off screen) when the main window is resized rather than dragged.

I increased nStep to 50. The double click is primarily meant as an accelerator rather than eye candy. :)
Mike
(3.6GHz Intel Core i5 Quad w/ 16GB RAM, nVidia GTX 1060Ti w/ 6GB VRAM, Windows 7 Ultimate Sp1)

Michael Lobko-Lobanovsky

  • Administrator
  • *****
  • Posts: 1481
Re: Early WIP on v2.55
« Reply #321 on: December 17, 2018, 02:45:20 pm »
Another glitch is when I stretch the main window across 1.5 monitors and bring the splitter closer to the left border, and then resize the window horizontally smaller by dragging its right border to the left, the splitter flies outta the main window and slides to the left of it and away over the screen left border.
Mike
(3.6GHz Intel Core i5 Quad w/ 16GB RAM, nVidia GTX 1060Ti w/ 6GB VRAM, Windows 7 Ultimate Sp1)

Michael Lobko-Lobanovsky

  • Administrator
  • *****
  • Posts: 1481
Re: Early WIP on v2.55
« Reply #322 on: December 17, 2018, 02:50:58 pm »
This way it produces much less smear in the left portion of gP.hGL after the double click:

SplitterCallBack():

........
        if (gP.splitXoffset == 0) { // Move to center
            gP.splitXoffset = (w - SPLITTER_WIDTH) / 2;
            for (x = 0; x <= gP.splitXoffset; x += nStep) {
                MoveWindow(gP.hGL, -x, 0, w, h, TRUE);
                MoveSplitter();
                gP.redraw = -1;  gl_DrawScene();//SendMessage(gP.hMain, WM_SYNC_NOTIFY, 0, 0); // Let the animation play while moving the window
                //Sleep(0);
            }
        } else { // Dock to the right
            for (x = WasXoffset; x >= 0; x -= nStep) {
                MoveWindow(gP.hGL, -x, 0, w, h, TRUE);
                MoveSplitter();
                gP.redraw = -1;  gl_DrawScene();//SendMessage(gP.hMain, WM_SYNC_NOTIFY, 0, 0); // Let the animation play while moving the window
                //Sleep(0);
            }
            gP.splitXoffset = 0;
        }
........
Mike
(3.6GHz Intel Core i5 Quad w/ 16GB RAM, nVidia GTX 1060Ti w/ 6GB VRAM, Windows 7 Ultimate Sp1)

Patrice Terrier

  • Administrator
  • *****
  • Posts: 1992
    • zapsolution
Re: Early WIP on v2.55
« Reply #323 on: December 17, 2018, 02:57:45 pm »
error C3861: 'gl_DrawScene': identifier not found

Where did you put the include file?
(or did you move the procedure gl_Drawscene elsewhere)

I couldn't reproduce the two behaviors you describe in post #326 and #327.

Could you create a quick video with the nVidia utility to show me how to reproduce this?
« Last Edit: December 17, 2018, 03:18:02 pm by Patrice Terrier »
Patrice
(Always working with the latest Windows version available...)

Patrice Terrier

  • Administrator
  • *****
  • Posts: 1992
    • zapsolution
Re: Early WIP on v2.55
« Reply #324 on: December 17, 2018, 05:19:28 pm »
New MoveSplitter for the problem reported in post #327

Code: [Select]
void MoveSplitter() {
    RECT lpr; GetWindowRect(gP.hGL, &lpr);
    RECT rw; GetViewRect(gP.hMain, &rw);
    //zTrace(L"-----");
    //zTrace(STRL(lpr.right));
    //zTrace(STRL(SPLITTER_WIDTH));
    //zTrace(STRL(rw.left));
    if (lpr.right < rw.left) {
        MoveWindow(gP.hSplitter, rw.left, rw.top, SPLITTER_WIDTH, Height(rw), TRUE);
    } else {
        MoveWindow(gP.hSplitter, lpr.right, lpr.top, SPLITTER_WIDTH, Height(rw), TRUE);
    }
}
« Last Edit: December 17, 2018, 05:24:02 pm by Patrice Terrier »
Patrice
(Always working with the latest Windows version available...)

Michael Lobko-Lobanovsky

  • Administrator
  • *****
  • Posts: 1481
Re: Early WIP on v2.55
« Reply #325 on: December 18, 2018, 02:03:11 am »
Tonight's handicraft: ;)
Mike
(3.6GHz Intel Core i5 Quad w/ 16GB RAM, nVidia GTX 1060Ti w/ 6GB VRAM, Windows 7 Ultimate Sp1)

Patrice Terrier

  • Administrator
  • *****
  • Posts: 1992
    • zapsolution
Re: Early WIP on v2.55
« Reply #326 on: December 18, 2018, 09:32:56 am »
My friend, i know you were kept very busy, and i wonder when you take time to go to sleep  ???

Great work!
Patrice
(Always working with the latest Windows version available...)

Michael Lobko-Lobanovsky

  • Administrator
  • *****
  • Posts: 1481
Re: Early WIP on v2.55
« Reply #327 on: December 18, 2018, 09:35:06 am »
Here's the patch with my nightly mods. :)
Mike
(3.6GHz Intel Core i5 Quad w/ 16GB RAM, nVidia GTX 1060Ti w/ 6GB VRAM, Windows 7 Ultimate Sp1)

Michael Lobko-Lobanovsky

  • Administrator
  • *****
  • Posts: 1481
Re: Early WIP on v2.55
« Reply #328 on: December 18, 2018, 09:39:35 am »
Patrice,

I'm still not feeling well, and my sleep is often broken with difficult breath. So, it's easier to stay awake. :)

BTW does your skinned main menu have any limitations as to the number of elements? My 7th (Help) element won't show up and it seems I can only specify 6 of them... ??? :-[
Mike
(3.6GHz Intel Core i5 Quad w/ 16GB RAM, nVidia GTX 1060Ti w/ 6GB VRAM, Windows 7 Ultimate Sp1)

Michael Lobko-Lobanovsky

  • Administrator
  • *****
  • Posts: 1481
Re: Early WIP on v2.55
« Reply #329 on: December 18, 2018, 10:13:54 am »
I couldn't reproduce the two behaviors you describe in post #326 and #327.

Could you create a quick video with the nVidia utility to show me how to reproduce this?

Patrice,

We're using different OS'es, video cards, and drivers. My main PC also works simultaneously with 2 nVidia monitors and 1 Intel monitor. All this may cause various glitches, which however may be minimized one way or another.

You're cleaning up the thread often and the message numbers aren't valid any more. Obviously, you spoke about the splitter flying out of the main window and smear near the left border? If yes then you've corrected the splitter behavior, and what concerns the smear, I saw your video that shows smooth gP.hGL scrolling while mine shows smear when gP.hGL has a long way to go to the right. But my suggested fixes cure this problem almost completely, and if you're all right with them under your W10 then let them stay in the code for the sake of my Win7.
Mike
(3.6GHz Intel Core i5 Quad w/ 16GB RAM, nVidia GTX 1060Ti w/ 6GB VRAM, Windows 7 Ultimate Sp1)