Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

The 20 Line Challenge / Accidental Flock Pattern Simulation Software

Author
Message
blanky
19
Years of Service
User Offline
Joined: 3rd Aug 2004
Location: ./
Posted: 19th Dec 2004 23:28
Yup, accidental flock pattern simulation software.

I *WAS* trying to create a piece of code that made loads of triangles fall to the ground to look like glass shattering, but I typed something wrong and they started flying around, so I put in some more random bits of rotate objects' 'n' stuff, and voila!

(Note: It's actually 17 lines, but I have 2 comments and xrotate object, yrotate object and zrotate object rather than just rotate object.)

(Comment the first xrotate line and uncomment the second xrotate line to get another nice pattern. )



Another copy of the code, exactly the same, through the 'Source' button.

Bizarrely, this actually works quite well when being played whilst listening to Rammstein's 'Nebel' (off the 'Mutter' album).

blanky
19
Years of Service
User Offline
Joined: 3rd Aug 2004
Location: ./
Posted: 21st Dec 2004 00:35
Plz? Anyone?

Comments? Good, decent, amazing, crappy - what do you think of it?

JerBil
19
Years of Service
User Offline
Joined: 8th May 2004
Location: Somewhere along the Z axis...
Posted: 21st Dec 2004 00:53 Edited at: 21st Dec 2004 01:02
Well, it looks pretty neat, Blanky186. I changed the lighting some, though. That red is cool, but staring at it a long time is weird...
Setting all the objects to "emiissive" you can make 'em any color you want, and the light is turned off, too



Oh yeah, try this:


Ok, so it a little over 20 lines, now.
Better combine a couple.


-JerBil
mm0zct
20
Years of Service
User Offline
Joined: 18th Nov 2003
Location: scotland-uk
Posted: 26th Dec 2004 21:57 Edited at: 26th Dec 2004 22:01
@jerbil:there's typo in you code, it should read


here's another version, i just used jerbils idea and expanded it a bit


http://www.larinar.tk
AMD athlon 64 3000+, 512mb ddr400, abit kv8, 120gb hdd, gigabit lan, ati radeom 9800se 128mb.
BaZko
19
Years of Service
User Offline
Joined: 24th Sep 2004
Location:
Posted: 27th Dec 2004 03:22 Edited at: 27th Dec 2004 03:24
Amazing
You just gave me an idea

Team Dark Knights:
http://www.teamdarkknights.com
mr dr
19
Years of Service
User Offline
Joined: 14th Jun 2004
Location: Minnesota USA
Posted: 28th Dec 2004 09:17
that makes a wonderful screensaver!
try replacing the triangles with other objects like buildings!

On SSC Halo CTF as:
QuothTheRaven
21
Years of Service
User Offline
Joined: 2nd Oct 2002
Location: United States
Posted: 28th Dec 2004 14:05 Edited at: 28th Dec 2004 14:10
Tweaked further

20 lines exactly. Most commands on one line: 4. Total lines if seperated: 28. Watch closely, and be amazed at the smooth color fades.


Edit: For even MORE fun:


Pricey
21
Years of Service
User Offline
Joined: 22nd Feb 2003
Location:
Posted: 28th Dec 2004 18:31
PRETTY!

:: 1.8 gHZ AMD Duron :: 256 MB Ram :: 32 MB SiS Graphics ::
Nicholas Thompson
19
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 28th Dec 2004 18:44
Screeny? I'm at work and we barely have 2D Capable card (windows thinks they're VGA ) let alone 3D cards!!

00bk
19
Years of Service
User Offline
Joined: 13th Jan 2005
Location: Digging thru the earth to get to china
Posted: 20th Feb 2005 07:12
Way cool... I want to make it my screensaver but I don't know how - I'm new to DBPro and I tried putting in

at the bottom. Doesn't work.


the apocalypse is coming!
StepTiger
19
Years of Service
User Offline
Joined: 18th Feb 2005
Location:
Posted: 20th Feb 2005 23:17
Hi! Nice program but it is 22 lines!

Just do it that way:


blanky
19
Years of Service
User Offline
Joined: 3rd Aug 2004
Location: ./
Posted: 24th Feb 2005 01:40
Shut up, and READ.

Quote: "(Note: It's actually 17 lines, but I have 2 comments and xrotate object, yrotate object and zrotate object rather than just rotate object.)"


Mr Blanky - This Time, It's Personal
blanky
19
Years of Service
User Offline
Joined: 3rd Aug 2004
Location: ./
Posted: 24th Feb 2005 01:44
And thanks for the nice comments, guys - I haven't visited this thread for ages, because I thought it'd just gone off the page, and I don't have set object emissive in DBC

Sorry if I was a bit harsh, StepTiger, but I don't like people telling me what to do if I think they won't even understand the code (based on your 20-line posting, I think. 3 word string concentation).

Mr Blanky - This Time, It's Personal
Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 24th Feb 2005 02:49
Quote: "at the bottom. Doesn't work."

Thats because your checking to see if one of the movements is equal to 1. You should use:




"Lets migrate like bricks" - Me
Wheeler 989
18
Years of Service
User Offline
Joined: 28th Apr 2005
Location:
Posted: 28th Apr 2005 15:00
I changed the code around a bit and made it easier to change the amount of objects, changed the camera and object rotation a little, made the triangles into spheres and gave it a rainbow effect. I also added in mouse move for easy setup as a screensaver.

Wheeler 989
18
Years of Service
User Offline
Joined: 28th Apr 2005
Location:
Posted: 28th Apr 2005 15:57
I added some more stuff because the balls were getting away from the camera, enjoy! Now includes textures lighting and variable sizes

Login to post a reply

Server time is: 2024-04-20 07:19:30
Your offset time is: 2024-04-20 07:19:30