Advanced Effects

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
Vectrotek
Competition winner
Posts: 1087
Joined: Sat May 02, 2015 5:05 pm

Re: Advanced Effects

Post by Vectrotek »

Animation walking up the stairs using Baked IK is going to be a hell of a job..
(I saw something somewhere on "Realtime IK")
Image
Vectrotek
Competition winner
Posts: 1087
Joined: Sat May 02, 2015 5:05 pm

Re: Advanced Effects

Post by Vectrotek »

This is cool..
(I need to look at it every now and then)
https://www.youtube.com/watch?v=CwOe-if ... e=youtu.be
Vectrotek
Competition winner
Posts: 1087
Joined: Sat May 02, 2015 5:05 pm

Re: Advanced Effects

Post by Vectrotek »

Image
Even if I have to drag you up there, you're going!
Vectrotek
Competition winner
Posts: 1087
Joined: Sat May 02, 2015 5:05 pm

Re: Advanced Effects

Post by Vectrotek »

Image
C'mon! get your s#!+ together!
Vectrotek
Competition winner
Posts: 1087
Joined: Sat May 02, 2015 5:05 pm

Re: Advanced Effects

Post by Vectrotek »

Image
Thaaat's it.. Slowly now..
Vectrotek
Competition winner
Posts: 1087
Joined: Sat May 02, 2015 5:05 pm

Re: Advanced Effects

Post by Vectrotek »

Image
No sweat sweety! We'll try again tomorrow..
CuteAlien
Admin
Posts: 9809
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Advanced Effects

Post by CuteAlien »

awww ;-)
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Vectrotek
Competition winner
Posts: 1087
Joined: Sat May 02, 2015 5:05 pm

Re: Advanced Effects

Post by Vectrotek »

Image
Guys! We've got a show to do..
You've got to learn how to get up those stairs!
Vectrotek
Competition winner
Posts: 1087
Joined: Sat May 02, 2015 5:05 pm

Re: Advanced Effects

Post by Vectrotek »

Maybe someone else can try talking to these guys..
Here is the Blender File..
http://s000.tinyupload.com/?file_id=018 ... 6631494029
Vectrotek
Competition winner
Posts: 1087
Joined: Sat May 02, 2015 5:05 pm

Re: Advanced Effects

Post by Vectrotek »

Image
Last edited by Vectrotek on Mon Dec 26, 2016 11:56 am, edited 1 time in total.
Vectrotek
Competition winner
Posts: 1087
Joined: Sat May 02, 2015 5:05 pm

Re: Advanced Effects

Post by Vectrotek »

I'm posting this because it might inspire some Irrlicht users
and also because I really need critique and errors pointed out.

It was compiled with VC 10.
Note: When you want to post your project in VC 10 form, there
are lots of unnecessary LARGE files generated by the IDE.
I tried to delete these while having the project still open-able
after download.

The main thing here is NON LINEAR PP BASED EFFECTS..
Non Linear Effects allows you to render to many buffers and
then to feed those buffers into many different Screen Quad Based
Shaders..

Now, these shaders can be divided into two main categories:

"Geometry Shaders": These render the geometry of objects in a way
that allows you to control what happens on the surface of the rendered
polygons. These shaders are useful for things like Raw Diffuse, Depth etc..

"Screen Quad Shaders": Also known as Post Processing Shaders, these use
the images rendered by the Geometry shaders to get extra effects to the final
frame buffer..

CANDY CODE:
This is just a version of the code using a special "colouring scheme" for my own easy reading..
These "*.odt" files are verbatim copies of the "*.CPP" and "*.H" files included in
the project (just syntax cols added).
You don't need to do anything with them as it is still an experimental thing, but if you look at them
before delving into the code itself you'll definitely have a clearer understanding of what the code
does..

It shares a lot of things I've posted in previous posts so look at those and the code
of this project to see what the keys do to control things..

Use 0 to toggle between PP mode and Normal Mode..
When in PP Mode use "F1" to toggle between Linear Effects and NON-Linear effects..
Non linear effects is cooler and uses you buffers in a more flexible way, but Linear Effects,
in this case has some cool PP shaders not used in the Linear Effect System..

The Main Shader "Shaders\_GLSL_\002_POST_PROC_NL_FX\GL_0420_FRAG_PP_SSAO_INTERNAL_DEPTH.glsl"
uses keys T,F,Y,G,U,H,I,J,O,K,P and L to control SSAO parameters..
You can see these values changeing in a small GUI when you hit "V"..

I could really write a whole lot more on what happens here but I just don't have the time.
But if you have any questions (or critique) PLEASE let me know..
Last edited by Vectrotek on Sun Dec 25, 2016 5:29 pm, edited 2 times in total.
Vectrotek
Competition winner
Posts: 1087
Joined: Sat May 02, 2015 5:05 pm

Re: Advanced Effects

Post by Vectrotek »

THE PROJECT (everything): It uses the DLL and LIB from the very latest posted Irrlicht Download..

!! NOW THIS PROJECT WEIGHS ONLY 12 Megs!
http://s000.tinyupload.com/?file_id=022 ... 8739974274

(don't let your browser tell you its bad.. you can take that from me..)

Merry Christmas and a polygon filled New Year! See you on the rebound!
Vectrotek..
Last edited by Vectrotek on Thu Jan 12, 2017 5:28 pm, edited 1 time in total.
sunnystormy
Posts: 105
Joined: Mon Jun 02, 2014 2:32 am
Location: Washington, D.C.
Contact:

Re: Advanced Effects

Post by sunnystormy »

@Vectrotek

You're actually doing some interesting things there that I may want to incorporate into the demo I'm making.

Are some of those PP effects responsible for the faded LOD of the buildings in the distance?

Let me know!
My blog: http://fsgdp.wordpress.com "The Free Software Game Development Pipeline"
Vectrotek
Competition winner
Posts: 1087
Joined: Sat May 02, 2015 5:05 pm

Re: Advanced Effects

Post by Vectrotek »

Yes the shader uses depth to "Fog" out the background, but no LOD takes place (good idea though).
It uses that same depth to control the strength of a V and H pass.
A few "inter buffer renders" takes place before the final frame buffer render.

Sorry that the project is so big, it is the model for the island..
It's got some useful concepts in there and the render you see is actually only once effect
of many that can be achieved..
If you get how buffers are used in the program then you can do much more!
Vectrotek
Competition winner
Posts: 1087
Joined: Sat May 02, 2015 5:05 pm

Re: Advanced Effects

Post by Vectrotek »

The "Non Linear Effect" Island project in the "previous post" is now much smaller..
!! NOW THIS ZIPPED PROJECT WEIGHS ONLY 12 Megs! (fixed all the PNGs in the ISLAND model and sky is now not totally covered by fog)
http://s000.tinyupload.com/?file_id=022 ... 8739974274
(if you recompile make sure you replace the posted DLL with your own DLL)

BUT WAIT.. below is an EVEN SMALLER version (5.7 Megs) with all the meat and potatoes but with a much simpler model (no more island)..

http://s000.tinyupload.com/?file_id=777 ... 8634250364

Image
Post Reply