Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Floating boxes : graphical glitches when overlapping

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> The Operational Art of War IV >> Tech Support >> Floating boxes : graphical glitches when overlapping Page: [1]
Login
Message << Older Topic   Newer Topic >>
Floating boxes : graphical glitches when overlapping - 11/24/2017 8:40:07 PM   
Splatsch

 

Posts: 75
Joined: 12/27/2016
From: France
Status: offline
I'm encountering an issue with the floating boxes if I move them too much close one from another. There is always an area around one box in which the other box it is overlapping is rendered invisible.
I made a screenshot to show things ;)

I'm encountered some minor graphical glitches, while scrolling or when I try to look through menus. I prefer to put a link to these two here too because they're may be related.





Attachment (1)

< Message edited by Splatsch -- 11/24/2017 8:42:12 PM >
Post #: 1
RE: Floating boxes : graphical glitches when overlapping - 11/25/2017 2:16:18 AM   
ralphtricky


Posts: 6645
Joined: 7/27/2003
From: Colorado Springs
Status: offline
For the floating boxes, I'd suggest not doing that I felt it was better to allow overlap than to avoid overlap and make it more difficult to move things around. I've logged the scrolling issue. I may try something, but the 'best' graphical solution would make scrolling slower, and I'd rather not do that.

Believe it or not a 2D game has to be optimized, in different ways a 3D game since the CPU is doing most of the work, I did a lot of work to avoid redrawing, all the dialogs have a 'dirty flag' and when changed are drawn to a 'backbuffer' then the map is copied to another backbuffer and the dialog buffers are copied over top then the result is drawn to the screen. With 3D calls, I'd push everything to the videocard and let it sort everything out



_____________________________

Ralph Trickey
TOAW IV Programmer
Blog: http://operationalwarfare.com
---
My comments are my own, and do not represent the views of any other person or entity. Nothing that I say should be construed in any way as a promise of anything.

(in reply to Splatsch)
Post #: 2
RE: Floating boxes : graphical glitches when overlapping - 11/25/2017 4:01:17 PM   
Splatsch

 

Posts: 75
Joined: 12/27/2016
From: France
Status: offline
quote:

ORIGINAL: ralphtricky

For the floating boxes, I'd suggest not doing that I felt it was better to allow overlap than to avoid overlap and make it more difficult to move things around. I've logged the scrolling issue. I may try something, but the 'best' graphical solution would make scrolling slower, and I'd rather not do that.

Believe it or not a 2D game has to be optimized, in different ways a 3D game since the CPU is doing most of the work, I did a lot of work to avoid redrawing, all the dialogs have a 'dirty flag' and when changed are drawn to a 'backbuffer' then the map is copied to another backbuffer and the dialog buffers are copied over top then the result is drawn to the screen. With 3D calls, I'd push everything to the videocard and let it sort everything out



Ahah
And you were right : enabling overlapping is a lot more handy/easy to use. I simply wasn't expecting this graphical result of transparency through boxes, and I wasn't sure it was... intended
Noooo !! Don't reduce the scrolling speed ! (which is nice even if sometimes a bit too fast) I prefer infinitely a small graphical glitch rather than a slow scrolling speed :P
I'll talk about this here but this applies too to the scrolling issue thread, isn't it possible to simply have the option to disable this "shadow area around boxes" ("Each of the dialogs has a 15 pixel clear border around it to allow for the shadow effect.") for people encountering graphical glitches ? This would resolve the issue of transparency here and the scrolling slow redraw/refresh one.

It seems really very complicated, and with all the existing pc configs, it must be a nightmare. But 3D seems in same time a nice improvement for performances in general.
It's always nice to hear devs saying they want to optimize their game, and to see them really supporting it !

< Message edited by Splatsch -- 11/25/2017 10:10:42 PM >

(in reply to ralphtricky)
Post #: 3
RE: Floating boxes : graphical glitches when overlapping - 11/25/2017 5:11:38 PM   
Shadrach


Posts: 482
Joined: 10/16/2001
From: Oslo, Norway
Status: offline
I've been playing a lot of Command Ops 2 over the years and it handles overlapping panels really well:
https://imgur.com/a/caKCi

There's a slight shadow to make the panel stand out, but I think it's a part of the graphics so it's probably not drawn on every repaint. I think it uses standard Windows controls, and you can even move the panels outside the current monitor, overlap them, and it remembers the position. Scrolling the map around them is smooth.

You can't resize them though, and one things the CmdOps engine sorely lacks is scaling for modern displays, all the panels are hard-coded in size to fit with the text boxes. Hence the slightly blurry look of my screenshot, since it uses System DPI scaling to even be able to read the text on 1440p displays.

(in reply to Splatsch)
Post #: 4
RE: Floating boxes : graphical glitches when overlapping - 11/27/2017 8:03:43 PM   
Splatsch

 

Posts: 75
Joined: 12/27/2016
From: France
Status: offline

quote:

ORIGINAL: Shadrach

I've been playing a lot of Command Ops 2 over the years and it handles overlapping panels really well:
https://imgur.com/a/caKCi

There's a slight shadow to make the panel stand out, but I think it's a part of the graphics so it's probably not drawn on every repaint. I think it uses standard Windows controls, and you can even move the panels outside the current monitor, overlap them, and it remembers the position. Scrolling the map around them is smooth.

You can't resize them though, and one things the CmdOps engine sorely lacks is scaling for modern displays, all the panels are hard-coded in size to fit with the text boxes. Hence the slightly blurry look of my screenshot, since it uses System DPI scaling to even be able to read the text on 1440p displays.


There is always good and bad sides for everything ;)
All of this is very complicated, and I understand perfectly why there can be glitches ! Having an aesthetic, functional, and widely compatible & adaptable interface seems really hard to do. They've done already a really good work, and I hope they'll be able to fix & improve all of that without too much hassle.

(in reply to Shadrach)
Post #: 5
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> The Operational Art of War IV >> Tech Support >> Floating boxes : graphical glitches when overlapping Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

0.105