Custom Realtime GI comparison

Posted May 22, 2017, 2:08 AM UTC

Posted May 22, 2017, 2:08 AM UTC
Do you intend to release your solution on the asset store? Any performance comparisons to SEGI? SEGI has been great, but I'll drop it the moment something lighter comes along.
Both systems have their pros and cons. SEGI handles skybox Occlusion, can look more accurate on the first bounce, resolves changes in the scene faster. But suffer from a lot of light bleeding, ghosting on moving objects due to temporal sampling, only handles 2 light bounces and is pretty expensive to render especially at 1080p+, Normally having to render at half res to get acceptable speeds at the cost of aliasing, Differed only.
My solution runs a lot faster, can support VR/High resolutions. Will be able to support Forward rendering as the pixel shader is really lightweight, handles infinite light bounces. But it doesn't calculate skybox occlusion(yet), can take a 0 - 0.25 seconds to update the lighting when something contributing to GI moves. takes up twice the VRAM.
Probably forgetting some other things.
Not sure if ill be making this public or not, We are a small studio and supporting an asset can take a lot of time away. We are looking into the logistics of it though.
Edit: I would post a screen shot of SEGI but i don't want to miss represent it, I have to change a lot of settings to get it to look like the images above.
In the event of not being able to release it as an asset, could you possibly release a paper or some source code? I'm a graphics programming hobbyist, and your lighting solution has been impressive since you first started showing it off. It does light bounces at a quicker pace than any other real time solution that I have seen, and I would love to see how you achieved it! It could be useful for other game developers to know how you made this!
Edit: Also, super impressive stuff as always. I can't wait until real-time Global illumination and light bounces are commonplace. It adds so much depth and character to a scene!
Also, would a cascade system be feasible for larger scenes?
Don't hold your breath. 😉 Every time Lexie posts images of this stuff people ask for asset store release and he/she responds by saying they don't know if they'd be able to maintain it. I think Lexie is just being nice, doesn't want to outright say no, and wants to keep their secret sauce lighting effects all to themselves. (Fair enough, too - it'll definitely set their games apart!)
We are looking into releasing it publicly. The issue is I already have a volumetric lighting asset on the store because people asked for us to release it, it takes a lot of my time supporting it to the point where its not worth it financially. The biggest issue with it is that it relies on some of unity's backend rendering stuff and they tend to change/break that with every update.
This GI system doesn't really use any of unity's stuff so it should be a lot more stable and wont need to be updated every time unity pushes a build. We are weighing everything to figure out if we should release it or not.
Cascade could work in this system for sure. but the VRAM usage might get pretty high. but now days GPU come with a lot of VRAM that gets filled by a lot of lightmaps so it's probably fine.
where its not worth it financially
Raise the price.
I know Unity is for every day indie developers, but a really slick solution should be worth it, imo.
Then there's also some assets for sale not on the official store, and some of those are 10x as expensive as what I've seen on the offical one as well, FYI.
All I'm trying to say, there's a market you can cater to, and you don't have to be mass market.
I think anyone working on a 3d procedural game would really appreciate anything you could share regarding this. Be it asset store, source, paper or whatever.
I'm working on my own procedural generation and lighting has been a problem I've been unable to solve by myself.
Yup. Making an infinite level based game right now, and GI would be a huge help, but obviously I can't use lightmapping.
Please release it in some form even without support.
If you guys would not be able to support the asset, then what would be the harm in simply releasing it on github so it can be maintained by the community and built upon?
I have spent years working/researching different lighting techniques. Trying them out in unity to see how well they perform. This on my 10th try? I've really lost count at this point.
Basically I've lost over years full time work trying to solve this issue of dynamically lighting a procedurally generated game that needs a lot of shadow casting light sources.
It's hard for me to justify releasing a fully functional thing that took me many months of work and years of learning/researching for free before I even release my own game.
At the end of the day I do this for a job. I need to pay the bills in some way. If its having a game that stands out above the rest or releasing a paid asset so other developers can get the culmination of my years work for the equivalent of few hours of wages then that's what we'll do. Releasing the source code to my game before its released is sadly not an option for me.
as a guy who invests in tech for his projects too.. i never get this idea that people are convinced someone should give away this thing they've been researching for years. dude this system you built IS VALUE. keep it! Yes maybe it discourages some level of progress... but.. does it? However you did it, its going to give your projects an edge and add alot of value to what your doing. Its okay to have some secrets man. Theres unity realtime GI if people want something for themselves.
Please make it public!
You can never have enough realtime GI systems.
Especially since yours performs really well.
nearly finished it. Will be exploring some for of public release sometime in the future
I'm working on a Realtime Dynamic GI solution for unity. The game I'm working on is procedurally generated so we cant use pre-compute/baked GI. Most of our game takes place indoors so bounce lighting and realtime emissive surfaces are pretty important to light all the rooms.
I was working on some example scenes to help find the last remaining bugs. I wanted to see how it compared to unity's pre-computed lighting since this is the first time I've had a static scene i could test it on.
I should have boosted the bounce lighting intensity a little bit so it matched unity's image a little better. but over all the image quality is a lot better then unity so I'm pretty happy! The AO from the bonce lighting really helps ground the scene where as unity's would have to rely on SSOA or use a higher texel resolution to capture it.
Both images are taken with the same "texel" resolution, Mine actually uses voxels rather then texels though but i matched the surface texel size.
The only image effect used in these images is tonemapping as its shot in HDR.
This scene took unity 2 minutes to pre-compute the lighting. mine is completely realtime with 0 baking.
I really hope you'll release it on Unity Assets and I wouldn't mind if it was paid.
My game has user-generated environments which cannot be baked so I would definitely love to use your solution to lightning!
That's not really a fair comparison... If Unity only took 2 minutes to bake the scene, then the settings weren't very high. The Enlighten Real-time GI really shines once you can use those high and very high bake settings with a 4-6 texel density value.
But anyways, your solution does look great! Hope you release it.
I disagree. I work with scene with that kind of density (or with lower density but huge scenes) and real-time GI doesn't shine at all in these situations, because of the upload time to GPU for the updated GI anytime it's changed.
And well, if you don't update the lighting, why bothering with Dynamic GI anyway!
Thank you for that op! Motivates me in rolling out my own : ) Now, how fast does it run ? Any profiling data from the GPU? (I imagine you used shaders/compute shaders to do the heavylifting)
I think you misread what I said. I said the Real-time GI really shines when the bake settings are set really high. So your pre-bake takes dozens of minutes, not 2 minutes.
I think you're thinking of SEGI, I'm talking about Unity's built-in real-time GI. There is no upload time incurred from things changing in the scene. And if you utilize light-probe proxy volumes and light-probe groups, you can cast the pre-computed GI onto dynamic objects and skinned characters.
With Unity's pre-computed GI there is a performance hit when a light moves. Englighten calculates all the changes on the cpu then pushes the data to the GPU. It does this every time a GI light moves position/rotation. The higher resolution your texel density is, The more data it calculates on the CPU and the more data it has to push to the GPU.
The above scene is really simple, its just a few floating blocks with a color set so unity can precompute the GI pretty fast compared to a normal scene. It was baked with a texel density of 4. My "texel" density is also set to 4.
No, I'm talking about precomputed GI. I don't know if you ever tried to update light settings or different material emission at runtime but if your resolution is high it does take time to upload the new computed GI texture to the GPU.
If you want to test, just set high res precomputed GI, and change settings in the lighting when the game is running, profile a standalone build (doesn't happen in editor!) and you'll notice spikes everytime GI data change. If you look at the profiler and the timeline view of it, you'll see all the texture upload due to GI changes.
Its pretty hard to say exactly how much this effect costs to render. There are a lot of settings that can have large impact on performance. but generally the faster you want light to respond to changes the more the effect costs.
At a high update rate its 2ms for the full effect in the above scene at 1080p, on a low update rate its only 0.6ms. (tested on GTX 970m, around same speed as a GTX 660)
Scene complexity does come into play though as the world around the camera needs to be voxelized. If you have really high poly stuff its best to use proxy geo that is faster to voxelize. The above scene voxelizes super fast as its just a few squares.
Woah, that sounds great.
Any plans to publish it on GitHub or Asset Store?
Thanks! Sounds great : )
This scene is just this hallway, its super simple. It was baked with a texel density of 4.
looking forward to your solution, especially if it works in vr!