How to Pyramid

All topics about ZGameEditor goes here.

Moderator: Moderators

Post Reply
milen_zge
Posts: 10
Joined: Thu Dec 13, 2012 10:31 am

How to Pyramid

Post by milen_zge »

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.
User avatar
Kjell
Posts: 1883
Joined: Sat Feb 23, 2008 11:15 pm

Re: How to Pyramid

Post by Kjell »

Hi,
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.
Neither RenderNet nor MeshImplicit are ideal for geometric shapes such as a pyramid. Attached is a example containing 3 procedural meshes.

- 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 :wink:

K
Attachments
Pyramid.zgeproj
(3.01 KiB) Downloaded 397 times
milen_zge
Posts: 10
Joined: Thu Dec 13, 2012 10:31 am

Re: How to Pyramid

Post by milen_zge »

Thank you, very much!

It was simple and with short code!
I will continue to try different techniques, tanks for fast help.

Regards,
M.
Post Reply