Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / SSAO Shader pack help

Author
Message
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 17th Dec 2018 23:26 Edited at: 17th Dec 2018 23:27
Trying to get SSAO to work. I am using physics and have shadows enabled. The models are very large.
Any help would be very much appreciated. I get a blank screen.




I have the setup code like this (From example)


I add my objects like this


I use the Shader Pack sync;

Attachments

Login to view attachments
janbo
15
Years of Service
User Offline
Joined: 10th Nov 2008
Location: Germany
Posted: 18th Dec 2018 15:15 Edited at: 18th Dec 2018 17:19
Looks fine for me on the first glance.
I'll take a second look when i come home.
Does the SSAO demo work and does your scene work with SSAO turned off ?

[Edit]
Ahaa, try SP_Camera_SetRange(1,50000) instead of AGK's command,
SSAO needs the camera range to calculate the fragment position
which in return is needed to calculate the normals
which in return are needed to "cast rays"
which scan in a hemisphere for nearby fragments
which are needed to calculate the occlusion amount
[/Edit]
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 18th Dec 2018 19:19 Edited at: 18th Dec 2018 19:20
No luck. Still the same.
I get this;


This is without SSAO;

Attachments

Login to view attachments
CJB
Valued Member
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 18th Dec 2018 20:41
Quote: "Does the SSAO demo work"
?
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 18th Dec 2018 20:51 Edited at: 18th Dec 2018 21:03
Ok i sorted it. I am sooooooo stupid. I forgot to copy over the shader folder
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 19th Dec 2018 05:32
Quote: "I forgot to copy over the shader folder"

Easily done, sometimes its the simplest things that get us

Looks good, is that trees I see
fubar
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 19th Dec 2018 06:50
Quote: "Looks good, is that trees I see"

Yes. Canyon pines!

Login to post a reply

Server time is: 2024-04-19 10:20:02
Your offset time is: 2024-04-19 10:20:02