Qbasicnews.com
December 15, 2019, 09:53:26 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Back to Qbasicnews.com | QB Online Help | FAQ | Chat | All Basic Code | QB Knowledge Base
 
   Home   Help Search Login Register  
Pages: 1 ... 3 4 [5] 6
  Print  
Author Topic: wormhole  (Read 29048 times)
Rattrapmax6
__/--\__
*****
Posts: 2577



WWW
« Reply #60 on: April 04, 2005, 01:50:21 PM »

Quote from: "Mitth'raw'nuruodo"
Naw, if I did that then you can kiss SpaceMerc good bye.


Port it? heh, nevermind then... :wink:
Logged

Kevin (x.t.r.GRAPHICS)

xteraco
Ancient QBer
****
Posts: 450



WWW
« Reply #61 on: April 04, 2005, 05:38:28 PM »

maybe i'll start a new compo ... it'll be called

explane Dr_Davenstein's wormhole code

heh  Cheesy

person w/ most comments wins
Logged

url=http://www.random-seed.net][/url]
Mitth'raw'nuruodo
Ancient Guru
****
Posts: 515



WWW
« Reply #62 on: April 04, 2005, 05:42:51 PM »

Well apparently this dude used SOH-CAH-TOA a lot....you got that burned in your mind friend....lol :lol:

Considering I didn't see it, I say ummm....ah....he...ah...did....wtf.
 Shocked What the heck did you do!
Logged

i]"But...it was so beautifully done"[/i]
xteraco
Ancient QBer
****
Posts: 450



WWW
« Reply #63 on: April 04, 2005, 06:01:35 PM »

what do you mean, you didnt see it!? well, if you havent seen it here's a screenshot

 
how it was done, tell me!!!  Shocked  Shocked  Shocked
http://68.102.38.232:8080/screenshots/rnd%20pics/portal.jpg
Logged

url=http://www.random-seed.net][/url]
Mitth'raw'nuruodo
Ancient Guru
****
Posts: 515



WWW
« Reply #64 on: April 04, 2005, 08:29:03 PM »

Shocked  holy crap thats good!

I didn't see it because its in FB. Tongue
Logged

i]"But...it was so beautifully done"[/i]
Rattrapmax6
__/--\__
*****
Posts: 2577



WWW
« Reply #65 on: April 04, 2005, 09:51:12 PM »

Eh, looks even better than that,.. jpg smoothed it out a lil to much,..

SOH-CAH-TOA,. he he, I like that one over the one I used to know from Algabra..

S = Oscer/Had | Sin = Oppisite/Hypotenuse
C = A/Hold | Cos = Adjacent/Hypotenuse
T = On/Alex | Tan = Oppisite/Adjacent

 Cheesy So I knew what it ment b4 Rel went on to explain.. Tongue .. I like the compact version betta you gotta know.. :wink:  :lol:
Logged

Kevin (x.t.r.GRAPHICS)

xteraco
Ancient QBer
****
Posts: 450



WWW
« Reply #66 on: April 04, 2005, 10:59:17 PM »

mmm, i compressed the jpg, i didnt smooth it at all tho..  compression by 50% to make small...   small = good ... big = bad ...  :lol:
Logged

url=http://www.random-seed.net][/url]
xteraco
Ancient QBer
****
Posts: 450



WWW
« Reply #67 on: April 04, 2005, 11:00:18 PM »

man, i really hope shiftlynx comes and makes an entry for this compo.. it would be a real treat Cheesy
Logged

url=http://www.random-seed.net][/url]
Mitth'raw'nuruodo
Ancient Guru
****
Posts: 515



WWW
« Reply #68 on: April 05, 2005, 04:32:19 PM »

Rattra:
 Shocked Oh good Lord nooo!!!
They taught you: Oscer had a hold on Alex in school!!!.... :normal: .... :barf:

I like mine better too. Sound it out it sounds cool.
Logged

i]"But...it was so beautifully done"[/i]
Rattrapmax6
__/--\__
*****
Posts: 2577



WWW
« Reply #69 on: April 05, 2005, 08:55:10 PM »

:lol: He he, yeah, luckly I read Rels tuts a week later,.. Sohcahtoa? That sounds almost Native American...  :wink:

Talking of burnt in head,. Wait for FB and his OGL tuts and this what it be...

glColor3f 0.0,0.0,0.0
glVertex3f 0.0,0.0,0.0

Tranlate:
glColor3f R,G,B
glVertex3f X,Y,Z

He he, its alot like my CAD...  Cheesy ..

3D_
{Loads of stuff here to activate 3D face (Comp inserts this  :wink: )}
Begining vertex: x,y,z
Second Vertex: x,y,z
ect...

 :roll: Maybe I'll try another worm hole thing if I get the time.. Cheesy

Edit, Hay Xteraco, Try and see if you editors can covert to PNG.. They are the smallest of all of them...

1,400 kb BMP >>> 400 kb PNG  Cheesy

Good quality and very sharp... My whole main page of me site uses 'em!!..
Logged

Kevin (x.t.r.GRAPHICS)

xteraco
Ancient QBer
****
Posts: 450



WWW
« Reply #70 on: April 06, 2005, 11:11:08 AM »

i guess i said i would decide a winner.. i think all the entry's were great.. but for most visually stunning w/ fewest amount of code its a draw between rel's 9 line entry and Dr_Davenstein's blue warphole thingy... but the person w/ best comments is Rattrapmax6.... so he's the overall winner.. if i had to pick one..
Logged

url=http://www.random-seed.net][/url]
Mitth'raw'nuruodo
Ancient Guru
****
Posts: 515



WWW
« Reply #71 on: April 06, 2005, 05:00:36 PM »

Ya, well I owned you in Rattra's challenge

Rattra:
No.
png is the second LARGEST in size. But it looks exactly like a bmp sooo its the best.

jpg is the smallest
gif is bigger

^ both suck
Logged

i]"But...it was so beautifully done"[/i]
Rattrapmax6
__/--\__
*****
Posts: 2577



WWW
« Reply #72 on: April 06, 2005, 05:05:33 PM »

:Huh: Eh? I thought Rel took it,.. :lol: ,.. what was the score based on??

Um, not in my experements, PNG came out smaller than any jpg I crunched to.. :wink: You do know I'm on Portable Network Graphics right? What part of "Portable" signals biggest?? Have you used any b4? :Huh:
Logged

Kevin (x.t.r.GRAPHICS)

Mitth'raw'nuruodo
Ancient Guru
****
Posts: 515



WWW
« Reply #73 on: April 06, 2005, 05:10:43 PM »

:x ok....ummm...then Z!re....ummm....wrong? Shocked

But anyways did you look back there and see my post? 1 line! I took it baby!!11 Tongue
Logged

i]"But...it was so beautifully done"[/i]
anarky
Been there, done that
*****
Posts: 1231


The Blobworld Comics King


« Reply #74 on: April 20, 2005, 11:53:10 AM »

Quote from: "Rattrapmax6"
Smiley Worm hole, under 32, says 32, but you asked for comments, that added to the lines... This is in FreeBasic, hits 6600 FPS on mine, if it goes to fast for you to see it, you might need a minor delay... :wink: But, since it spirals, if it goes faster, it might just look better... Cheesy

Code:
'Set screen mode to 800*600 RGB
SCREEN 19, 32, 2, 1
'Set the center of the screen..
cntx = 400
cnty = 300
'Set are camera lens..
LENS = 256
'Start timer for frames per second
T! = TIMER
'Main LOOP
DO
   r = 40' Radius of worm hole
   z = z + 1 'Z cord of worm hole
   Rang! = ang * 3.14/180 'Degrees to Radians
   x! = r * COS(Rang!) 'Polar to Cartesain X
   y! = r * SIN(Rang!) 'Polar to Cartesain Y
   Dist = LENZ - z ' Find distance
   IF z > 256 THEN ' Check for max Z,..
      z = 0 'If true, reduce back to 0
   END IF 'End code block
   IF z > 0 AND z < 256 THEN 'Make sure z is still on screen
      nx! = cntx + (LENS * x! / Dist)'Find new X
      ny! = cnty - (LENS * y! / Dist)'Find new Y
   ELSE 'So we don't divide by 0
END IF 'End code block
PSET (nx!, ny!), RGB(0, 0, z) 'Place blue pixel
PSET (nx! + 1, ny! - 1), RGB(0, z, 0) 'Place green pixel
ang = (ang + 1) MOD 360 'Add angle, MOD keeps it from going over 360
F = F + 1 'Frame counter
LOOP UNTIL INKEY$ = CHR$(27)' LOOP until Esc is pressed
PRINT "Average FPS:"; F / (TIMER - T!)' Frames per second equation.
SLEEP 'Wait until key is pressed..


I think that's an incorrect count. I got 151,000 FPS. Strange. I didn't analyze the code at all, can't be bothered. Tongue
Logged

Screwing with your reality since 1998.
Pages: 1 ... 3 4 [5] 6
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!