Volumetric light shafts with shadows support

A place to show off your latest screenshots and for people to comment on them. Only start a new thread here if you have some nice images to show off!
User avatar
Mind Calamity
Ogre Magi
Posts: 1255
Joined: Sat Dec 25, 2010 2:55 pm
Location: Macedonia
x 81

Re: Volumetric light shafts with shadows support

Post by Mind Calamity »

nickG wrote:reupload,please
Did you miss this ?
spacegaier wrote:I was lucky and got it in one of the rare possible timeslots from rapidshare :) .

I temporarily uploaded it to my webspace: http://www.spacegaier.de/Ogre/LightShafts.rar

Let's wait for xavyiy where to put it statically.
BitBucket username changed to iboshkov (from MindCalamity)
Do you need help? What have you tried?
- xavier
---------------------
HkOgre - a Havok Integration for OGRE | Simple SSAO | My Blog | My YouTube | My DeviantArt
nickG
Greenskin
Posts: 122
Joined: Fri Jan 20, 2012 6:44 pm
Location: Russia,Moscow
x 1

Re: Volumetric light shafts with shadows support

Post by nickG »

oh,sorry,i'm not seen link in this post
insomnia affects on me...
mfdesigner
Gnoblar
Posts: 19
Joined: Sun Aug 03, 2008 9:56 pm
x 1

Re: Volumetric light shafts with shadows support

Post by mfdesigner »

Thanks to Xavyiy. added this into my engine and it looks amazing...
However, frame rate does take a hit from certain angle.

Image

Image

User avatar
Xavyiy
OGRE Expert User
OGRE Expert User
Posts: 847
Joined: Tue Apr 12, 2005 2:35 pm
Location: Albacete - Spain
x 87

Re: Volumetric light shafts with shadows support

Post by Xavyiy »

User avatar
Kai1
Gnoblar
Posts: 8
Joined: Mon Apr 11, 2011 7:30 pm
Location: France

Re: Volumetric light shafts with shadows support

Post by Kai1 »

Thanks for your Christmas gift and happy new year !
User avatar
c6burns
Beholder
Posts: 1512
Joined: Fri Feb 22, 2013 4:44 am
Location: Deep behind enemy lines
x 139

Re: Volumetric light shafts with shadows support

Post by c6burns »

AWESOMMMMMMMMMMMME ... I've been toying around with ways to produce god rays that take less GPU resources than the standard post processing (way too much sampling). The method in Hydrax is somewhat embedded into that codebase, so this (which I assume is the same technique) will likely help me immensely.

Thanks Xavyiy!
RigoCL
Greenskin
Posts: 114
Joined: Mon Oct 14, 2013 1:41 am
Location: Chile
x 3

Re: Volumetric light shafts with shadows support

Post by RigoCL »

Why is this only working for D3D9??

I tried to force it to work with RenderSystem_GL.dll by adding it to the plugins.cfg and ogre.cfg but different "entry point not found" errors makes it crush when loading the .dll file.
Integrated: Ogre3D + dotScene (Blender loader) + MyGUI (UI) + RakNet (Client/Server) + Leap Motion (The future is here!) + StereoManager (3D Anaglyph red-cyan)
WIP: StereoManager (Real 3D) + CCS (Camera Control System) + Sound, experimenting with Android.
User avatar
Zonder
Ogre Magi
Posts: 1172
Joined: Mon Aug 04, 2008 7:51 pm
Location: Manchester - England
x 76

Re: Volumetric light shafts with shadows support

Post by Zonder »

RigoCL wrote:Why is this only working for D3D9??
Well look when the post was created that should give you a clue ;)
There are 10 types of people in the world: Those who understand binary, and those who don't...
BiggestSmile
Gnoblar
Posts: 3
Joined: Mon Mar 10, 2014 12:23 pm

Re: Volumetric light shafts with shadows support

Post by BiggestSmile »

Hello guys. Sorry for digging up such an old topic.
That's a really nice work, and an important feature to be implemented nowadays. But i'm really new to Ogre and had only little experience in graphics programming before and could not get managed to add support for multiple lights.
There should be created a light, a camera and a billboard set for every light shaft, right? Tried doing that, had problems with updating position in shader for every light, as seems it uses "global" shader resource. But then decided go as is but add only one light, so what i get was more like quad volumetric volume, than a light shaft.. I'm missing something small but important i guess?
Thanks in advance.
araccun
Kobold
Posts: 33
Joined: Mon Mar 10, 2014 6:37 pm

Re: Volumetric light shafts with shadows support

Post by araccun »

I got problem with mBillboardSet not rotating, any ideas?