SceneOptimizer: "Positions are required"
See original GitHub issueBugs
App works fine if not using SceneOptimizer
.
When activating SceneOptimizer
, I get an error “Positions are required”, which is coming from this file: https://github.com/BabylonJS/Babylon.js/blob/a0afb803db41aa578c8adb04971cca4848765a54/src/Mesh/babylon.mesh.vertexData.ts#L466
Whether I do:
public async createScene(): Promise<void> {
this.scene = new Scene(this.engine);
this.optimizeScene();
}
private optimizeScene() {
const optimizationSettings = SceneOptimizerOptions.ModerateDegradationAllowed();
optimizationSettings.targetFrameRate = 30;
SceneOptimizer.OptimizeAsync(
this.scene,
optimizationSettings,
() => { ... },
() => { ... },
);
}
Or:
public async createScene(): Promise<void> {
this.scene = new Scene(this.engine);
this.scene.whenReadyAsync().then(
() => this.optimizeScene()
)
}
private optimizeScene() {
const optimizationSettings = SceneOptimizerOptions.ModerateDegradationAllowed();
optimizationSettings.targetFrameRate = 30;
SceneOptimizer.OptimizeAsync(
this.scene,
optimizationSettings,
() => { ... },
() => { ... },
);
}
I get the error.
Not 100% sure that’s a bug, I might be missing something but as it’s perfectly working when I do not use the SceneOptimizer
I’m suspicious.
Issue Analytics
- State:
- Created 5 years ago
- Comments:21 (16 by maintainers)
Top Results From Across the Web
How does the Scene Optimizer improve photos? - Samsung
When the camera recognizes a subject or scene, an icon will appear on the screen and the optimized color will be applied automatically....
Read more >Samsung Galaxy S10 Scene Optimizer - Verizon
Watch this video to learn how to use Scene Optimizer on your Samsung Galaxy S10 to automatically adjust settings to take the best...
Read more >How to use the Scene Optimizer photo settings on ... - YouTube
Scene Optimizer recognizes 30 different scenes, like sunsets, people, or clothing, and automatically adjusts the settings to get a better ...
Read more >Operations — Omniverse Create documentation
The following is a list of optimization modules currently supported by the scene optimizer, with a brief description of the functionality ...
Read more >Scene Optimizer - Canopy - Procedural Worlds
Does the scene optimizer have any special requirements for the scene models, ... Box colliders are not in the correct position when runinng...
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
@deltakosh I managed to get a repro at last. Unfortunately I can’t save it in the playground as I’m getting a 500 error?
Here’s the code anyway:
Ok no worry…I’ll check back early july then 😃