Contributing to documentation 101

Recommended Posts

There is a error also at the information level for the incremental scene.

It is said : The Espilit demo on the main site uses incremental loading if you want an example.

But when we look at the Espilit demo I do not see incremental: (It loads like other scenes and is very slow to load)

The incremental should not load the scene without waiting for all meshes to be loaded and display the mesh on the fly only when the camera sees them? In other words, the scene should not be blocking and displayed right away. but it is loaded when 100% is ready to be displayed as any scene. I do not see any difference.

Espilit demo is binary, not incremental. I am a little lost in their differences. Incremental, meaning non-blocking, a bit like loading asyncrone ?


var demo = {
    scene: "Espilit",
    incremental: false,
    binary: true,
    doNotUseCDN: false,
    collisions: true,
    offline: false,
    onload: function () {
        scene.autoClear = true;
        scene.getMeshByName("Sol loin").useVertexColors = false;

        var postProcess = new BABYLON.RefractionPostProcess("Refraction", "/scenes/customs/refMap.jpg", new BABYLON.Color3(1.0, 1.0, 1.0), 0.5, 0.5, 1.0, scene.cameras[1]);


Share this post

Link to post
Share on other sites

The scene does not work DK:


Babylon.js engine (v3.3.0-alpha.8) launched
babylon.js:4 BJS - [19:25:52]: Unable to load from Scene has been disposed
t._ErrorEnabled @ babylon.js:4
u @ babylon.js:35
m @ babylon.js:35
(anonymous) @ babylon.js:4
a.oncomplete @ babylon.js:36 Failed to load resource: the server responded with a status of 502 (Bad Gateway)
/#JA1ND3#84:1 Failed to load No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin '' is therefore not allowed access. The response had HTTP status code 502.
babylon.js:4 BJS - [19:25:56]: error on XHR request.
t._ErrorEnabled @ babylon.js:4
(anonymous) @ babylon.js:36
/#JA1ND3#84:1 Uncaught SyntaxError: Unexpected token u in JSON at position 0
    at JSON.parse (<anonymous>)
    at babylon.js:16
    at babylon.js:4
    at XMLHttpRequest.<anonymous> (babylon.js:36)
(anonymous) @ babylon.js:16
(anonymous) @ babylon.js:4
(anonymous) @ babylon.js:36


Share this post

Link to post
Share on other sites

Ok, she's working now. But I would like to understand a little better the incremental.
There when we load the scene we have the babylon loading screen that only disappears when the scene is fully loaded. So it comes back to the same thing as if we do not use incremental. I do not see any difference.

So I am confused and do not understand the incremental. The scene should not display the first visible object for the camera and clear the loading screen then load the other models on the fly? Because here I see all the scene when it is completely charged, what the incremental is not sensible to do if I understood its ways of functioning.

Perhaps it would be necessary to add this possibility that the loading screen fades out as soon as a first object is loaded when using incremental and SceneLoader.Append or SceneLoader.Load. because when we use SceneLoader.ImportMesh, it works it looks. Or I did not understand the operation.

For example I use SceneLoader.ImportMesh instead and it looks like it does what incremental needs to be. While with SceneLoader.Append, this shows the loading screen until the scene is loaded.

thanks again

Share this post

Link to post
Share on other sites

Oh, ok, because I see almost everything instantly appearing as the loading screen closes. But it's true that when I watch the fps, they are still moving after the display, but it goes very fast, 1 to 2 seconds.


Share this post

Link to post
Share on other sites

I have some questions to be able to show Texture.samplingMode value, and aniso too.

The content I've made is here:

First, usually I put my little tables just above a @serialize() thing (like here). But I don't see it for samplingMode in texture.ts. So, where can I write the doc for samplingMode?

Then, about the content linked above, am I right?:

  • 3 values for samplingMode
  • 11 for anisotropicFilteringLevel
Also, I've copy-pasted comments from here, and I don't understand what is this mag :) Are this infos valuable both for samplingMode and aniso, or just aniso?

(for info, I've made a little PG to help myself)

Thanks for helping!


(And because I'm talking about texture, is the comment about coordinatesMode should be above @serialize() like others?)

Share this post

Link to post
Share on other sites


probably here for samplingMode:

Regarding anisotropicFilteringLevel: it is a pure number between 0 and maxAnisotropic. It is not related to samplingMode value


Sampling mode is made of 3 internal possibilities: minification filter (far from the viewer), magnification filter (close to the viewer) and mip (filter used between mip map levels). Most of the time the first two are identical.

Share this post

Link to post
Share on other sites

Ok, so here in fact, are all these values for samplingMode? And if so:


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.