Open KurtPachinger opened 1 year ago
THREE.Color: Unknown color transparent
THREE.Color: Alpha component of rgba(128, 128, 128, 0.125) will be ignored.
Too many active WebGL contexts. Oldest context will be lost.
THREE.WebGLRenderer: Context Lost.
THREE.WebGLRenderer: Context Restored.
[x] After a reboot, in a new browser window, I see a reproducable bug. The entire browser flashes black, and then the canvas background is black. It occurs when I update CodeSandbox (i.e. CTRL+X to move a console.log(), or backspace). When I set the black canvas opacity to 0.9999999 (or lower), OrbitControls does not respond.
[x] ~~Also, there is a mesh rectangle of widely varying dimensions added to my scene. It is >300% the size of my viewport, and very wide or tall. It is always at different y angles. I am using CSS3DRenderer.~~ arc
mixed-content | CSS3D .mp-native |
toSvg .mp-poster |
FileLoader .mp-loader |
---|---|---|---|
* | 100% events cors |
<512 |
#comment |
. | htm pdf |
jpg txt |
xml |
model-viewer a-scene babylon three-d-viewer #stl_cont #root .sketchfab-embed-wrapper StandardReality |
✓ | ||
iframe, object, embed | ✓ | ||
svg | ✓ | SVGLoader text |
|
canvas | ✓ | ||
audio | controls |
AudioLoader |
|
Lena.mp-loader |
OpenCV |
init(?)
, as opposed to Group.selector > userData > grade
init ( renderer, scene, camera ) {
if ( renderer && scene && camera ) {
// DON'T: render, resize, update camera, helpers
// DO:
// renderer.domElement
// - append CSS3D
// - classList.add `mp-block`
// reference
// - add to scene, dispose
// - update(grade), events
}
maxEls
to batch-process [idx-queue]atlas
> transform
external to dom
Rebuild all nodes, excluding eligible/active forms or videos.
Focus update within viewport, and minimize reflow (zero-height, lazy-loaded, triggered...).
use cases: scroll, resize, live DOM, accordion/gallery
An update
should:
queue
: visibilityframe
: bound, css
box
, css
, raycast
, event
ux
: native, activedone | queue priority | attribute | usage |
---|---|---|---|
... | 1 | :pseudo | after, before, hover, focus |
✓ | 3 | animation | |
✓ | background | color | |
border | color, width | ||
2 | opacity | ||
1 | overflow | scroll | |
✓ | position | fixed | |
✓ | 3 | transform | matrix, origin, rotate, scale |
✓ | 3 | transition | |
2 | visibility | ||
✓ | z-index | integer |
*outliers: deep tree, filetype.gif, canvas, loader, hidden iframe
enhancement
arc smooth: displace map, or shader positions, or SkinnedMesh,IK chainhighlight, and arc front to uv or origintest internal resourcelimit dimensions(track, crash) --1>n<2048,3840,4096
.loader
: expose to THREE (i.e. SVGLoader, AudioLoader, arbitrary xml)enable-vrFontLoader: match h2, p, svg text?share generic path/hole pattern (SVGLoader, FontLoader, OpenCV)poster
: convert text to path (cv.kmeans, cv.inRange, cv.findContours). For example,h2.mp-loader
would output like SVGLoader. (gzip, docker)limit toPng sizeObserver)MutationObserverone MutationObserver instead of multiple IntersectionObservermp-update
force element to re-render once (similar tomp-native
)from seed(section,article,h2,img,ul,embed)web3 hooks: node atlas matrix[a1,b2]::[a2,b1]
use GAN for... spatial cross?update
may retain refs to DOM Nodesfrustum cullconst { var: vars } = mpos;
bug
mpos
to window on init:orphan_list
andorphan_semantic
element nested in tags deep/ignored/empty (solved by manual class hints)struct.opts
forbox.opts
hooks -- details only opens programmatically (OrbitControls preventDefault?)MAX_TEXTURE_SIZE
rect.obj<Mesh>
is stale?little skinny details div (mat=self)data-idx: preserve uid next NodeIteratortoSvg errors(try/catch for missing img.src, without fallback)