Dark Bit Factory & Gravity

GENERAL => Challenges & Competitions => Topic started by: Shockwave on December 03, 2011

Title: TINYC5 CHALLENGE!
Post by: Shockwave on December 03, 2011

 :updance: TinyC5 Challenge 2011  :updance:


This time the challenge is a bit different. Instead of focussing on a certain theme - we focus on a technology. The TinyC5 Challenge is about creating a demoscene related effect using Benny's excellent TinyC5 library.  To help you get started Benny has  provided a small template which offers you the basic setup - this way you can fully concentrate on pushing those pixels! :D
 
Of course feel free to create your own setup if you like!




TinyC5 is a library that will enable you to do TinyPTC style programming in modern web browsers!  Benny has kindly linked the project on Google Code into DBF and  the best entries are going to be packaged with the TinyC5 library.  It's a really cool thing to use, it's really new so nobody should have a huge advantage!


Inspiration


TinyC5 is a framebuffer graphics library inspired by TinyPTC/PixelToaster - it is fitted best for pixelbased effects. Have a look at the following examples if you are looking for inspiration:

Vertical Rasters

[youtube]VLWwxlNB4hw[/youtube]

Realtime Plasma

[youtube]dcS12sDIhIQ[/youtube]

Tunnel / Wormhole

[youtube]yQ8xnoG8tLg[/youtube]

Rotozoom

[youtube]Y74bp3K7P4E[/youtube]

Fire

[youtube]Q2q0ZIO-_4k[/youtube]


Maybe as it's Christmas soon, you can even make something festive!

[youtube]V4z2HGHxWnk[/youtube]




Rules



Resources

Some useful things to help you get started;

Latest version of TinyC5 (http://www.dbfinteractive.com/forum/index.php?topic=5397.0)
Challenge template (http://www.dbfinteractive.com/adminteam/benny/DBFChallengeTemplate.zip)
How to get started with TinyC5-Tutorial (http://www.dbfinteractive.com/forum/index.php?topic=5455.0)
Javascript Mod Music Player (http://www.photonstorm.com/flod)


Prizes



Good luck everyone!
Title: Re: TINYC5 CHALLENGE!
Post by: Raizor on December 03, 2011
What an excellent idea for a challenge :)

Hopefully it will provide some good TinyC5 examples too!
Title: Re: TINYC5 CHALLENGE!
Post by: Shockwave on December 03, 2011
What an excellent idea for a challenge :)

Hopefully it will provide some good TinyC5 examples too!

Yeah, hopefully there will be lots of participants because it's a chance to learn something new and to support Benny who is a really great guy who's supported DBF for years. :)
Title: Re: TINYC5 CHALLENGE!
Post by: Shockwave on December 03, 2011
Also I forgot to put in the rules that all entries will get 2 Karma.
Title: Re: TINYC5 CHALLENGE!
Post by: efecto on December 03, 2011
This could be fun.  :D
Better brush up my javascript then  :-[
Title: Re: TINYC5 CHALLENGE!
Post by: benny! on December 04, 2011
Yeah, I am excited and feel really honored that DBF is doing this challenge. Hope this challenge is fun for everyone.

If anyone has any javascript related questions, please post them in the coding boards, I will do my best to help you if I can.
Title: Re: TINYC5 CHALLENGE!
Post by: Jim on December 04, 2011
JavaScript is a great language, not just for web but also for enterprise applications like massively parrallel document storage systems CouchDb and Hadoop that support Facebook and Google. Let's use it for pixel pushing too!
I code with it daily and will try to help Benny with any questions.

Jim
Title: Re: TINYC5 CHALLENGE!
Post by: Kirl on December 04, 2011
Cool challenge, should yield even more great examples for benny's lib!  :clap:

Hope I'll be able to come up with something cool! :)
Title: Re: TINYC5 CHALLENGE!
Post by: combatking0 on December 04, 2011
Javascript support has certainly come a long way since the JavaScript / Pi / Pie challenge a few years back.

Let battle commence!
Title: Re: TINYC5 CHALLENGE!
Post by: jace_stknights on December 05, 2011
Great!!! I'm making my best to produce something ;)

 :clap:
Title: Re: TINYC5 CHALLENGE!
Post by: jace_stknights on December 05, 2011
hmmm okay, I would had use CODEF within (not for the main effect) but the rules are the rules!!!  ;D

More work to implement my text effects... :whack:
Title: Template Problem?!?
Post by: jace_stknights on December 05, 2011
Re-Re-Hi,

got some problems with the template on my PC. If I use the challenge one, the tinyC5 effect lacks and runs nearly 3 frame :P.
If I delete the radius or shadow (works with each) css def (the lines in bold):
Code: [Select]
canvas {
    border: 8px solid #f1f1f1;
[b]    -moz-border-radius: 10px;
    -webkit-border-radius: 10px; [/b]
    border-radius: 10px;

[b]    -moz-box-shadow: 10px 10px 15px #000;
    -webkit-box-shadow: 10px 10px 15px #000; [/b]
    box-shadow: 10px 10px 15px #000;
    outline: 0;
}

everything runs fine?!?! I'm actually using chrome 15.0.874.121 m...

someone got an idea?
Title: Re: TINYC5 CHALLENGE!
Post by: benny! on December 05, 2011
Hmm ... since the shadow effect is bind the canvas itself it might effect the overall canvas performance, which would be of course bad.

I will investigate this. Thanks for pointing this out.
Title: Re: TINYC5 CHALLENGE!
Post by: jace_stknights on December 05, 2011
Hmm ... since the shadow effect is bind the canvas itself it might effect the overall canvas performance, which would be of course bad.

I will investigate this. Thanks for pointing this out.
Thanx to you :cheers:
Title: Re: TINYC5 CHALLENGE!
Post by: benny! on December 05, 2011
Allight, I tested it using a framecounter - and you are absolutely right. The shaded border slowed down the performance a lot. I removed the shadowed border form the original template. It's the FX which should have all the processor power and not the shaded border.

Thanks again Jace ... good call!
Title: Re: TINYC5 CHALLENGE!
Post by: jace_stknights on December 05, 2011
It's the FX which should have all the processor power and not the shaded border.

Yep, I think so  ;D

Okay, back to my code for this challenge  ;) :updance:
Title: Re: TINYC5 CHALLENGE!
Post by: benny! on December 05, 2011
...
Okay, back to my code for this challenge  ;) :updance:

Yeah ... cool!
Title: Re: TINYC5 CHALLENGE!
Post by: combatking0 on December 05, 2011
I was stuck for an idea for this, but:

TinyC5 + the engine I've been using to make a posable person in AS / JS + the light-sourcing technique used to make YABASIC cubes that bit more realistic + using something far from human shaped as my inspiration + a little inverse kinematics = a demo which may give me a chance of winning 3rd.

Oh yes. Now I just need to find a light-sourced YABASIC cube.

(edit)
I have found Shockwave's WowDemo (http://members.iinet.net.au/~jimshaw/Yabasic/yabres/demos/shockwave/wowdemo.txt). That should give me a good starting point for the light-sourcing bit. Thanks Shockwave.
Title: Re: TINYC5 CHALLENGE!
Post by: benny! on December 06, 2011
Yeah, glad you find Shocky's old code. Looking forward to see your entry! Good luck with it!
Title: Re: TINYC5 CHALLENGE!
Post by: combatking0 on December 15, 2011
Mine's nearly finished - I just need to finish the AI code, the scroller text and add the music.
Title: Re: TINYC5 CHALLENGE!
Post by: benny! on December 15, 2011
Mine's nearly finished - I just need to finish the AI code, the scroller text and add the music.

Woah .. sounds like a big one! Cool - looking forward to see it!
Title: Re: TINYC5 CHALLENGE!
Post by: jace_stknights on December 15, 2011
Mine too... in fact it is finished since one week :D But I'm adding new effects and removing some... :P
Title: Re: TINYC5 CHALLENGE!
Post by: Kirl on December 15, 2011
Sounds awesome, really curious to see what you all come up with!

I only managed to get my main effect working nicely, so I'm halfway there. Probably won't be impressing anybody here with my cheesy oldeschool effect, but I did impress myself, which is good! :)
Title: Re: TINYC5 CHALLENGE!
Post by: Raizor on December 15, 2011
Really looking forward to seeing all these. I'm sure they'll be really cool :)
Title: Re: TINYC5 CHALLENGE!
Post by: jace_stknights on December 16, 2011
I only managed to get my main effect working nicely, so I'm halfway there. Probably won't be impressing anybody here with my cheesy oldeschool effect, but I did impress myself, which is good! :)

hehe, will make a totally oldschool prod also... in fact I can't make anything else  ;D
Title: Re: TINYC5 CHALLENGE!
Post by: benny! on December 16, 2011
Really looking forward to seeing all these. I'm sure they'll be really cool :)

I totally second that ;-)

I only managed to get my main effect working nicely, so I'm halfway there. Probably won't be impressing anybody here with my cheesy oldeschool effect, but I did impress myself, which is good! :)

hehe, will make a totally oldschool prod also... in fact I can't make anything else  ;D

Oldschool rulez!!! (http://www.bennyschuetz.com/2011/slidely-distorted/) ;-)
Title: Re: TINYC5 CHALLENGE!
Post by: combatking0 on December 16, 2011
I'm going to have to abandon the light sourcing effect, as it is slowing down the rest of the entry.

The wireframe should be an eye-catcher.
Title: Re: TINYC5 CHALLENGE!
Post by: benny! on December 16, 2011
I'm going to have to abandon the light sourcing effect, as it is slowing down the rest of the entry.
Hmm ... maybe you could post some pseudo code and we can think of any way to optimize it. Or just keep a backup, then we can try to optimize it after the comp

The wireframe should be an eye-catcher.
I am a sucker for wireframes. Already looking forward to see it.
Title: Re: TINYC5 CHALLENGE!
Post by: combatking0 on December 16, 2011
The slowest bit was my attempt at writing a "fill triangle" function is the worst culprit in the slowdown.

I may have another go at it in January.

For now, I just need to add the music.
Title: Re: TINYC5 CHALLENGE!
Post by: jace_stknights on December 17, 2011
Yep, got the same problem here: some of my effects are really toooooo slow. For examples, I wanted to put a scrolltext in the bottom for all the demo, like in oldschool ones. But for the plasma and tunnel effect, some gasp appears, and the scroll stops being smooth...

My wireline part was using a "blur" effect but was also too slow. I used some oldtime trick like buffering the old coords in several arrays, but at the end, it was really not so good for me. So I managed to change it, it will be participating effect :D

Hooo just a question, I made at first a improved version of the tutorial effect, should I included it?
Title: Re: TINYC5 CHALLENGE!
Post by: benny! on December 17, 2011
...
Hooo just a question, I made at first a improved version of the tutorial effect, should I included it?

Yes, please. That would be great. If you post it somewhere,  I will update the tutorial.
Title: Re: TINYC5 CHALLENGE!
Post by: Shockwave on December 24, 2011
fyi -

Tomorrow I will be at my parents house with no internet and I think that we'll all be having some Christmas Cheer so I'm going to try and open the voting on the 26th December if I'm sober enough!

The deadline of midnight tonight for new entries is unaffected though :)
Title: Re: TINYC5 CHALLENGE!
Post by: jace_stknights on December 25, 2011
fyi -

Tomorrow I will be at my parents house with no internet and I think that we'll all be having some Christmas Cheer so I'm going to try and open the voting on the 26th December if I'm sober enough!
Hahahah  :clap: :clap: :clap:  :xmas:
Title: Re: TINYC5 CHALLENGE!
Post by: benny! on December 25, 2011
Shocky, take your time and enjoy xmas, mate! Thanks again for holding this competition. It's much appreciated.

Of course I want to thank everyone who entered this competition. I know that the time before xmas is stressy for everyone and I really did not expect to see seven entries. I was really amazed what you came all up with. The quality of the entries totally rocks (rembering its just javascript on a pixel-by-pixel basis)

Personally, I really love the fact that all entries feature purely oldschool effects - exactly what I had in mind when I started TinyC5. In addition, I am really happy to see that even people who havent used Javascript before created cool effects using the library. Also, thanks to all the great constructive feedback - there are some stuff on my todo list now to improve the lib and make it better.

So, again ... THANKS FOR ALL YOUR SUPPORT !!!
Title: Re: TINYC5 CHALLENGE!
Post by: jace_stknights on December 25, 2011
Thank you for bringing us TinyC5!!!  :clap: :clap: :clap: :clap: :clap: :clap: :clap: :clap:

It was a really pleasure for me!!!
Title: Re: TINYC5 CHALLENGE!
Post by: Kirl on December 25, 2011
Yep ditto that! Really fun and rewarding challenge for me once again as well, and it was the tinyC5 lib that got me to consider plasma again, really happy I nailed it. :)

It's awesome how these challenges help me learn new stuff by providing the encouragement, inspiration and especially real good fun and competition. This is in fact why I wanted to make games; to try and make education more interesting. I think the DBF challenges already achieve this within the field of programming!

Another fine challenge with a good number of interesting entries! Well done all!  :cheers:
Title: Re: TINYC5 CHALLENGE!
Post by: Shockwave on December 26, 2011
Considering that this was limited to just one language that hardly anyone here used, seven entries is a fantastic result!  Thanks to everyone who entered this challenge.. the next one will not be language specific, but you'll be able to use html 5 and tinyc5 if you like!
Title: Re: TINYC5 CHALLENGE!
Post by: combatking0 on December 28, 2011
It shows the versatility of those who hadn't used JS before, and how they were able to port their knowledge of other languages into the new language.

I've been using JS for years, but that wasn't an advantage. I reckon the winner will be someone with the ability to convert their great skill into JS. That's just my opinion - reality may differ.