new question!!!
#1
Posted 08 December 2005 - 05:22 PM
plz i want a openGL code to make a flag seems fly(flap)
plz its very important...
#2
Posted 08 December 2005 - 05:32 PM
for(phase=0;phase<360;phase++) {
for(theta=0;theta<360;theta++) {
x=(theta+phase)*PI/180;
y1=sin(x);
y2=sin(x)+y_trans;
plot pixel at x,y1 and x,y2
}
clear screen
}
This may not be too exact but I hope you got the idea. There surely must be better ways to do this also.
#3
Posted 08 December 2005 - 05:44 PM
#5
Posted 08 December 2005 - 06:06 PM
#6
Posted 08 December 2005 - 06:13 PM
http://www.devmaster...read.php?t=4586
http://www.devmaster...read.php?t=4588
And bladder already gave him an answer.
#7
Posted 08 December 2005 - 07:46 PM
#8
Posted 08 December 2005 - 08:56 PM
#9
Posted 08 December 2005 - 11:49 PM
You didn't ask a very good question.
roxtar gave you a fantastic answer, and yet all you ask is, "I need more information". If you can't at least tell us what you're missing, how the hell can we help you?
If you're looking for the entire thing written out for you, you're going to find it a hard time to get what you're looking for: very few people are going to spoon feed you this.
#11
Posted 09 December 2005 - 05:06 PM
#12
Posted 09 December 2005 - 07:53 PM
thanx anyway
#13
Posted 09 December 2005 - 08:16 PM
If you could limit it a specific area you're having issue with, even if it's, "I have to do x, y, and z, and I'm not sure where to start. Should I do x first? Or y? Or z?". Better yet, if you can experiment some and say, "I've tried x,y,z and I've got it mostly, but I'm really stuck with y. How do I do step 3 in y?".
Those will yield you the best results.
#14
Posted 10 December 2005 - 12:40 PM
ramzi085 said:
plz i want a openGL code to make a flag seems fly(flap)
plz its very important...
Hey... Go to nehe.gamedev.net There is a waving flag tutorial there...
#15
Posted 27 December 2005 - 07:04 PM
roxtar said:
for(phase=0;phase<360;phase++) {
for(theta=0;theta<360;theta++) {
x=(theta+phase)*PI/180;
y1=sin(x);
y2=sin(x)+y_trans;
plot pixel at x,y1 and x,y2
}
clear screen
}
This may not be too exact but I hope you got the idea. There surely must be better ways to do this also.wht does y_trans refer to???
thnx in advance
#16
Posted 27 December 2005 - 10:35 PM
#17
Posted 28 December 2005 - 05:28 AM
Reedbeta said:
#18
Posted 03 January 2006 - 04:49 AM
good luck ramzie, kgkg, ... :yes:
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users












