Jump to content

[SOLVED] - New Debug Layer Auto External Window


MackeyK24
 Share

Recommended Posts

@Temechon Is there a way (or can we adda way) to show the new Debug Layer in an external window from the debugLayer.show command (and NOT have it first displayed on the side and have to hit the 'external window' button). I would to initially show the debug layer in an external window using some kind of option switch of course :)

What do you all think about that one :)

 

Link to comment
Share on other sites

It has already been implemented.

https://github.com/BabylonJS/Babylon.js/commit/f01ba2d4c667a9b8a8ba8865dbcc1fafeae39ca9

http://www.babylonjs-playground.com/#2HUXNY#0

I'm getting an error on first run, though.  

Here I wait a half second (have to allow popups):

http://www.babylonjs-playground.com/#2HUXNY#1

 

edit:

The first PG is no longer giving me an error.  Maybe because I allowed popups.

Link to comment
Share on other sites

Damn, you guys are fast.  A post sits for 10 hours, and then a bunch of us attack.  hehe

Too fun!

Best I could do was...

    scene.debugLayer.show();
    var inspector = scene.debugLayer._inspector;
    scene.debugLayer.hide();
    inspector.openPopup(true);


:D  Darn you guys!  Cool feature add, though... well done!  Love it.

Link to comment
Share on other sites

This is working great:

        public toggleDebug(popups:boolean = false): void {
            if (this._scene.debugLayer.isVisible()) {
                this._scene.debugLayer.hide();
            } else {
                this._scene.debugLayer.show(popups);
            }
        }

Was Implemented in 2.6 Alpha (maybe even before that) :)

I luv it... especially for small screen canvas sizes :)

BTW @Temechon or @Deltakosh ... Is there a way to run the new DebugLayer from local resources... can i download and serve my own inperctor.bundle.js...

I am in Hawaii... And it takes quite awhile for the inspector to some up because is has make that server trip over the 3000 miles of ocean ... The old debug layer did not load any extra external resources... not that i noticed before.

Link to comment
Share on other sites

Which one.... JUST the bundle by itself ???

Do i need to reference the .css file ???

I seem to recall additional files from some CDN that got loaded as well... Where do they come from....

Just trying to package the ALL the files i need in the /Assets/Babylon/Library folder... Don't want to have to DEPEND on any other files coming from the internet.

Link to comment
Share on other sites

The inspector loads dynamically several external lib :

- fonts (awesomeFont, for every icons, and Inconsolata for the main font of the inspector)
- In shader tab ONLY, it loads highlight.js in order to have a coloring style for the glsl code.

If you know another way to do it, I'm listening :)

Link to comment
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...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...