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.

SSRPass: throws err for a simple scene.

See original GitHub issue

Describe the bug

  • An err is thrown when i call render() on EffectComposer{} which is added a SSRPass.
  • The err only occurs when my scene contains both Meshs and InstancedMeshs.

To Reproduce

Steps to reproduce the behavior:

  1. add 1 instanced mesh and 1 regular mesh to then scene
  2. make an effect composer; add a RenderPass … followed by a SSRPass.
  3. call composer.render() in animation loop.
  4. bring up devtools, it shows

Uncaught TypeError: can’t access property “isInterleavedBufferAttribute”, attribute is undefined

stacktrace:

    get https://cdn.jsdelivr.net/gh/mrdoob/three.js@dev/build/three.module.js:12445
    setupVertexAttributes https://cdn.jsdelivr.net/gh/mrdoob/three.js@dev/build/three.module.js:14100
    setup https://cdn.jsdelivr.net/gh/mrdoob/three.js@dev/build/three.module.js:13770
    renderBufferDirect https://cdn.jsdelivr.net/gh/mrdoob/three.js@dev/build/three.module.js:23733
    renderObject https://cdn.jsdelivr.net/gh/mrdoob/three.js@dev/build/three.module.js:24269
    renderObjects https://cdn.jsdelivr.net/gh/mrdoob/three.js@dev/build/three.module.js:24242
    render https://cdn.jsdelivr.net/gh/mrdoob/three.js@dev/build/three.module.js:24025
    renderOverride https://cdn.jsdelivr.net/gh/mrdoob/three.js@dev/examples/jsm/postprocessing/SSRPass.js:577
    render https://cdn.jsdelivr.net/gh/mrdoob/three.js@dev/examples/jsm/postprocessing/SSRPass.js:396
    render https://cdn.jsdelivr.net/gh/mrdoob/three.js@dev/examples/jsm/postprocessing/EffectComposer.js:150
    <anonymous> https://fiddle.jshell.net/_display/?editor_console=true:196
    onAnimationFrame https://cdn.jsdelivr.net/gh/mrdoob/three.js@dev/build/three.module.js:23897
    onAnimationFrame https://cdn.jsdelivr.net/gh/mrdoob/three.js@dev/build/three.module.js:12286
    start https://cdn.jsdelivr.net/gh/mrdoob/three.js@dev/build/three.module.js:12299
    setAnimationLoop https://cdn.jsdelivr.net/gh/mrdoob/three.js@dev/build/three.module.js:23911
    <anonymous> https://fiddle.jshell.net/_display/?editor_console=true:195

Live example

  • jsfiddle (see devtools console for the err)

Expected behavior

it should render a box and two spheres … w/ reflection on their surfaces.

Platform:

  • Device: [Desktop]
  • OS: [Windows]
  • Browser: [Firefox]
  • Three.js version: [dev]

Thanks.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
ycwcommented, Mar 1, 2021

@gonnavis @Mugen87 @mrdoob i tried to merge #20135 ( w/ few bugfixes ) to r126 dev and … it works!

https://jsfiddle.net/m7bcex6s/1/

thanks.

3reactions
Mugen87commented, Feb 28, 2021

If it’s only about material sharing, #20135 should fix it.

In any event, we should not start to add fixes per pass. The renderer should handle this internally.

Read more comments on GitHub >

github_iconTop Results From Across the Web

SSRPass throws errors after resize · Issue #1102 - GitHub
Hello! I am trying to add SSRPass to my scene but after resizing SSRPass throws errors in the console. Also I was not...
Read more >
Reflection in model - Questions - three.js forum
I'm trying to try fxaa but it's not working. composer = new EffectComposer( renderer ); ssrPass = new SSRPass( { renderer, scene, camera,...
Read more >
react-three-fiber - Bountysource
I am trying to add SSRPass to my scene but after resizing SSRPass throws errors in the console. Also I was not able...
Read more >
@dr.pogodin/react-global-state - npm
Simple, efficient, with full server-side rendering (SSR) support. ... Library functions throw the Missing GlobalStateProvider error if called from a ...
Read more >
G-SYNC use and issues log - shmups.system11.org • View topic
With my HD5850/1200p VGA monitor combo, it was easy to get the cursor to the ... On startup, Windows throws an error about...
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