two.js icon indicating copy to clipboard operation
two.js copied to clipboard

Canvas works, SVG works, WebGL renders nothing

Open dan-fritchman opened this issue 1 year ago • 19 comments

This is probably gonna be a pretty crappy bug report, but I'm not really sure what to report.

In our application SVG and Canvas have always worked. WebGL has never worked. It just renders a blank canvas.
It's a big complicated application; I'm not sure how to peel off a minimal repro case.

Currently using Two v0.8.14. Mostly in current Chrome, but also tried in Firefox & Safari, all on current MacOS. And I did notice something today: calling functions like makeRectangle and makeCircle on our Two instance in the browser developer console does get them to show up:

image image

And noting, our application generally does not use those makeXyz functions. We do something more like:

const top = new Group();
const middle = new Group();
top.add(middle);
const bottom = new Rectangle(someArgs);
bottom.addTo(middle);
// etc

I guess the question is: does anything come to mind as to why that combination wouldn't work?

dan-fritchman avatar Sep 03 '24 22:09 dan-fritchman