Jump to content

Depth of field in RPG Camera


Recommended Posts

Hi, i spent a lot of time with Depth of Field from DefaultRenderingPipeline. I experiment with fStop, focusDistance, focalLength and lensSize. I want to achieve effects like in Torchlight II game. I put the screenshot from my game and I want to make blur only behind my character. Maybe someone have idea how to tweak my settings. Thanks



FireShot Capture 45 - Slavs - http___localhost_3000_.png

Link to comment
Share on other sites

I would try looking at one of these playgrounds (http://playground.babylonjs.com/#Y3C0HQ#146), (https://www.babylonjs-playground.com/#8F5HYV#9) then add code from one of those to your project, play with the sliders until it matches your desired result. I would expect focus distance to be the distance between the camera and your character and a larger f-stop to blur the background. If you run into any issues, create a playground repro'ing it and I can take a look.

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