[Solved] How to rotate an image without losing much quality

Discussion in 'Programming' started by yaragad, Apr 2, 2019.

  1. yaragad

    yaragad Member

    Joined:
    Mar 4, 2018
    Posts:
    25
    Hello,

    My problem is quite easy to explain, but I don't know how to solve it.

    My weapon seem very good without changing the angle.
    upload_2019-4-2_21-28-11.png

    I use simple angle modification to make attacks, guard, run, etc:
    obj_weapon.image_angle = 5*direccion; //and other angles depending on the action

    But the result is not as good as expected.
    upload_2019-4-2_21-29-2.png

    Something to do with aliasing or similar?
    I just want to improve this drawing so it look a bit more like the original image.

    Any idea?
     

    Attached Files:

  2. TheouAegis

    TheouAegis Member

    Joined:
    Jul 3, 2016
    Posts:
    6,625
    Find a really amazing graphics program. Or try to turn it into vector art. :p
     
  3. rIKmAN

    rIKmAN Member

    Joined:
    Sep 6, 2016
    Posts:
    4,316
    It still won't be perfect, but make sure "Interpolate between pixels" is turned on in the options for your target platform.

    Resource Tree > Options > <Platform> > Graphics.
     
  4. yaragad

    yaragad Member

    Joined:
    Mar 4, 2018
    Posts:
    25
    Nice joke. Of course it can be made with a LOT of simple drawing programs (like attached image).
    upload_2019-4-2_22-35-39.png
    I also love vector drawing, but again, is not the solution.

    Ohh I've seen other post answered by you.
    gpu_set_texfilter(true);
    This make it!! I will only active it during weapon drawing as i don't like the result for other elements.

    upload_2019-4-2_22-46-50.png

    But it is very nice!! Thanks!!!
     

    Attached Files:

    Last edited: Apr 2, 2019
    rIKmAN likes this.
  5. NeZvers

    NeZvers Member

    Joined:
    Mar 24, 2018
    Posts:
    320
    Other solution would be increased application surface resolution. If you scale up the game resolution (like pixel art as something 1/6 resolution), then have application_surface in full resolution.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice