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.

Program Announcements / RayCast Vertex Ambient Occlusion

Author
Message
Kuper
10
Years of Service
User Offline
Joined: 25th Feb 2008
Playing: Planescape:Torment
Posted: 6th Oct 2018 19:33 Edited at: 6th Oct 2018 20:19
Here is my small piece of code to produce baked vertex ambient occlusion.

Q: How does it works?
A:I'm using raycast functions which are included in DarkPhysics , DarkDynamix and Sparkys's collision dlls.
You can switch between this 3 techniques. ( dark Dynamix is fastest method )

Q: How can I use this?
A:It can add nice ambient lighting for trees, grass and all kind of vegetation.Also It can produce good result when you have enough tesselated mesh.
Lighting is baked to vertex - so you don't need to load any extra textures/data to your scene.

Everything works well but I get that hardware mode is not working for raycasting. DarkDynamix/DarkPhysics works much faster than Sparky's ( and much much faster than original DBPro raycasting system) but it doesn't
have GPU support. So it should work much faster than it is.I suppose.

Few models are included to check results for.

Screenshots:


Attachments

Login to view attachments
Chris Tate
DBPro Master
10
Years of Service
User Offline
Joined: 29th Aug 2008
Location: London, England
Posted: 18th Oct 2018 00:26
Looks lovely; very smart technique.

Login to post a reply

Server time is: 2018-12-19 02:29:50
Your offset time is: 2018-12-19 02:29:50