Game Development Community

Point Filtering on Sprites?

by Nick Gravelyn · in Torque X 2D · 10/08/2008 (1:18 am) · 4 replies

Is there a way to enable point filtering on graphics? I'm currently trying to use TorqueX to work on a retro-inspired, pixelated game. Part of that is using point filtering on my sprites when scaling them up. Is there a way to enable this in TorqueX?

Nick Gravelyn
Microsoft XNA MVP

#1
10/08/2008 (1:41 am)
Hi,

you can enable this in the SimpleMaterial.fx (or any other Material you use).

C.
#2
10/08/2008 (1:44 am)
I'm not sure I understand. I'm building a 2D game with the 2D TXB. I added a material with my character sprite sheet and made a little animation. I didn't see any SimpleMaterial.fx or any option for point filtering. Did I just miss it somewhere?
#3
10/08/2008 (1:49 am)
Sorry, I was not aware that you are only using TXB. In case you do not have the Pro version I do not think that you will be able to change the filtering.
#4
10/08/2008 (1:53 am)
Well that would be quite a shame. Hopefully someone else might know a way I can enable this. I know how I could do it in code, but I'm not sure how to inject that into the rendering pipeline of TorqueX. Not sure I even can. Would stink to not be able to as that would rule out me being able to use TorqueX for my game.