Deltakosh

Inspector v2.0 is ready for testing

Recommended Posts

Hey.

 

I use the inspector constantly when developing scene. Love the new update but I can't seem to find the properties on for example PRB materials (roughness, metallic, ...).

Is this planed or is it just me not finding it? 😅

Share this post


Link to post
Share on other sites

Don't know where i was looking. 😅 Thanks.

One thing i have noticed when using the Sandbox is, that the inspector windnow closes when clicking on a texture in the scene explorer and doesn't reopen unit i re-toggle the inspector. The playground inspector works as expected though.

Share this post


Link to post
Share on other sites

Hello,

I recently updated to BabylonJS v4.0.0-alpha.9 and the new Inspector/Debug Layer doesn't work for me, I'm calling "scene.debugLayer.show()" and I get "Uncaught TypeError: Cannot read property 'Inspector' of undefined" after it loads the script because it's trying to call isVisible() but this.BJSINSPECTOR is undefined at that time:

image.thumb.png.3a3bdae23952da5842a6dcaa32b1ff6e.png

 

Share this post


Link to post
Share on other sites
8 minutes ago, Sebavan said:

Can you reproduce the issue in the playground or a test page ?

it would be easier to debug.

Well, I can't since the inspector is loaded by default in one of the <script> tag of the playground page.

 

34 minutes ago, V!nc3r said:

If you specify the url, is this still happen ?

example:


BABYLON.DebugLayer.InspectorURL = 'https://preview.babylonjs.com/inspector/babylon.inspector.bundle.js';

 

You can see at the bottom of the screenshot that the URL is already here, the error appears after loading the script, URL is fine :)

Share this post


Link to post
Share on other sites
25 minutes ago, servusdei said:

There's no error for me; But nothing is showing. 

babylon.inspector.bundle.js is loaded using :

scene.debugLayer.show();

 

I updated Babylon.js and now I'm having :

babylon.js:1 Uncaught TypeError: Cannot read property 'Inspector' of undefined
    at t.isVisible (babylon.js:1)
    at t._createInspector (babylon.js:1)
    at HTMLScriptElement.n.onload (babylon.js:1)

 

 

Share this post


Link to post
Share on other sites
5 minutes ago, servusdei said:

 

I updated Babylon.js and now I'm having :

babylon.js:1 Uncaught TypeError: Cannot read property 'Inspector' of undefined
    at t.isVisible (babylon.js:1)
    at t._createInspector (babylon.js:1)
    at HTMLScriptElement.n.onload (babylon.js:1)

 

 

OK, I loaded directly and it worked; 

<script src="https://preview.babylonjs.com/inspector/babylon.inspector.bundle.js"></script>

 

 

Share this post


Link to post
Share on other sites
2 minutes ago, Sebavan said:

It looks like the namespace is not defined for some reason.

Are you using any bundling tools or loaders ? and if so which ones ?

Not me, just a plain index.html with:

<script src="libs/pep.js"></script>
<script src="libs/babylon.js"></script>
<script src="libs/babylonjs.loaders.min.js"></script>
<script src="https://preview.babylonjs.com/inspector/babylon.inspector.bundle.js"></script>

Share this post


Link to post
Share on other sites
6 minutes ago, Sebavan said:

It looks like the namespace is not defined for some reason.

Are you using any bundling tools or loaders ? and if so which ones ?

I am using webpack 4, but it's not the reason behind the issue, see: https://codepen.io/anon/pen/ZmvEbV

(I just used the template https://doc.babylonjs.com/babylon101/first#html-template and called scene.debugLayer.show() )

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.