Nope mate. Artifacts again.BlindSide wrote:Hey there shouldn't be any artifacts like that against the background... Your far value is way too high btw, try 500.
Also try these values:
#define SAMPLE_COUNT 8
#define SSAO_REACH 5.0
#define MAX_DEPTH_DECLINE 4.0
#define DEPTH_ALIASING_EPISILON 0.05
#define RAND_TEXTURE_TILES 3.0
#define SSAO_OUTPUT_MULTIPLIER 2.0
XEffects - Reloaded - New Release (V 1.4)
-
- Posts: 914
- Joined: Fri Aug 03, 2007 12:43 pm
- Location: South Africa
- Contact:
btw, m_krzywy the shader has a number of options that rely on each other. This means that each change requires changes of other values. its just a matter of tweaking things like crazy until you can get something viable for your game. The settings can easily be exposed through the callbacks in the xeffects wrapper, giving you floats to pass in, and change in realtime to find the best settings.
I might have posted this but you CAN get this too look awesome depening on the world scale, and those values. I spent about 2 hours changing the values through the shader, and then i spent 10 minutes making those available to my code. Then i changed them in realtime and found something that worked.
It just takes a lot of tweaking
I might have posted this but you CAN get this too look awesome depening on the world scale, and those values. I spent about 2 hours changing the values through the shader, and then i spent 10 minutes making those available to my code. Then i changed them in realtime and found something that worked.
It just takes a lot of tweaking
-
- Posts: 914
- Joined: Fri Aug 03, 2007 12:43 pm
- Location: South Africa
- Contact:
Well i rewrote a lot of mine, lol so i cant really post it yet (its tied into my framework atm) but the code for that picture, was normal xeffects. The only thing i did was remove the random vector of noise by making a manual noise texture (i found it better for my applications) and i rewrote the blur passes shaders as well... Turns out you can get some interesting results as well :
The ssao with xeffects works fine, it just takes a lot of tweaking and experimentation
The ssao with xeffects works fine, it just takes a lot of tweaking and experimentation
-
- Posts: 331
- Joined: Sat Sep 02, 2006 4:11 am
- Location: Michigan
- Contact:
That shouldn't happen in my one, fuzzy is using a custom algorithm. (Although m_krzywy's screenshot shows this happening against the background, not sure why. Maybe it happens against an empty background but not against far away things?)
ShadowMapping for Irrlicht!: Get it here
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
-
- Posts: 914
- Joined: Fri Aug 03, 2007 12:43 pm
- Location: South Africa
- Contact:
Yea blindside, the xeffects one does it on edges against the sky, basically. This is also only dependant on something else of something in the depth pass, being between the camera and the sky. if you look at his pic and you take the map away and put only a cube, it probably dont do it.. But the minute theres something between the sky and the camera, it uses that edge as an internal edge.
Ill take a stab at trying a different approach on the ssao here, and see what i can come up with, and whether i can make it stand alone again for default xeffects.
Ill take a stab at trying a different approach on the ssao here, and see what i can come up with, and whether i can make it stand alone again for default xeffects.
have you tried directional light?i was just wondering if you have done an example on how to do orthographic shadows(?)/skylight?
Code: Select all
video::ELT_DIRECTIONAL
My company: http://www.kloena.com
My blog: http://www.zhieng.com
My co-working space: http://www.deskspace.info
My blog: http://www.zhieng.com
My co-working space: http://www.deskspace.info
I have an example here: http://irrlicht.sourceforge.net/phpBB2/ ... hp?t=29105
But it is a little outdated and uses the old XEffects so I will make a new example when I get the time. I still recommend you read it and apply the concepts to the new XEffects.
Cheers
But it is a little outdated and uses the old XEffects so I will make a new example when I get the time. I still recommend you read it and apply the concepts to the new XEffects.
Cheers
ShadowMapping for Irrlicht!: Get it here
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
i noticed something "strange" (?)...
when using xeffects
(just a white plane and black background, no postprocessing)
...the last pixel column (on the right side) is being rendered to the first column on the left side
(saw that in some other screenshots in this thread too) and i have no idea why this is happening
anyone knows whats causing this?
when using xeffects
(just a white plane and black background, no postprocessing)
...the last pixel column (on the right side) is being rendered to the first column on the left side
(saw that in some other screenshots in this thread too) and i have no idea why this is happening
anyone knows whats causing this?
Yeah it seems to be a bug in the screenquad texcoords/vertex positions. It'll be fixed in an upcoming version.
ShadowMapping for Irrlicht!: Get it here
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
hi I was wondering...
if I were to use SSAO in the irrlicht example 12 (with parallax mapping) then it wouldn't work so well. Because it records depth of the actual geometry of the mesh...
But what if... someone remade the shader for parallax mapping and made it so it writes the depth but altered by the bump mapping process? A bit like the new cryengine which Improved SSAO with normal maps.
if I were to use SSAO in the irrlicht example 12 (with parallax mapping) then it wouldn't work so well. Because it records depth of the actual geometry of the mesh...
But what if... someone remade the shader for parallax mapping and made it so it writes the depth but altered by the bump mapping process? A bit like the new cryengine which Improved SSAO with normal maps.