Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / DrawBox outline missing x2, y2 pixel!

Author
Message
PartTimeCoder
AGK Tool Maker
9
Years of Service
User Offline
Joined: 9th Mar 2015
Location: London UK
Posted: 15th Apr 2017 16:10 Edited at: 15th Apr 2017 16:15
Im making a few UI items and doing a lot of drawing and I'v noticed that when using DrawBox with outline it misses the x2, y2 pixel, see the zoomed in pic

Attachments

Login to view attachments
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 15th Apr 2017 17:32
Have you downloaded the latest update, an issue similar to this was fixed.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt
PSY
Developer
8
Years of Service
User Offline
Joined: 3rd Jul 2016
Location: Laniakea Supercluster
Posted: 15th Apr 2017 17:42 Edited at: 15th Apr 2017 17:45
It has been fixed, but it doesn't seem to be working as intended:

https://forum.thegamecreators.com/thread/219378?page=1#msg2601032

(edit) @MODS
The bug thread landed in the wrong forum (DarkBASIC Professional). Could any mod please move it here?
PSY LABS Games
Coders don't die, they just gosub without return
PartTimeCoder
AGK Tool Maker
9
Years of Service
User Offline
Joined: 9th Mar 2015
Location: London UK
Posted: 15th Apr 2017 18:19
yes I am using 2017.4.11, filled boxes are ok this only seems to happen with outline boxes only
nz0
AGK Developer
17
Years of Service
User Offline
Joined: 13th Jun 2007
Location: Cheshire,UK
Posted: 16th Apr 2017 00:37
Make sure it's not rounding down or something?
You can get issues with res and rounding (pixels vs virtual pixels for instance)
programming is ace
User Banned
Posted: 18th Apr 2017 19:58
@PartTimeCoder - Please confirm, is this?:-

1. Linux?- seems to be a bug generally with drawing
2. AppGameKit (is the latest)

You have a small sample piece of code which can produce this issue, so we can check it out on other Linux's members here if indeed (1) is true





PartTimeCoder
AGK Tool Maker
9
Years of Service
User Offline
Joined: 9th Mar 2015
Location: London UK
Posted: 18th Apr 2017 23:33
No I am using Windows 10, AppGameKit 2017.4.11, just a simple DrawBox in the do loop shows the same.
programming is ace
User Banned
Posted: 18th Apr 2017 23:38
Please send some sample working code - so we can test
programming is ace
User Banned
Posted: 18th Apr 2017 23:39
as it maybe just simply to do with floats for per pixel percision
PartTimeCoder
AGK Tool Maker
9
Years of Service
User Offline
Joined: 9th Mar 2015
Location: London UK
Posted: 19th Apr 2017 12:07 Edited at: 19th Apr 2017 12:13




It cant be just me!!?
PSY
Developer
8
Years of Service
User Offline
Joined: 3rd Jul 2016
Location: Laniakea Supercluster
Posted: 19th Apr 2017 14:31
Your code draws two perfect squares for me
PSY LABS Games
Coders don't die, they just gosub without return
Ranietz
AGK Gold Backer
20
Years of Service
User Offline
Joined: 2nd Sep 2004
Location: Norway
Posted: 19th Apr 2017 17:42
Works fine for me too on both Windows Vista and on Linux Mint.
PartTimeCoder
AGK Tool Maker
9
Years of Service
User Offline
Joined: 9th Mar 2015
Location: London UK
Posted: 19th Apr 2017 21:01
Thats frustrating to hear, I wonder what could be causing this on my system, I'm stumped!
programming is ace
User Banned
Posted: 19th Apr 2017 21:39
I see you joined in 2015 so I take it you been using AppGameKit for a long while.

- Is it first time your experimenting with the draw commands?

- Did it work before?

- if so... when?

- Try the last version of AppGameKit if you still can get it


nz0
AGK Developer
17
Years of Service
User Offline
Joined: 13th Jun 2007
Location: Cheshire,UK
Posted: 20th Apr 2017 01:58
Works fine for me - Windows 8.1, latest version.

Anyone else on Windows 10 confirm?
Ian Rees
AGK Developer
12
Years of Service
User Offline
Joined: 3rd May 2012
Location: Wales, UK
Posted: 20th Apr 2017 08:09
I'm on Windows 10, using latest AppGameKit and it works fine also...
E
Cybermind
Valued Member
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: Denmark
Posted: 20th Apr 2017 09:51
Windows 10, and it works fine here.
13/0
PSY
Developer
8
Years of Service
User Offline
Joined: 3rd Jul 2016
Location: Laniakea Supercluster
Posted: 20th Apr 2017 18:30
Windows 10, works fine
PSY LABS Games
Coders don't die, they just gosub without return
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 20th Apr 2017 20:28
I haven't tried the box command since the latest update, but wonder if boxes still override other things, sprites, text etc. I tried them to make quick backdrop boxes for some editboxes and such, but they always displayed over the top of them hiding them from sight. I couldn't see any way to change the box depth, so in the end I gave up and used sprites. Just wonder if that's fixable or if of course I missed something obvious.

Q6600. Nvidia 260GTX. 8 Gig Ram.
programming is ace
User Banned
Posted: 20th Apr 2017 20:36
Draw commands always draw behind stuff - unless we call render2dfront() - then draws will appear over the top - there is no Depth on these commads

its either render2dback or render2dfront() for all draw commands


programming is ace
User Banned
Posted: 20th Apr 2017 20:51
@Part Time Coder

Do you think its only effecting the DrawBox command?

Try the others - draw ellipse and see if the is any pixels a miss with this one

also DrawLine - perhaps as a test - use 4 x Draw Line commands for the paremeter of the square and then see if there is any missed pixels. with this.

I know its the not the benecial way to get you going but it will resolve your boxes

Login to post a reply

Server time is: 2024-11-24 16:26:15
Your offset time is: 2024-11-24 16:26:15