Menu

Inserting an image into a sprite

Help
tambok
2021-09-19
2021-09-23
  • tambok

    tambok - 2021-09-19

    Hi,

    how can i insert the texture into the sprite properly?

    I tried but get a blurry image and the size doesn't fit.

    i want a specific size like 16x16, and want to put a circle image in it.

    regards
    Tbk

     
  • Daniel

    Daniel - 2021-09-21

    Can you specify some more what you are trying to do?
    What texture? Should it be done in runtime?

    All the best!
    /Daniel

     
  • tambok

    tambok - 2021-09-21

    Hi Daniel,

    I just want to create some symbols for Points. It is done not at runtime.
    just like pictures above, or something like this

    or

    Correct me if i'm wrong. I think it can be created from Sprite with inserted image and don't know the right size. Just guessing maybe around 16x16 of Sprite.

    Regards
    Tbk

     
  • Daniel

    Daniel - 2021-09-21

    Yes, it should work.
    But since you do it at design time, can you try using a sprite with 16 width and 16 height, and set a material texture that is a 16x16 png file?

     
  • tambok

    tambok - 2021-09-22

    Ah, sorry my fault.
    I mean the image size is 16x16 and The size of Sprite is about 1 height and 1 width.
    Is this possible?

    Thank you.
    Tbk

     

    Last edit: tambok 2021-09-22
  • Daniel

    Daniel - 2021-09-22

    Your program seems to work ok! Not really sure what you need help with.
    The texture can be alittle sharper using a different magfilter.
    With these settings you can also get it transparent:

     
  • tambok

    tambok - 2021-09-23

    Thank you for the help, Daniel.
    I will play with it.

    Best Regards,
    Tbk

     

Log in to post a comment.