SSRPass: throws err for a simple scene.
See original GitHub issueDescribe the bug
- An err is thrown when i call
render()
onEffectComposer{}
which is added aSSRPass
. - The err only occurs when my scene contains both
Mesh
s andInstancedMesh
s.
To Reproduce
Steps to reproduce the behavior:
- add 1 instanced mesh and 1 regular mesh to then scene
- make an effect composer; add a RenderPass … followed by a SSRPass.
- call
composer.render()
in animation loop. - 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:
- Created 3 years ago
- Reactions:1
- Comments:11 (7 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@gonnavis @Mugen87 @mrdoob i tried to merge #20135 ( w/ few bugfixes ) to r126 dev and … it works!
https://jsfiddle.net/m7bcex6s/1/
thanks.
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.