Hello guys,
I am facing this error in typescript how to get rid of this error, below is my code
var gui = new GUI();
gui.add( ssaoPass, 'output', {
'Default': SSAOPass.OUTPUT.Default,
'SSAO Only': SSAOPass.OUTPUT.SSAO,
'SSAO Only + Blur': SSAOPass.OUTPUT.Blur,
'Beauty': SSAOPass.OUTPUT.Beauty,
'Depth': SSAOPass.OUTPUT.Depth,
'Normal': SSAOPass.OUTPUT.Normal
} ).onChange( function ( value ) {
ssaoPass.output = parseInt( value );
} );
and above code gives me an error on OUTPUT.Default, OUTPUT.SSAO, OUTPUT.Blur, OUTPUT.Beauty, OUTPUT.Depth, OUTPUT.Normal
Property ‘Default’ does not exist on type ‘SSAOPassOUTPUT’.
Property ‘Blur’ does not exist on type ‘SSAOPassOUTPUT’.
Property ‘Depth’ does not exist on type ‘SSAOPassOUTPUT’
How to solve this issue in typescript and at the top I am importing this library,
import { SSAOPass } from 'three/examples/jsm/postprocessing/SSAOPass';
@Mugen87 Thanks a lot sir, and one more thing I am using SSAOPass and scene is blinking how to tackle this issue? and in render function I am using composer.render() and when i am move my 3D model in a scene then it blinks very fast.
const renderPass = new RenderPass(scene, camera);
const ssaoPass = new SSAOPass(scene,camera,window.innerWidth,window.innerHeight);
composer = new EffectComposer(renderer);
composer.logarithmicDepthBuffer=true;
composer.addPass(renderPass);
composer.addPass(ssaoPass);
It’s not possible to investigate your issue from your code snippet. The only thing I can say is that the below line is invalid since EffectComposer has no logarithmicDepthBuffer property.