Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sound Wave Bar.....
#37
By far my best. Coded in FreeBASIC, hopefully it should work in QB (one of the lines might be too long though).

[syntax="QBASIC"]
1 amp! = 25.0
2 if t! = 0.0 then screen 13 else cls
3 line (319, int(((256.0 * amp! * 99.0) / (256.0 + (250.0 - (100.0 * sin(t! / 6.0))) + (amp! * (250.0 - (100.0 * sin(t! / 6.0))))))))-(0, int(((256.0 * amp! * 99.0) / (256.0 + (250.0 - (100.0 * sin(t! / 6.0))) + (amp! * (250.0 - (100.0 * sin(t! / 6.0)))))))), 17
4 for x! = -1 to 450 step 5
5 line step-(int(((256.0 * amp! * x!) / (256.0 + (250.0 - (100.0 * sin(t! / 6.0))) + (amp! * ((250.0 - (100.0 * sin(t! / 6.0))) + (amp! * cos(t! + ((x! * 2.0 * 3.141592654) / 100.0)))))))), int(((256.0 * amp! * (99.0 + (amp! * sin(t! + ((x! * 2.0 * 3.141592654) / 100.0))))) / (256.0 + (250.0 - (100.0 * sin(t! / 6.0))) + (amp! * ((250.0 - (100.0 * sin(t! / 6.0))) + (amp! * cos(t! + ((x! * 2.0 * 3.141592654) / 100.0))))))))), ((26 - int(((((250.0 - (100.0 * sin(t! / 6.0))) + (amp! * cos(t! + ((x! * 2.0 * 3.141592654) / 100.0)))) - (250.0 - (100.0 * sin(t! / 6.0))) + amp!) / (2.0 * amp!)) * 10.0)) - 100)
6 next x!
7 t! = t! + 0.01
8 if t! >= (12.0 * 3.141592654) then t! = 0.001 else wait &h3da, 8
9 if inkey$ = "" then goto 2
[/syntax]

3D rotating coil, based on a sinusoidal wave; zoom and modified Lambert shading. It even has a reference bar. Wink

Hope you like this one.

-shiftLynx

[EDIT: forgot to remove a comment from the code Wink]
[EDIT2: slight alteration to make the left-hand-side look a bit tidier]
img]http://www.cdsoft.co.uk/misc/shiftlynx.png[/img]
Reply


Messages In This Thread
Sound Wave Bar..... - by Rattrapmax6 - 04-03-2005, 12:51 AM
Sound Wave Bar..... - by red_Marvin - 04-03-2005, 01:37 AM
Sound Wave Bar..... - by Rattrapmax6 - 04-03-2005, 01:52 AM
Sound Wave Bar..... - by Rattrapmax6 - 04-04-2005, 02:22 AM
Sound Wave Bar..... - by Mitth'raw'nuruodo - 04-04-2005, 06:23 AM
Sound Wave Bar..... - by Rattrapmax6 - 04-05-2005, 01:12 AM
Sound Wave Bar..... - by Mitth'raw'nuruodo - 04-05-2005, 01:26 AM
Sound Wave Bar..... - by Rattrapmax6 - 04-05-2005, 01:58 AM
Sound Wave Bar..... - by red_Marvin - 04-05-2005, 01:58 AM
Sound Wave Bar..... - by Rattrapmax6 - 04-05-2005, 02:02 AM
Sound Wave Bar..... - by xteraco - 04-05-2005, 03:11 AM
Sound Wave Bar..... - by Rattrapmax6 - 04-05-2005, 03:45 AM
Sound Wave Bar..... - by xteraco - 04-05-2005, 05:25 AM
Sound Wave Bar..... - by Rattrapmax6 - 04-05-2005, 05:38 AM
Sound Wave Bar..... - by shiftLynx - 04-05-2005, 06:05 AM
Sound Wave Bar..... - by xteraco - 04-05-2005, 06:56 AM
Sound Wave Bar..... - by xteraco - 04-05-2005, 08:23 AM
Sound Wave Bar..... - by Mitth'raw'nuruodo - 04-06-2005, 12:36 AM
Sound Wave Bar..... - by xteraco - 04-06-2005, 12:37 AM
Sound Wave Bar..... - by Mitth'raw'nuruodo - 04-06-2005, 12:41 AM
Sound Wave Bar..... - by Anonymous - 04-06-2005, 03:50 AM
Sound Wave Bar..... - by xteraco - 04-06-2005, 04:09 AM
Sound Wave Bar..... - by Rattrapmax6 - 04-06-2005, 04:41 AM
Sound Wave Bar..... - by Mitth'raw'nuruodo - 04-07-2005, 12:56 AM
Sound Wave Bar..... - by Rattrapmax6 - 04-07-2005, 01:12 AM
Sound Wave Bar..... - by Mitth'raw'nuruodo - 04-07-2005, 01:15 AM
Sound Wave Bar..... - by Rattrapmax6 - 04-07-2005, 01:44 AM
Sound Wave Bar..... - by Mitth'raw'nuruodo - 04-07-2005, 01:45 AM
Sound Wave Bar..... - by shiftLynx - 04-07-2005, 03:31 AM
Sound Wave Bar..... - by Rattrapmax6 - 04-07-2005, 03:37 AM
Sound Wave Bar..... - by Mitth'raw'nuruodo - 04-07-2005, 04:38 AM
Sound Wave Bar..... - by Rattrapmax6 - 04-07-2005, 04:57 AM
Sound Wave Bar..... - by Mitth'raw'nuruodo - 04-07-2005, 06:19 AM
Sound Wave Bar..... - by xteraco - 04-07-2005, 06:32 AM
Sound Wave Bar..... - by relsoft - 04-07-2005, 11:15 AM
Sound Wave Bar..... - by Anonymous - 04-07-2005, 11:34 AM
Sound Wave Bar..... - by shiftLynx - 04-07-2005, 08:23 PM
Sound Wave Bar..... - by Kylemc - 04-08-2005, 12:07 AM
Sound Wave Bar..... - by Mitth'raw'nuruodo - 04-08-2005, 12:14 AM
Sound Wave Bar..... - by Mitth'raw'nuruodo - 04-08-2005, 12:22 AM
Sound Wave Bar..... - by Rattrapmax6 - 04-08-2005, 02:38 AM
Sound Wave Bar..... - by xteraco - 04-08-2005, 04:28 AM
Sound Wave Bar..... - by relsoft - 04-08-2005, 02:48 PM
Sound Wave Bar..... - by Anonymous - 04-08-2005, 03:20 PM
Sound Wave Bar..... - by Rattrapmax6 - 04-08-2005, 10:10 PM
Sound Wave Bar..... - by Mitth'raw'nuruodo - 04-09-2005, 12:20 AM
Sound Wave Bar..... - by Rattrapmax6 - 04-09-2005, 12:54 AM
Sound Wave Bar..... - by Mitth'raw'nuruodo - 04-09-2005, 12:59 AM
Sound Wave Bar..... - by DefHo - 04-09-2005, 01:54 PM
Sound Wave Bar..... - by Rattrapmax6 - 04-09-2005, 08:23 PM
Narf! - by DefHo - 04-10-2005, 01:22 AM
Sound Wave Bar..... - by Rattrapmax6 - 04-10-2005, 03:25 AM
Sound Wave Bar..... - by Mitth'raw'nuruodo - 04-10-2005, 07:48 AM
Sound Wave Bar..... - by shiftLynx - 04-10-2005, 02:47 PM
Sound Wave Bar..... - by TheDarkJay - 04-10-2005, 03:11 PM
Sound Wave Bar..... - by Mitth'raw'nuruodo - 04-10-2005, 05:09 PM
Sound Wave Bar..... - by shiftLynx - 04-10-2005, 05:46 PM
Sound Wave Bar..... - by Rattrapmax6 - 04-10-2005, 07:56 PM
Sound Wave Bar..... - by Mitth'raw'nuruodo - 04-11-2005, 03:14 AM
Sound Wave Bar..... - by Rattrapmax6 - 04-11-2005, 03:27 AM
Sound Wave Bar..... - by Mitth'raw'nuruodo - 04-11-2005, 03:38 AM
Sound Wave Bar..... - by Rattrapmax6 - 04-12-2005, 05:11 AM
Sound Wave Bar..... - by Mitth'raw'nuruodo - 04-13-2005, 01:27 AM
Sound Wave Bar..... - by Kylemc - 04-16-2005, 01:06 AM
Sound Wave Bar..... - by Rattrapmax6 - 04-16-2005, 03:17 AM
Sound Wave Bar..... - by Kylemc - 04-16-2005, 02:06 PM
Sound Wave Bar..... - by TheDarkJay - 04-16-2005, 02:47 PM
Sound Wave Bar..... - by Kylemc - 04-16-2005, 03:55 PM
Sound Wave Bar..... - by TheDarkJay - 04-16-2005, 04:03 PM
Sound Wave Bar..... - by Mitth'raw'nuruodo - 04-16-2005, 05:33 PM
Sound Wave Bar..... - by Rattrapmax6 - 04-16-2005, 07:29 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)