babylonjs

Posted LogiCoal

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了babylonjs相关的知识,希望对你有一定的参考价值。

//////////////////
//// debug模式启动浏览器
//////////////////
以debug模式启动浏览器,才可以attach成功,启动前需要退出chrome

Windows
Right click the Chrome shortcut, and select properties
In the "target" field, append --remote-debugging-port=9222
Or in a command prompt, execute <path to chrome>/chrome.exe --remote-debugging-port=9222

macOS
In a terminal, execute /Applications/Google Chrome.app/Contents/MacOS/Google Chrome --remote-debugging-port=9222

Linux
In a terminal, launch google-chrome --remote-debugging-port=9222

//////////////////
//// python 本地http server
//////////////////

python -m SimpleHTTPServer


//////////////////
//// attach 配置
//////////////////
{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        
        {
            "type": "chrome",
            "request": "attach",
            "name": "Attach to Chrome",
            "port": 9222,
            "webRoot": "${workspaceFolder}"
        }
    ]
}

 

以上是关于babylonjs的主要内容,如果未能解决你的问题,请参考以下文章

babylonjs shader

Angular 项目不适用于 @babylonjs/viewer

babylonjs

webgl babylonjs 优化

BabylonJS Ionic 应用程序,3D 模型未加载

如何让相机聚焦在物体上并使用 Babylonjs 将其保持在中心焦点?