13,089,246 members (65,056 online)
Rate this:
See more:
Hi guys ,

İm new in OpenGL . I want to draw astroid using the function given below for practise.
I cant do any step .. Can u help with me ?

functions :

x = a*cos(t)^3
y = a*sin(t)^3

Posted 22-Apr-13 9:52am
beratxt745
Updated 22-Apr-13 11:27am
v2
Sergey Alexandrovich Kryukov 22-Apr-13 16:02pm

Programming language? Platform?
—SA
beratxt 22-Apr-13 17:18pm

C# but it can be also in C++ / C . BUT SUGGESTs C#
ThePhantomUpvoter 22-Apr-13 17:50pm

Well in that case I would suggest the you learn how to write code in C# first.

Rate this:

## Solution 1

Your equations do not describe the astroid. You should not multiply by 3, you should take a sine and cosine cubed, `x=cos³(θ), y=sin³(θ)`:
http://en.wikipedia.org/wiki/Astroid[^].

I don't think that, without your specifications of language and platform and the demonstrated level in mathematics, any further discussion might make any sense, sorry.

—SA
v5

Top Experts
Last 24hrsThis month
 ProgramFOX 270 Richard Deeming 225 Graeme_Grant 220 Jochen Arndt 185 OriginalGriff 149
 OriginalGriff 3,392 Graeme_Grant 1,784 ProgramFOX 1,697 Jochen Arndt 1,605 ppolymorphe 1,427