Search found 5 matches
- Wed Oct 11, 2017 3:45 pm
- Forum: Support and Development
- Topic: Smooth Scrolling on a Gridlocked Game
- Replies: 7
- Views: 5596
Re: Smooth Scrolling on a Gridlocked Game
Glad to hear everything worked out, good luck on your game!
- Wed Oct 11, 2017 3:42 pm
- Forum: Support and Development
- Topic: Saving an upscaled texture
- Replies: 5
- Views: 4408
Re: Saving an upscaled texture
Why do you need to pass the upscaled image to a shader as opposed to the normal one? Can't you just let the shader do the interpolation? Eh thought it would be easier to have the program do it for me, I ended up implementing the interpolation in the end. uhm, doesn't OpenGL do it for you either way...
- Fri Oct 06, 2017 9:12 pm
- Forum: Support and Development
- Topic: Saving an upscaled texture
- Replies: 5
- Views: 4408
- Fri Oct 06, 2017 9:07 pm
- Forum: Support and Development
- Topic: Smooth Scrolling on a Gridlocked Game
- Replies: 7
- Views: 5596
Re: Smooth Scrolling on a Gridlocked Game
All you have to do is offset the x and y of the draw method from the actual position of the character heres some math, focus is the "center" of the screen, it doesn't have to be the actual center, but wherever you want the focus to be (wherever you're drawing your character, I'm guessing i...
- Tue Sep 26, 2017 12:51 pm
- Forum: Support and Development
- Topic: Saving an upscaled texture
- Replies: 5
- Views: 4408
Saving an upscaled texture
Hello fellow developers! Lets say I have an image 16x16, I want to upscale it to 256x256 using bilinear interpolation (like you can in love.graphics.draw) but then I want to save the new upscaled image so I can pass it to a shader. I can't seem to find a way to upscale imagedata outside of love.grap...