Skip to main content
GameDev.net gamedev.net
🔒 Locked

How to create shapes with math formulas?

Started by MARS_999 Mar 2, 2009 at 10:39 AM 9 replies 3.8k views
Original Post
MARS_999
MARS_999
I am looking for a site that shows or covers how one create various shape object with a mathematical formula, or a good book would be better. I want to make a lib that has all these shapes to render without having to make them each time, or the need for a mesh loader... e.g. math needed to create a sphere, Pyramid, disc, Icosahedron, Cone, ect. THanks [Edited by - MARS_999 on March 2, 2009 10:58:11 AM]
swiftcoder
swiftcoder
Quote:
Original post by MARS_999
I am looking for a site that shows or covers how one create various shape object with a mathematical formula, or a good book would be better. I want to make a lib that has all these shapes to render without having to make them each time, or the need for a mesh loader...

e.g.
math needed to create a sphere, Pyramid, disc, Icosahedron, Cone, ect.
http://mathworld.wolfram.com has all the formulas for those shapes, but in general, all the shapes you have listed are trivial to generate through either basic trigonometry or subdivision. I doubt that you will find a book for shapes as fundamental as that.
Tristam MacDonald. Ex-BigTech Software Engineer. Future farmer. [https://trist.am]
Black Knight
Black Knight
There is a book called "Algorithmic Beauty of Plants"
linky

It contains formulas to generate tree like shapes by using small patterns,could be useful.
MARS_999
MARS_999
Thanks to both of you, that info is the kind of material I am looking for.
MARS_999
MARS_999
Wow thanks Noisecrime that is a very very nice site.
Zakwayda
Zakwayda
This article is a good resource as well.
zedz
zedz
see a recent post I made in the math + physics forum
zedz
zedz
sorry by post I meant topic I started
heres the info anyways
http://www.gamedev.net/community/forums/topic.asp?topic_id=524548

http://www.2dcurves.com/
http://local.wasp.uwa.edu.au/~pbourke/geometry/ //<- the best but only a few 2d shapes are here
http://mathworld.wolfram.com/topics/Geometry.html
+ of course wikipedia
MARS_999
MARS_999
Thanks jyk, that is a nice doc.

zedz, I have some of those sites already, but I will checkout the first one, thanks.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.