The noobiest question you can think about

All topics about ZGameEditor goes here.

Moderator: Moderators

Post Reply
User avatar
panurge
Posts: 22
Joined: Sat Jul 04, 2009 11:08 pm

The noobiest question you can think about

Post by panurge »

Ok, the title tells it all. Anyway:

What's the simplest way to draw a dot at (x,y,z)?

The next step would be "how to draw a line from (x1,y1,z1) to (x2,y2,z2)?" etc. Probably this should be done with a RenderNet component, but i think i don't really know what a net is, actually.

Sorry for the noobiness, but err...

Thanks.
User avatar
Kjell
Posts: 1924
Joined: Sat Feb 23, 2008 11:15 pm

Post by Kjell »

Hi panurge,

Unfortunately ZGE doesn't have any components for rendering points & lines, so your best option is to call OpenGL directly ( attached is a example ).

Keep in mind that this isn't exactly lightning-fast .. in particular for static line-meshes there are better solutions ( that require more work though ).

K
Attachments
PointsLines.zgeproj
(1.73 KiB) Downloaded 509 times
User avatar
panurge
Posts: 22
Joined: Sat Jul 04, 2009 11:08 pm

Post by panurge »

Oooooh, i like this!

Megathanks! :shock:
Post Reply