Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Zyl

Pages: [1]
1
SFML projects / Volumetric Lighting Experimental Application
« on: April 11, 2014, 11:00:54 pm »
Hello,

I finished my B.Sc. in Media IT recently where I wrote an implementation for dynamic volumetric lighting in OpenGL for my thesis. It is mostly fragment shader code Most brain-power went into fragment shader code.

More specifically, this means you want to reflect light from light sources in mid-air because of particles (smoke, fog, dust, etc.) blocking some of the light.

Result and reason was to show it is perfectly ready for use in real-time 3D graphics applications, ranging from 100 (GT540M) to 1200 (GTX640) frames per second in an otherwise basic "rendering engine" (for-loop which renders all VAOs; textured polies with diffuse lighting).

So yeah, just posting some images for motivation. SFML was mostly used for input processing and font rendering (which turned out to be EXTREMELY useful and easy to use! kudos to you!!)

No VL:


With VL:


No VL:


With VL:


No VL:


With VL:


No VL:


With VL:


The In-Program menu which uses font-rendering. You can click and hold, then move mouse up or down to change values:


There are some visible artifacts in some cases, and the shown scenes aren't all polished, but you have many ways to change the way the effect looks and really use it in cool ways.

I think the only feature I ended up #including windows.h for was to check if window was minimized to stop rendering.

All in all a quite demanding project with a load of physics (attenuation, optical depth, rayleigh-scattering) and a nifty algorithmic procedure (interleaved sampling). If images look a bit weird, well there is varying gamma correction since I presented some of these through a beamer.

I learned A TON while doing this, especially because I built this ground up, camera controls, VAO and VBO handling, rendering code and all. Hope you like it and thanks for making SFML!

2
Graphics / Initialize sf::Texture with a GL texture?
« on: January 24, 2014, 06:52:22 pm »
Hello.

Is it possible to init an sf::Texture with a GL texture? I have an advanced OpenGL project and want to add a simple menu over a transparent black rectangle using SFML (mostly because the text rendering functionality spares me a lot of work), so I need to render to texture in my final rendering pass and make an sf::RectangleShape which uses part of that texture for the effect of drawing over it transparently. However, all functions on sf::Texture want to load from file, stream or memory, instead of taking a ready GL texture name/handle.

Is there a way to achieve what I want? Thanks!

Pages: [1]