5 ms·
Oooh, I think I know why. First room uses img tags for the walls. Image tags (and canvas tags) do not play well in 3D contexts. For example they ignore depth so
by pantelisk 6y ago
Oooh, I think I know why. First room uses img tags for the walls. Image tags (and canvas tags) do not play well in 3D contexts. For example they ignore depth sorting and rely on z-index. So you cannot properly depth sort them. Now you might wonder why I picked img tags for lvl1, and then divs for lvl2. Profiling showed reduced mem usage for img tags and I thought I 'd take advantage of that optimization. (premature optimization and all that I guess!)
- butz 6y agoInteresting observation. Would it be very complicated to add an option to select img or div based rendering?
- pantelisk 6y agoHere - https://pantel.is/projects/css3d/indexdiv.html https://pantel.is/projects/css3d/indexdiv.html (no option, but I force set the first level to use div tags instead of img. Curious if this fixes the FF linux issue!)