Jump to content

How to get negative distortion (LensRenderingPipeline) or concavity


hit2501
 Share

Recommended Posts

Hi, I'm using:

var lensEffect = new BABYLON.LensRenderingPipeline('lens', {
            distortion: 0.5
}, scene, 1.0, camera);

scene.registerBeforeRender(function() {   
            lensEffect.setEdgeDistortion(some_value);
});  


To distort the view dinamically but this only gives me a convex view, I tried to use negative values in "distortion" to get a concave view but didnt work.

How can achieve it?

Thank you all.

Link to comment
Share on other sites

Thank you Deltakosh, I saw that your sample is in c (or c++), but I must ask you to be incredibly patient because I'm an incredible noob learning to handle webgl but through Babylon. I dont know how to apply your sample because I dont know C (or C++), its a shame I know  :unsure:

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...