r/pythonarcade • u/darksmokefillstheair • Jul 13 '20
Raycaster issues - nearest interpolation and rotating ceilings
Hiya, I'm working on a raycaster engine in arcade and it's going reasonably well, but I have a couple of issues.
- How do I easily turn on nearest rather than linear interpolation for scaled textures? Currently I'm manually resizing my 64x64 textures to 256x256 so they don't get blurred to fuck when scaled, which works but seems a bit dumb. From looking in the arcade.gl api I can see that it should be possible to have them use nearest interpolation to scale how I want, but I can't figure out how to simply turn it on - either for individual textures or for the whole game.
- I'm also totally stumped on how to texture the ceilings, which ideally would both rotate and scale as the player moves and turns to create a mode-9 style effect. Has anyone managed to do this in Arcade?
2
Upvotes
View all comments
Show parent comment
1
u/einarfo Jul 13 '20
Install the lastest 2.4.1 version I think