Author Topic: [Editor feature request] View sprites/viewframes at actual size?  (Read 752 times)

Dave Gilbert

  • Mittens Vassal
  • AGS Baker
  • Eye see you.
    • Lifetime Achievement Award Winner
    • Dave Gilbert worked on one or more games that won an AGS Award!
    •  
    • Dave Gilbert worked on one or more games that was nominated for an AGS Award!
Hi all! Dave again coming into this forum to ask for stuff!

My game is 1920x1080 resolution, so my graphics are on the large side. Here is a sprite of one of my characters, Lisa:



When I try to view her graphics on the sprite tab or on the viewframe tab, the images are so tiny and pixellated that they are almost unviewable:





Is there any way to view these at actual size? Or at least make them bigger? It would reduce my squinting by a lot. :D

Thanks in advance!

-Dave

eri0o

The sprite viewer should have a way to zoom in and out now, in the 3.6.0.X releases.

The view editor when I looked it was a bit harder to implement, so I didn't attempt it there, the views use a custom drawing on their winforms component to make it faster, but it was less trivial to add a zoom slider there. Need to try again.

Edit: I remember now, when I tried, I got the problem that when views are resized the scroll simply doesn't follow - you get a scroll that once you scroll all to the right there are still frames out of view. Probably missing some math somewhere there.

Edit2: the issue for the Views  on GitHub
https://github.com/adventuregamestudio/ags/issues/710
« Last Edit: 17 Sep 2021, 17:10 by eri0o »

Dave Gilbert

  • Mittens Vassal
  • AGS Baker
  • Eye see you.
    • Lifetime Achievement Award Winner
    • Dave Gilbert worked on one or more games that won an AGS Award!
    •  
    • Dave Gilbert worked on one or more games that was nominated for an AGS Award!
Oh excellent! I've held off upgrading to 3.6.0 until it hits beta. This is great news. Thanks!

eri0o

Found my sketch of the view zoom, did some little fixes



I think it's working alright

https://github.com/adventuregamestudio/ags/compare/master...ericoporto:feature-zoom-view

I don't have a HD image to test as loop to verify it actually solves the problem though...

Editor to test (please copy your project and just load the project copy, do not use in the project or backup first!) : AGS-3.6.0.9-Alpha-ZoomViewsNative.zip
« Last Edit: 18 Sep 2021, 21:51 by eri0o »

Cassiebsg

  • Cavefish
  • Fleeing the Cylon tyrrany...
    • Cassiebsg worked on one or more games that won an AGS Award!
    •  
    • Cassiebsg worked on one or more games that was nominated for an AGS Award!
If you still don't have one tomorrow night, I can export one of my characters for you to test.  (nod)
There are those who believe that life here began out there...

Crimson Wizard

  • Local Moderator
    • Lifetime Achievement Award Winner
    • Best Innovation Award Winner 2013, for spearheading the AGS 3.3.0 project
    • Crimson Wizard worked on one or more games that won an AGS Award!
    •  
    • Crimson Wizard worked on one or more games that was nominated for an AGS Award!
If you still don't have one tomorrow night, I can export one of my characters for you to test.  (nod)

I think it will be more worth if real users would test this on their projects, so to see with their own eyes. There's a download link in the end of the post.

Dave Gilbert

  • Mittens Vassal
  • AGS Baker
  • Eye see you.
    • Lifetime Achievement Award Winner
    • Dave Gilbert worked on one or more games that won an AGS Award!
    •  
    • Dave Gilbert worked on one or more games that was nominated for an AGS Award!
Sorry I didn't see this before now!

I will test it out tomorrow. Thanks so much.

Dave Gilbert

  • Mittens Vassal
  • AGS Baker
  • Eye see you.
    • Lifetime Achievement Award Winner
    • Dave Gilbert worked on one or more games that won an AGS Award!
    •  
    • Dave Gilbert worked on one or more games that was nominated for an AGS Award!
This works wonderfully!



The images are kind of pixelated (looks like it's scaling using nearest neighbor and the alpha channels don't carry over), but I can at least tell the sprites apart now which is MUCH more preferable to what it used to be. Thanks so much!
« Last Edit: 04 Oct 2021, 15:00 by Dave Gilbert »

eri0o

Uhm, I think maybe the aliasing has to be a config (the sprite viewer some people already asked me when I didn't use nearest neighbor there). It's not as simple since part of the image drawing is done in AGS native today so the change would be there, but it's interesting seeing the reverse problem. I will try to come up with something that works.

eri0o

I am again looking at this but the only thing I will change from my previous approach is having the zoom trackbar be a more obvious zoom control which I haven't been able to make one up yet - winforms is tricky. But I don't think I will change much beyond it now - I prefer to have this in, than not at all, even if it's not perfect. :/

For now it looks like this:



Edit: this will be in the next 3.6.0 release :)
« Last Edit: 17 Jan 2022, 17:22 by eri0o »