-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add Env to NME Preview #14398
add Env to NME Preview #14398
Conversation
Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s). |
Snapshot stored with reference name: Test environment: To test a playground add it to the URL, for example: https://babylonsnapshots.z22.web.core.windows.net/refs/pull/14398/merge/index.html#WGZLGJ#4600 Links to test babylon tools with this snapshot: https://playground.babylonjs.com/?snapshot=refs/pull/14398/merge To test the snapshot in the playground with a playground ID add it after the snapshot query string: https://playground.babylonjs.com/?snapshot=refs/pull/14398/merge#BCU1XR#0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
packages/tools/nodeEditor/src/components/preview/previewAreaComponent.tsx
Outdated
Show resolved
Hide resolved
LGTM if @PatrickRyanMS is all good with it :-) |
Also one last thought for @RaananW to be sure importing .env would not break any kindz of buildzzzz 🐝🐝🐝🐝🐝 |
Works fine, as this is just a static file in the public directory. |
okay, I has remove it, and use "https://assets.babylonjs.com/environments/environmentSpecular.env" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice thanks a lot !!! a last change and I can merge it in :-) Could you make "https://assets.babylonjs.com/environments/environmentSpecular.env" a public static so that users can point it at their own URL if need be :-)
yes. Now it is a exists URL of babylon assets (https://assets.babylonjs.com), not a file . |
I use this URL as other source codes of babylon.js .your can find the URL in bellow files: |
yes but in environmentHelper users can override it here https://github.com/BabylonJS/Babylon.js/blob/master/packages/dev/core/src/Helpers/environmentHelper.ts#L344 and sandbox is not meant to be used as a framework. Users needs to be able to control where they download assets from. |
your mean is. ........"user need custom a env of the NME Preview window?" . I has add a "upload button" on the right of "model ComboBox" in NME Preview window. so user can override the default env "https://assets.babylonjs.com/environments/environmentSpecular.env". |
Oh no, sorry, I just mean if you move it in a static public field or a let in the module so a developer consuming the npm package can change it before loading nme. |
or...... your mean is a public static filed of the class? |
something like this:
|
thanks. I got it :) |
I ll adapt this one ASAP |
@PatrickRyanMS it looks real strange zoomed in like it would be a bold font :-( could you create another svg ? like the other ones in the bar ? |
I can make a new svg to fit with the current icons. Give me a few minutes. |
@sebavan, here's the updated icon. This is saved at the same size as the rest of the icons, so the css should be the same: |
We can custom Env, Image and toggle Env / Background color now.