Hello and HAPPY NEW YEAR!
Several days I think about how to draw full 3D Pyramid in ZGameEditor and modifications such as truncated pyramid.
I try with RenderNet parts with recalculating vertex or to use MeshImplicit but I think that this is wrong way.
Please give me some ideas how to draw 3D pyramid.
How to Pyramid
Moderator: Moderators
Re: How to Pyramid
Hi,
- SloppyMesh: This is a pyramid generated from a Box of which the top points are moved together. It's the easiest method, but you end up with 4 "unused" triangles.
- PyramidMesh: This is a pyramid generated from a Plane + 4 Triangles. Since ZGE doesn't have a triangle component, it uses a imported triangle.
- FrustumMesh: This is a truncated pyramid created from a Box. Change the P variable to adjust at what height the pyramid is truncated.
Hopefully this helps
K
Neither RenderNet nor MeshImplicit are ideal for geometric shapes such as a pyramid. Attached is a example containing 3 procedural meshes.milen_zge wrote:Several days I think about how to draw full 3D Pyramid in ZGameEditor and modifications such as truncated pyramid.
I try with RenderNet parts with recalculating vertex or to use MeshImplicit but I think that this is wrong way.
- SloppyMesh: This is a pyramid generated from a Box of which the top points are moved together. It's the easiest method, but you end up with 4 "unused" triangles.
- PyramidMesh: This is a pyramid generated from a Plane + 4 Triangles. Since ZGE doesn't have a triangle component, it uses a imported triangle.
- FrustumMesh: This is a truncated pyramid created from a Box. Change the P variable to adjust at what height the pyramid is truncated.
Hopefully this helps

K
- Attachments
-
- Pyramid.zgeproj
- (3.01 KiB) Downloaded 450 times
Re: How to Pyramid
Thank you, very much!
It was simple and with short code!
I will continue to try different techniques, tanks for fast help.
Regards,
M.
It was simple and with short code!
I will continue to try different techniques, tanks for fast help.
Regards,
M.