12,395,378 members (71,589 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
 OriginalGriff 215 Jochen Arndt 130 Richard Deeming 105 Richard MacCutchan 90 khaled Ezzat 70
 OriginalGriff 5,998 Karthik Bangalore 2,382 ppolymorphe 2,350 F-ES Sitecore 1,877 Richard MacCutchan 1,707