8 bit paletted textures patch




















Depending on the OP's requirements, might it be worth storing the textures in a paletted format even like PNG? It seems very likely that you'd not get much benefit from trying to process the indexed data in real-time on the GPU, but if you're mainly trying to reduce the storage requirements of the game which seems likely if the OP is using OpenGL ES then this seems like it might have some value and require relatively minimal effort to implement.

It really depends on the type of game and art assets. Chances are something like JPEG compression would give you better disk space utilization and better looking textures in most cases. If you really wanted a crisp looking retro style game, you could look into something like SVG, which would be way better than 8-bit PNG.

It wouldn't be faster because it requires a dependent texture read. Dynamic texture lookups, also known as dependent texture reads, occur when a fragment shader computes texture coordinates rather than using the unmodified texture coordinates passed into the shader. Although the shader language supports this, dependent texture reads can delay loading of texel data, reducing performance.

When a shader has no dependent texture reads, the graphics hardware may prefetch texel data before the shader executes, hiding some of the latency of accessing memory.

Memory savings are moot - are you really that short on video memory anyway? Maybe on mobile devices I note that you mentioned GL ES but there are other strategies to reduce video memory usage - compression or just flat-out reducing your texture sizes who needs a x texture for a mobile device?

Maybe in a few years time - by which time one may expect that video memory sizes will have increased too - but not today. Texture upload performance could go either way. For dynamic texture uploads, the required synchronization is going to kill you far more than the amount of data used. On today's hardware texture reads are expensive operations - that's why you want to keep them to a minimum. And one's natural inclination to save memory must be kept in check because doing so can often be at the expense of performance, and often in quite unintuitive ways - the rules that you'd apply to CPUs just don't always work well on GPUs.

Log In. Sign Up. Remember me. Forgot password? Don't have a GameDev. Sign up. Email Address. Careers Careers. Posted 01 September - PM. Syztem Member Member 85 posts. Posted 03 September - AM. It doesn't any other suggestions? Edited by Syztem, 03 September - AM. Posted 05 September - AM. Sagus New Member Member 1 posts. Yes, the solution to that is installing the Direct Media It's the only way I found to be able to seee the movies encoded with some no longer supported codec.

I hope it works for you. It doesn't work I still see the intromovie, but I get no screen when they are supposed to jump of the train I think I have kind of the same problem I guess I'm not sure where to find dutch windows xp But our videocard is something with ATI. Posted 21 November - AM.

It fail for 8-bit palleted texture. Anyone has a solution, please? Retired Staff 1, posts. FF7 is an old game so you might have problems getting it to run under XP. I switched it to my older geforce mx MerolaC , Nov 29, You must log in or sign up to reply here. Show Ignored Content. Share This Page. Your name or email address: Do you already have an account?



0コメント

  • 1000 / 1000