Hi everyone, I have a problem with this line of code:
components.renderer.postproduction.enabled = true; I'm getting the error:
main.js:15 Uncaught TypeError: Cannot set properties of undefined (setting 'enabled') Below is the code preceding that line of code. How do I fix it? I don't think I've done anything wrong?
import './style.css';
import * as THREE from 'three';
import * as OBC from 'openbim-components';
// Ottieni il contenitore per il viewer
const container = document.getElementById('container');
// Crea l'istanza di Components
const components = new OBC.Components();
components.scene = new OBC.SimpleScene(components);
components.renderer = new OBC.SimpleRenderer(components, container);
components.camera = new OBC.SimpleCamera(components);
components.raycaster = new OBC.SimpleRaycaster(components);
components.renderer.postproduction.enabled = true;
components.renderer.postproduction.customEffects.outlineEnabled = true;
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Make sure this is a repository issue and not a framework-specific issue. For example, if it's a THREE.js related bug, it should likely be reported to mrdoob/threejs instead.
[X] Check that this is a concrete bug. For Q&A join our Community.
Describe the bug π
Hi everyone, I have a problem with this line of code:
components.renderer.postproduction.enabled = true;
I'm getting the error:main.js:15 Uncaught TypeError: Cannot set properties of undefined (setting 'enabled')
Below is the code preceding that line of code. How do I fix it? I don't think I've done anything wrong?Reproduction βΆοΈ
No response
Steps to reproduce π’
No response
System Info π»
Used Package Manager π¦
npm
Error Trace/Logs π
No response
Validations β