• ### Announcements

#### Archived

This topic is now archived and is closed to further replies.

# generate polygons in-game?

## Recommended Posts

Is there any way to generate polygons in-game? Like, say in the game you could breed flowers, and some numbers correspond to the shape of the flower, and in the next generation of flowers there''s a mutation that changes these numbers, is there any way to generate a new flowerlike shape from these numbers? I''ve seen programs where you can breed simplified fractals and other shapes in 2-d, but how could you do it in 3-d?

##### Share on other sites
Sly    128
Put those numbers into a routine that uses various algorithms to generate a bunch of triangles. These triangles are passed to the 3D card to render. This is how the OpenGL teapot and other shapes are made. The teapot is just a bunch of algorithms.

Edited by - Sly on July 1, 2001 12:58:38 AM

##### Share on other sites
bishop_pass    109
Ah, sunandshadow, what a pleasant surprise to find you over here in the graphics forum!

The technique is known as procedural. Procedural generation of structures, data amplification, fractals, L-systems, and so on. You might find this site on L-systems interesting.

##### Share on other sites
Zaei    122
Does anyone know how to create a procedural mobius strip?

Z.

##### Share on other sites
granat    122
a what ??? Don´t talk dirty

##### Share on other sites
bishop_pass    109
quote:
Original post by Zaei
Does anyone know how to create a procedural mobius strip?

Images of Escheresque imagery complete with marching ants...

A ribbon, twisted 180 degrees along its length, and joined end to end after traversing the path of a figure eight. A bit of trigonometry, and we have our mobiius strip.

##### Share on other sites
Hi bishop pass. Boy, I bump into you everywhere. Normally I stay out of this forum because I''m allergic to higher math, but in this case I wanted to make sure what I wanted to do was doable before I built it into my game design. Anyway, thanks all for your prompt answers!