Quantcast
Channel: Bugs Latest Topics
Viewing all articles
Browse latest Browse all 760

sound and Artefact shadow because of SceneOptimizer

$
0
0

Hi,

When I activate the music on my scene (with a lot of object)  and if use SceneOptimizer, I get the ripples of the music on the ground in the form of a shadow.

It happens when I use:  mesh.material.freeze();

See screenshot.

2088143174_2018-06-3019_27_14-Greenshot.jpg.e75d5821858deb62b408472e17cb7ac1.jpg

The code is :

this.music = new BABYLON.Sound("musicZone", "myMP3.mp3", this.scene, null, { volume: 1.0, loop: true, autoplay: true, streaming: true, spatialSound: false }); 

   

BABYLON.SceneOptimizer.OptimizeAsync(scene, optionOptimizer());	

    function optionOptimizer()
	{
		var result = new BABYLON.SceneOptimizerOptions(60, 1000);
		result.optimizations.push(new BABYLON.ShadowsOptimization(0));
		result.optimizations.push(new BABYLON.LensFlaresOptimization(1));
		result.optimizations.push(new BABYLON.TextureOptimization(2, 256));
		result.optimizations.push(new BABYLON.PostProcessesOptimization(3));
		result.optimizations.push(new BABYLON.ParticlesOptimization(4));
		result.optimizations.push(new BABYLON.RenderTargetsOptimization(5));
		result.optimizations.push(new BABYLON.HardwareScalingOptimization(6, 4));
		return result;
	}

 


Viewing all articles
Browse latest Browse all 760

Trending Articles