English is below wasdeqキーで移動 矢印キーで回転できます。 この作品がここまでラグいのは、一描画ごとに三角形が交差しているかの判定や、分割処理を行っているからです。なので動くブロックをなくして旗が押されたときだけ分割処理が行われるようにしたり、交差する物体を減らせば大幅な軽量化ができます。 今回の作品はscratchでもここまでできるんだぞという思いを込めたので、重くなってしまいました。 Move with the wasdeq key. You can rotate with the arrow keys. The reason this piece is so laggy is because it has to check whether the triangles intersect and perform the division process with each drawing. So, by eliminating the moving blocks and only performing the division process when the flag is pressed, or by reducing the number of intersecting objects, you can significantly reduce the weight. This piece is heavy because I wanted to show what's possible with Scratch.
https://turbowarp.org/1234178694 turb warp バイナリ空間分割を使用して、3D上の三角形を正確にソートするプログラムを組んでみました。三角形が分割平面のどちら側にあるかに基づいて、二分木が構築され、三角形が交差しているとき、別々の三角形に分割されます。これによって正確なソートと交差が可能になります。 I've written a program that uses binary space partitioning to accurately sort triangles in 3D. Based on which side of the partitioning plane the triangle is on, a binary tree is built, and when triangles intersect, they are split into separate triangles. This allows for accurate sorting and intersection. #game #3d #kd #tree