Jump to content

LensRenderingPipeline and mouse events


Recommended Posts

Hi, I did setup the LensRenderingPipeline and i noticed that the code i use for picking meshes work awkward away from the center of the screen once I enable lens distortions, if removed all is fine.

I am using the pick results from scene.pick(scene.pointerX, scene.pointerY) and is only working with no distortion. 

Link to comment
Share on other sites

Hi @lery0, welcome to the forum.  Could you reproduce the problem... in our "playground"?

Here is playground search... http://doc.babylonjs.com/playground?code=lensrenderingpipeline

18 things to play-with.  :)

Are you importing mesh?  Are they complex/irregularly shaped?  Have you tried the picking... using only built-in BJS mesh shapes?

Any differences seen... when using BJS 3.0 alpha vs. BJS 2.5 ?

Perhaps modify https://www.babylonjs-playground.com/#1OUJRM#0  ...add some picking... see if you can reproduce same problem?

Feel free to make many edits/runs and saves, and paste new after-playground-SAVE URLs to here.  (and tell us about your discoveries)

When you make a simple playground that shows the issue, it is easy for EVERYONE on the forum to help/test.  Thanks.

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.

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.


  • Recently Browsing   0 members

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