Gary Oberbrunner
Gary Oberbrunner
And here is my "corrupted" notebook -- all 4 notes in this notebook fail to import even though they open fine in OneNote. I notice that they all have images....
Hi; yes, I'm doing this now. You probably want to use the latest ngl master branch, and when you build NGL for your project, use the `dist/ngl.esm.js` build that relies...
Hi; I can't share a working code sample, sorry, but you can add your objects to the scene in `stage.viewer.scene`, and then set up an `onTick` method like this: ```js...
Sorry to hear that, and you're absolutely right that we need a sample of using ngl.esm.js (it's quite new, and using it requires a module-based framework so it doesn't slot...
I'm working on a simple example of this. Hope to have it in a few days. It'll use webpack. On Tue, Aug 10, 2021 at 1:35 PM Robert Oeffner ***@***.***>...
> @garyo, @Oeffner, I just realized that another possible way to mix ngl representations with "outside" objects is to do it "backwards." If we could export an ngl representation as...
Thanks @fredludlow; I may take a crack at that. Breaking out controls as a separate class makes sense (the way three.js does it). You can go upside down with OrbitControls...
Hi; components automatically get added to the stage when you use `loadFile`/`addRepresentation`. I'm not sure what the intent is of this code in your codepen: ``` if (addToStage === true)...
Interesting. I've just spent a long time dealing with the rotation center of components myself. Currently a component rotates (and scales) about the center of the structure, even when there...
That seems like a good approach -- don't forget about scale factor too. One place to start is `component.updateMatrix()` -- that's where it accounts for the center.