Post Your Irrlicht Screenshots / Render Here.

Post your questions, suggestions and experiences regarding to Image manipulation, 3d modeling and level editing for the Irrlicht engine here.
Vectrotek
Competition winner
Posts: 1087
Joined: Sat May 02, 2015 5:05 pm

Re: Post Your Irrlicht Screenshots / Render Here.

Post by Vectrotek »

Image
Vectrotek
Competition winner
Posts: 1087
Joined: Sat May 02, 2015 5:05 pm

Re: Post Your Irrlicht Screenshots / Render Here.

Post by Vectrotek »

Image
Vectrotek
Competition winner
Posts: 1087
Joined: Sat May 02, 2015 5:05 pm

Re: Post Your Irrlicht Screenshots / Render Here.

Post by Vectrotek »

Image
Vectrotek
Competition winner
Posts: 1087
Joined: Sat May 02, 2015 5:05 pm

Re: Post Your Irrlicht Screenshots / Render Here.

Post by Vectrotek »

Image
Vectrotek
Competition winner
Posts: 1087
Joined: Sat May 02, 2015 5:05 pm

Re: Post Your Irrlicht Screenshots / Render Here.

Post by Vectrotek »

I'm trying to make a user friendly "Non Linear Multi Pass Post Processor"
with cool things like "Bloom", "Depth of Field" and "Motion Blur" etc
based on simply "adding" P/P Passes and associating shaders to them..
It was just getting close to completion but, as always there is this one problem
that can only be solved by rewriting the whole thing!! Aaargh!! &^&*%^&(*&!!

Here is one such problem..
Image
Vectrotek
Competition winner
Posts: 1087
Joined: Sat May 02, 2015 5:05 pm

Re: Post Your Irrlicht Screenshots / Render Here.

Post by Vectrotek »

Image
Vectrotek
Competition winner
Posts: 1087
Joined: Sat May 02, 2015 5:05 pm

Re: Post Your Irrlicht Screenshots / Render Here.

Post by Vectrotek »

Image
Mel
Competition winner
Posts: 2292
Joined: Wed May 07, 2008 11:40 am
Location: Granada, Spain

Re: Post Your Irrlicht Screenshots / Render Here.

Post by Mel »

Use discard to end the processing of a fragment and have "alpha ref clipping" for free on solid shaders :)
As for the reflection... well, you can't have everything XD

Those shaders are very neat. By the way, the lens flares are "camera lens dependant" so they draw over the whole scene, not only on the background.
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
Vectrotek
Competition winner
Posts: 1087
Joined: Sat May 02, 2015 5:05 pm

Re: Post Your Irrlicht Screenshots / Render Here.

Post by Vectrotek »

Thanks Mel! I'm trying to isolate the lens flare using a mask.. Looks like its working.
Mel
Competition winner
Posts: 2292
Joined: Wed May 07, 2008 11:40 am
Location: Granada, Spain

Re: Post Your Irrlicht Screenshots / Render Here.

Post by Mel »

You can read the the sun position on the screen on the ZBuffer and check whether it is ocluded by geometry or not by the depth, if it is maximum, it is on the background and you can paint it, if not, there is geometry in front of the sun, and so it is occluded. This is a really fast way to draw the flares, and you can do it not only with sun flares, but with any kind of billboard solving its depth on the vertex shader; if the billboard is frontfacing and not Y aligned (grass like billboards...), the Z value of any transformed vertex is enough to compare. And then, you can read the ZBuffer, and paint the flares later according to the results you get.
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
Escen
Competition winner
Posts: 167
Joined: Sun Jul 19, 2009 11:27 am
Location: the Netherlands
Contact:

Re: Post Your Irrlicht Screenshots / Render Here.

Post by Escen »

Looks nice Vectrotek!
Do you have any additional information about how you did the lens-flare, I'm struggling with that?
Vectrotek
Competition winner
Posts: 1087
Joined: Sat May 02, 2015 5:05 pm

Re: Post Your Irrlicht Screenshots / Render Here.

Post by Vectrotek »

@ Mel: Thanks! What you said makes sense! I looked at it in the way you explained and I got it solved!

@ Escen: I hope to post a project soon.. I'm sure you'd find something useful there..
Note: My last posted project under "Advanced Help - Realistic Water" has some lens flare but the project
is riddled with bugs, but it does work.. What Mel said is just about it..

Oh, has anybody tried getting accurate Specular with Deferred Rendering?
I'm in the middle of a Deferred Rendering nightmare..

Anyhow, The next project I post will be quite amusing I assure you..
(I got many passes rendering to and from many buffers in a non-linear way using many
masks and depth buffers etc with some interesting results)

Thanks guys! :D
Mel
Competition winner
Posts: 2292
Joined: Wed May 07, 2008 11:40 am
Location: Granada, Spain

Re: Post Your Irrlicht Screenshots / Render Here.

Post by Mel »

The Light calculation requires all the vectors to be expressed in the same space (and proportions, namely if you're using any algorithm to save normal vector space, you need to apply it correctly forth and back...)

If you're using the glNormalMatrix, you're getting the normals in view space in the GBuffer, so you need to either convert the normals to world space and work in world space, or to calculate the light and view vectors in view space, and i think you can save some precission using the view space.
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
Vectrotek
Competition winner
Posts: 1087
Joined: Sat May 02, 2015 5:05 pm

Re: Post Your Irrlicht Screenshots / Render Here.

Post by Vectrotek »

Thanks Mel! Really useful!
Vectrotek
Competition winner
Posts: 1087
Joined: Sat May 02, 2015 5:05 pm

Re: Post Your Irrlicht Screenshots / Render Here.

Post by Vectrotek »

Image
Post Reply