SFML community forums
Help => Graphics => Topic started by: Jungletoe on June 23, 2013, 05:56:40 pm
-
Hi,
At the moment, my lighting system is extremely basic. I simply lay a VertexArray over the whole screen and slowly modify its alpha channel to simulate a day/night system. However, I need to add campfires and torches, both which require a simple circular lighting radius where there is more transparency in the filter.
At the moment, I just put a yellow alpha image over where the campfire is. The only problem is that this can end up happening if there are too many fires in one area:
(http://i42.tinypic.com/14iftwj.png)
Is there any way to do a simple lighting system WITHOUT shadows and WITHOUT rendertextures? I want to support as many machines as possible (not to mention that my own computer can't handle rendertextures).
This is what I'm going for:
(http://indiehub.net/file_host_uploads/0/16/23_06_2013_16_05_37_lightingexample.png)
-
It will be hard without a render-texture.
But render-textures should work everywhere: there's a fallback in case FBOs are not supported, and all FBOs that have been reported so far have been fixed.
Could you please report your problems with render-textures so that I can investigate?
-
Could you please report your problems with render-textures so that I can investigate?
Sure. How recently have they been fixed? I'm running SFML 2.0 from the latest build last October.
-
I'm running SFML 2.0 from the latest build last October.
What does "latest build" mean? ???
SFML 2.0 was released in april. And it's the latest version.
-
I'm running SFML 2.0 from the latest build last October.
What does "latest build" mean? ???
SFML 2.0 was released in april. And it's the latest version.
I meant that I downloaded "the latest build" that was available last October. I haven't downloaded it since then, so my SFML2 version is from a while ago, which is why I was wondering when you fixed these problems.
-
I don't remember, but you should definitely use the official release now.