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 / plasma cube

Author
Message
deckard
21
Years of Service
User Offline
Joined: 11th Apr 2003
Location:
Posted: 10th Nov 2004 20:33
DarkBasic 1.13 version



DB Pro version

Ianhfar
20
Years of Service
User Offline
Joined: 8th Jul 2004
Location: UK
Posted: 10th Nov 2004 21:40
Quite a neat effect, I removed the syncrate of 50, just for fun
Indian Homie G
20
Years of Service
User Offline
Joined: 23rd Jan 2004
Location: San Jose, CA
Posted: 11th Nov 2004 10:15
wow! very cool

AMD Athlon XP 3000+, S3 Deltachrome s8, 512 PC3200 RAM, 160 GB HD
MikeS
Retired Moderator
21
Years of Service
User Offline
Joined: 2nd Dec 2002
Location: United States
Posted: 13th Nov 2004 04:46
Very nice!



A book? I hate book. Book is stupid.
(Formerly known as Yellow)
Edizzle
20
Years of Service
User Offline
Joined: 22nd Aug 2004
Location:
Posted: 13th Nov 2004 06:23
i like umz

http://edizzle.100free.com
1tg46
20
Years of Service
User Offline
Joined: 1st Feb 2004
Location: I dont know!
Posted: 13th Nov 2004 23:30
cooooooooooooooooooooooooooooooooooooooool


Click the sig
Final Epsilon
20
Years of Service
User Offline
Joined: 26th Jan 2004
Location: CA, USA
Posted: 14th Nov 2004 03:35
me likes!!
Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 14th Nov 2004 07:04
I ran it on DBC, froze up my pc and had to reboot, losing ~50 lines of code from my other program I know I should have saved, learned my lesson there.... I'm very unhappy with you....

Song of the whenever i feel like updating it....
Man in a Dress, by Stew
deckard
21
Years of Service
User Offline
Joined: 11th Apr 2003
Location:
Posted: 15th Nov 2004 16:37
This program only calculatetes a kind of sinus function
and writes results to sit() array. Then the program calculates
dot colors in memblock, converts memblock to image and
textures cube by this image. I tested both versions on
DB 1.13 and DBPro (don't remember version).

I found one problem in DB 1.13: TEXTURE OBJECT command
did not worked here as expected. That's why I delete
cube in main loop and then I create cube again.
But I don't think that I can crash computer by this simple
program anyway.
IBOL
Retired Moderator
20
Years of Service
User Offline
Joined: 30th Mar 2004
Location: @IBOL17
Posted: 17th Nov 2004 01:31
holy sit!
sit(sit((sit(2*i)+sit(3*j)+sit(k)) and 255))
i can't possibly wrap my head around that.
bob

Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 17th Nov 2004 08:28
didn't notice that! What the hell is "sit"? Lol..

deckard
21
Years of Service
User Offline
Joined: 11th Apr 2003
Location:
Posted: 17th Nov 2004 18:37
SIT is a precalculated sinus table of 256 elements.
sit(i)=int(127.0*(1.0+sin(i*360.0/256.0)))

The idea of this table is that argument lies in area 0-255
and result sit(arg) also lies in 0-255
This way we can create numerous fun working functions.
And in any case we stay in area 0-255, and then we use
a result as red, green and blue components of color.

sit is using here only as variable name and has nothing common
with illiterate words of any human language
Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 17th Nov 2004 20:55
Didnt exaclty crash compiler, but just went INSANELY SLOW. and i didnt even get to see it really...

Song of the whenever i feel like updating it....
Man in a Dress, by Stew
geecee3
20
Years of Service
User Offline
Joined: 25th Feb 2004
Location: edinburgh.scotland.
Posted: 30th Nov 2004 19:04
I had a play around, and now i have a much better understanding of memblocks. in the image memblock, i take it that every fourth byte represents the alpha value of teh pixel. mabey i'm wrong though. The math was way beyond me!!! but it is one of the best sub 20 line programs i have ever seen. very well done m8.

regards, geecee3.

PS. this would be even better if applied to a pre made texture, only effecting the black areas or any other key colour. these mem block thingies really rock!!
Overdroid
22
Years of Service
User Offline
Joined: 22nd Sep 2002
Location:
Posted: 2nd Dec 2004 03:53
Hmmm. I get an error.
5105 - memblock position out of range.

At this line:
write memblock byte 1,p,r:p=p+1:write memblock byte 1,p,g:p=p+1:write memblock byte 1,p,b:p=p+2

Maybe I'll restart and retry.

"If you want an audience, start a fight."
- Gaelic Proverb
Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 2nd Dec 2004 05:44
Your probably trying to write to an area that doesn't exist.

Raven: That said, I DO say 'that said' a lot. 'Nuf said.
Three Score
20
Years of Service
User Offline
Joined: 18th Jun 2004
Location: behind you
Posted: 5th Dec 2004 00:35
sweeeeeeeeto
this is cool i also removed sync rate and it looked awesomer(if that is a word) yea thats a lot fo sits

http://free-space.myftp.org for free ftp
website hosting and e-mail 60mb for ftp/webste 70mb for e-mail
ALPHA ZERO PRODUCTIONS
21
Years of Service
User Offline
Joined: 28th Sep 2003
Location: Mom ! I forgot where we live !
Posted: 5th Jan 2005 13:13
screenshot please

NEW WEBSITE ONLINE (best viewed with FireFox)
XboxLive Gamertag: AZP
Plazmeh
19
Years of Service
User Offline
Joined: 7th Jan 2005
Location:
Posted: 8th Jan 2005 21:48
Whoa......... I thought disco was dead............. *dizzy* Pretty colors.....

Login to post a reply

Server time is: 2024-11-24 02:49:51
Your offset time is: 2024-11-24 02:49:51