Forest Scene WIP - with SSAO

Announcements and news updates to your projects using Urho3D.
Forum rules
If you have images or videos, you can attach them in the showcase post. Please use small thumbnail as link to original media resources.
When you post in this forum, you have to agree that Urho3D main website as well as the Facebook page have the permission to republish your post with all the related images or videos. The original images must have width larger than 890px for best viewing result in all the supported viewports by main website.

Forest Scene WIP - with SSAO

PostPosted by krstefan42 » 15 Aug 2016, 10:29

Here's a peek at a forest scene I've been working on. Right now I only have one tree model (made in Blender), but I plan to add a a lot more stuff. It uses an SSAO shader I wrote, which uses temporal reprojection to blend with the previous frame's AO result to reduce noise (sadly it only takes into account the camera's velocity, so fast moving objects will still have noise). I also wrote a higher-quality PCF shadow implementation, and made some other tweaks to the lighting code. I'll upload the SSAO code when finished (right now the temporal reprojection is using a weird hack involving a magic constant. Since I don't know why the hack fixes my code, I don't know if it will work for other scenes with different scale parameters, FOV, etc. If anyone wants to help me figure it out I can show you the code tomorrow).

Image


The tree model might look on the heavy side, but really fill rate is far more likely to be a bottleneck than triangle count on modern hardware, and I used some tricks to make them look more detailed than they really are (plus LOD models). The scene contains 500 trees, but I still get 60FPS thanks to the LODs.

Here's a shot of the raw AO term:


Image

Here's some more screenshots, click to open.

Image

Image

Image

Image
User avatar
krstefan42
Have some posts
Have some posts
 
Posts: 24
Joined: 28 Jun 2015, 06:16

Re: Forest Scene WIP - with SSAO

PostPosted by yushli » 15 Aug 2016, 11:04

That looks amazing. look forward to your sample project so that I can try it out.
User avatar
yushli
Some active
Some active
 
Posts: 94
Joined: 18 Oct 2014, 05:42

Re: Forest Scene WIP - with SSAO

PostPosted by franck22000 » 15 Aug 2016, 11:33

Looking forward for the SSAO shader release :) Nice work !
User avatar
franck22000
Some active
Some active
 
Posts: 50
Joined: 13 Dec 2014, 16:35

Re: Forest Scene WIP - with SSAO

PostPosted by zedraken » 15 Aug 2016, 14:15

It is really a very nice work, very impressive !
User avatar
zedraken
New user
New user
 
Posts: 12
Joined: 14 Aug 2016, 17:38

Re: Forest Scene WIP - with SSAO

PostPosted by dragonCASTjosh » 15 Aug 2016, 16:36

awesome work and im happy to help iv been looking to do AO but hadent gotten round to it :)
User avatar
dragonCASTjosh
Moderator
Moderator
 
Posts: 205
Joined: 04 Aug 2015, 18:59

Re: Forest Scene WIP - with SSAO

PostPosted by Lumak » 15 Aug 2016, 16:45

This looks great!
Lumak
Have many posts
Have many posts
 
Posts: 425
Joined: 08 Jun 2015, 15:38

Re: Forest Scene WIP - with SSAO

PostPosted by codingmonkey » 15 Aug 2016, 18:11

nice! :)
User avatar
codingmonkey
Have many posts
Have many posts
 
Posts: 517
Joined: 21 Oct 2014, 19:26
Location: Russian Federation, Novosibirsk

Re: Forest Scene WIP - with SSAO

PostPosted by sabotage3d » 15 Aug 2016, 18:18

There is already SSAO by reattiva, but it is quite old now. I think it was AngelScript and I ported it to back C++. This is my repo: https://github.com/sabotage3d/UrhoSSAO
User avatar
sabotage3d
Have many posts
Have many posts
 
Posts: 515
Joined: 25 Oct 2014, 13:26

Re: Forest Scene WIP - with SSAO

PostPosted by krstefan42 » 15 Aug 2016, 21:44

Thanks guys!

Hmm, I didn't know someone had already done SSAO. I wonder why it hasn't been merged into master? His implementation seems fairly similar to mine, but he uses a bilateral blur instead of temporal reprojection to reduce noise (reprojection is better and faster in theory, but my implementation is flawed because it doesn't account for per-object velocity (which is not even possible without changes to the engine)). I figured out why I need the "magic constant" of around 500, and how to calculate the value properly from the FOV, thanks to a comment in his code. I'll see if I can learn anything else from his implementation.
User avatar
krstefan42
Have some posts
Have some posts
 
Posts: 24
Joined: 28 Jun 2015, 06:16

Re: Forest Scene WIP - with SSAO

PostPosted by Bananaft » 16 Aug 2016, 08:06

Looks lovely. Can you tell a bit more about your changes in lighting and shadows?
User avatar
Bananaft
Active user
Active user
 
Posts: 154
Joined: 26 Nov 2014, 21:53


Return to Showcase

Who is online

Users browsing this forum: No registered users and 0 guests

cron