Jump to content

outline PostProcess as overlay?


Kesshi
 Share

Recommended Posts

Hi,

@NasimiAsl posted a nice outline effect some time ago ( http://www.html5gamedevs.com/topic/22203-shaderbuilder-documentation/#comment-126596 )
But the perfomance is very bad on my old IPad (only 2 FPS), so i created one my self:
http://www.babylonjs-playground.com/#24758V#0
with my version i get 28 FPS on my IPad :D
I'm very happy already with the result. There is only one thing i don't like. Because i use postprocessing i lose the hardware antialiasing.
My idea is now to use the resulting outline from the postprocessing and render it as an transparent overlay/layer on top of the anitaliased scene.
I did the same thing already with ThreeJs but somehow i don't know how to do it with BabylonJs.
Does someone has an idea how to do this? I could use FXAA but hardware antialiasing still looks better.

Link to comment
Share on other sites

  • 1 month later...

I'm playing with the playground from the original poster.  Trying to get different highlighting colours at the same time, in this case green and red.  I can't get it working though.  I think I've wrecked it :/

Here's my attempt:

http://www.babylonjs-playground.com/#24758V#3

Does anyone know how I can get a green and red outline on the sphere and box?

 

Link to comment
Share on other sites

3 hours ago, ozRocker said:

I'm playing with the playground from the original poster.  Trying to get different highlighting colours at the same time, in this case green and red.  I can't get it working though.  I think I've wrecked it :/

Here's my attempt:

http://www.babylonjs-playground.com/#24758V#3

Does anyone know how I can get a green and red outline on the sphere and box?

 

i hacked something together, something like this? http://www.babylonjs-playground.com/#24758V#4
 

Link to comment
Share on other sites

7 hours ago, Kesshi said:

i hacked something together, something like this? http://www.babylonjs-playground.com/#24758V#4
 

Awesome!  Thanx mate.  I tried adding a transparent overlay to get anti-aliasing happening but it doesn't seem to be working.  I added the code that @Deltakosh used http://www.babylonjs-playground.com/#24758V#5

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...