SFML community forums

Help => Graphics => Topic started by: lolz123 on November 05, 2011, 06:02:08 pm

Title: Maximum Render Texture Size
Post by: lolz123 on November 05, 2011, 06:02:08 pm
Hello,

I have created a 2D lighting system that pre-calculates the lights and stores them in render images. However, for very large lights, the image is clipped, even though I am well below the sf::Image GetMaximumSize() (texture size) limit. Do render images (render textures in the latest version of SFML2) have a limit of their own? If so, how can I find it? Splitting it into lots of smaller textures isn't and option considering it takes like 1 second to create just one render image (see topic: http://www.sfml-dev.org/forum/viewtopic.php?t=4832&sid=a0b8815426b72f69f077c9bde2dda9cd)

Here is a picture of the clipping:

(http://i1218.photobucket.com/albums/dd401/222464/clipproblem1.png)

Thank you for any help you can offer.
Title: Maximum Render Texture Size
Post by: Laurent on November 05, 2011, 07:11:27 pm
There's no other limit than GetMaximumSize(). Could you provide a complete and minimal example that reproduces the problem?
Title: Maximum Render Texture Size
Post by: lolz123 on November 05, 2011, 10:51:20 pm
Woops, never mind, I figured it out. It was a stupid mistake. I set the view port for the texture incorrectly.

Sorry about that, I shouldn't have posted before first looking deeper into the problem.
Title: Maximum Render Texture Size
Post by: Laurent on November 06, 2011, 09:59:02 am
No problem, I'm glad you solved it ;)