Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: OpenGL
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
 
Thanks for in advance
Posted 22-Apr-13 10:52am
beratxt706
Edited 22-Apr-13 12:27pm
v2
Comments
Sergey Alexandrovich Kryukov at 22-Apr-13 16:02pm
   
Programming language? Platform?
—SA
beratxt at 22-Apr-13 17:18pm
   
C# but it can be also in C++ / C . BUT SUGGESTs C#
ThePhantomUpvoter at 22-Apr-13 17:50pm
   
Well in that case I would suggest the you learn how to write code in C# first.

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

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
  Permalink  
v5

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 245
1 Jochen Arndt 155
2 PIEBALDconsult 150
3 Afzaal Ahmad Zeeshan 120
4 DamithSL 115
0 OriginalGriff 5,695
1 DamithSL 4,591
2 Maciej Los 4,012
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,190


Advertise | Privacy | Mobile
Web02 | 2.8.141220.1 | Last Updated 22 Apr 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100