question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Some kind of a depth buffer regression from 114

See original GitHub issue
Description of the problem

I’ve submitted a depth peel example a while back: https://github.com/mrdoob/three.js/pull/15312 This example depends on this proposal https://github.com/mrdoob/three.js/pull/15490

So i’m not sure if this counts as a regression since i don’t have a meaningful case without using this proposal, but i’d like to point it out regardless, and inquire about what work happened in this area.

This demo runs on r98 and the proposal and everything runs fine. Up to r113 i can apply this diff and get the same behavior:

R113: peel113

When bumping to R114, the framerate remains, but i get some depth artifacts: peel114

In the dev branch, my frame rate drops tremendously, and i’ve oddly traced it down to an ordinary render call that happens after all this crazy depth peeling logic, and before the results are shown on the screen. I can actually even render the results with no frame drop, its just when i try to render a partial normal scene in the process, it really goes down.

image

Ie. this is caused by

function complexRenderLogic (){
  // gl stencil stuff
  // gl mask stuff
  // scene overrides
  // many renderer.render( X, Y )
  // many renderer.setRenderTarget( foo )
}

function displayResult(){
  renderer.render( full_screen_quad_scene, camera)
}

function render(){
  complexRenderLogic()
  renderer.render( scene, camera ) // <----- FRAME RATE DROP`
  displayResult()
}

Please let me know if additional information is needed. I could serve the demo with r113, r114 and dev. If this is of no interest since it’s appearing in something thats using a proposal, i’d appreciate it if you could point me in some direction where some recent changes could have affected this. Thank you.

Three.js version
  • Dev
  • r116
  • r115
  • r114
Browser
  • All of them
  • Chrome
  • Firefox
  • Internet Explorer
OS
  • All of them
  • Windows
  • macOS
  • Linux
  • Android
  • iOS

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
WestLangleycommented, May 6, 2020

A reasonable guess is #18696.

0reactions
pailheadcommented, May 6, 2020

Sorry, i’m realizing now that this is completely unrelated to the depth stuff. The issue i was having was due to the PR you linked (thanks!). This other issue is in a different version, ill investigate better and open a new one.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Novel fluid detail enhancement based on multi‐layer depth ...
In this paper, we propose a novel integrated method for effective modeling and realistic enhancement of scale-sensitive fluid simulation ...
Read more >
Z-Buffer or Depth-Buffer method - GeeksforGeeks
Z -buffer, which is also known as the Depth-buffer method is one of the commonly used method for hidden surface detection.
Read more >
Selecting Spatial Scale of Covariates in Regression Models of ...
Other researchers have evaluated the buffer distance to select each type of land use variable to be used in a regression model of...
Read more >
Public Law 114–4 114th Congress An Act
For necessary expenses for enforcement of laws relating to border security, immigration, customs, agricultural inspections and regulatory ...
Read more >
Evaluation of Using Satellite-Derived Aerosol Optical Depth in ...
This study introduced satellite-derived aerosol optical depth (AOD) in land use regression (LUR) modeling to predict ambient concentrations of fine ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found