Jump to content
  • Advertisement
Sign in to follow this  
CadeF

Small texture precision problem with HLSL shader

This topic is 4653 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

The numbers, in white, is the size of the render target 128 is 128x128, etc. I am rendering dynamic hlsl fire to a texture. At any texture size below 2048x2048, it produces those errors shown in the left 2 pictures above. 128x128 is too blurry to see the .rror properly. The textures sampled in the shader are all 512x512. Does anyone know what is going wrong?

Share this post


Link to post
Share on other sites
Advertisement
Try outputting a static color from your PS. That way you can tell if the problem is in the texture creation, or in rendering the created texture.

Hope this helps.

Share this post


Link to post
Share on other sites
Its in the created texture, as I am perturbing the coordinates of the fire texture with 3 moving noise maps, the "error" perturbs randomly at the base of the fire. This dissappears at 2048x2048 (about that res, not exactly), but is visible at resolutions below that. It is slightly visible at 1024x1024 and more prominent as I decrease res until it gets too blurry to notice (128x128).

Share this post


Link to post
Share on other sites
The shader I am using is the same as the shader in ATi's RenderMonkey's DX9 fire shader. I have tried both my shader (which distorts the backbuffer above the fire) and the ATi shader and both have this problem. (Note that the screenshot is ATi's shader, as I took it before adding heat distortion)

Any ideas?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!