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.

DarkBASIC Professional Discussion / - DBPro Coding Challenges -

Author
Message
BillR
21
Years of Service
User Offline
Joined: 19th Mar 2003
Location: United States
Posted: 17th Apr 2006 15:58 Edited at: 17th Apr 2006 16:10
Image Memblock Challenge Judging!
-----------------------------------------------

There were 15 entries, from 6 different people - Thanks to all who entered this challenge!
I really enjoyed seeing some of what can be done using image memblocks, as well as mesh memblocks.
But since this is an Image Memblock challenge, the mesh memblock routines will be tested and are a great help to the DBPro community, they won't be judged with the image memblock entries.
Also, any routine requiring and outside .jpg or .bmp file doesn't fit the challenge guidelines of "Copy & Paste" code, but they are also much appreciated for use in the DBPro community.

Segan - First to post code
1) RGB Fog/Light Spreading – first to post code, colors spread and interact the way colored spotlights would, cool effect!
I loved the soft foggy approaching edge of color, really nice. But, I only got 11 fps with my AMD 1800+ processor, a real CPU intensive routine.
Some optimization would go a long way in making this routine more usable. You had some good ideas about that, sorry school has you so busy.

Phaelax - 6 entries, you madman!
1) Fire-Plasma Column - Fun to play with, it was Cool!
2) Memblock Matrix - Nice! But I would have liked to see image memblock effects used here?
3) Spotlight - Surprisingly fast, Very Nice, I really liked this one alot!
4) Image Overlay - divide by zero error, didn't work for me. You forgot to init the screenwidth & screenheight variables, I added them and it worked.
5) Erase or Draw on Overlay - Really worked nicely, cool idea!
6) Fire2 - I like it, fire is so hard to simulate, also CPU intensive.
The Fire-Plasma Column was fun to play with, changing the texture size for the column, etc.
I also enjoyed the spotlight demo also, clever idea! Your Memblock Matrix is an interesting idea, saving the heightmap file as an image.
But, I would have loved to see you include a function where changes in the heightmap image would effect the matrix terrain.
So drawing in (modifying) an image memblock, could have altered the matrix terrain......a cool idea for the next version maybe.

Sven B - 6 entries, also a madman!
1) Blending Images together - nice.
2) Blending Images with a map - useful, I will have to think of a cool way to use this one.
3) Blur - worked well, I liked it. Selective blurring could also be possible with some modifications, might be interesting.
4) 3D Mesh Colorbox - colorful, a little hard to tell what I was looking at.
5) Fire - fire and blur memblock routines together, I like it, fire is so hard to simulate.
6) Streaking Dots - nice idea, really nice to watch, very CPU intensive.

Image All - Great job helping others, then you finally got an entry in, nice work!
1) Face Painting - writing colored pixels into memblocks from data statements, a simple routine and it worked well!
2) Mesh from Memblock - 4 polygon object, you were able to figure out creating an object from a memblock, clever work.
I can see this technique used in other coding challenges. It doesn't really count for this Image memblock challenge, but nicely done!! I liked this very much.

Coding Fodder - Bitmap functions, need to supply your own bitmap file.
1) Bitmap Manipulations - nice routines, will help the DBPro community, but you will need to supple your own bitmap to use/test these functions.

Kenmo - Posted code from Phaelax, on Kenmo's behalf. You need to supply your own jpeg file.
1) Image Altering functions - nice routines here also, will help the DBPro community, but you will need to supple your own jpeg image to use/test these functions.


I didn't get entries from Ric, RiiDii, Nicholas, who I thought would get some entries in.
I really wanted to see what their twisted.....no clever.....well sometimes,....unique approach to this challenge would produce......BUT THEY ALL CALLED IN SICK!!!.....So I'm docking each of you a days pay!.....hehehe...That will teach them.

Peter - You suggested this Image Memblock challenge.....dang, what happened to you, no entry?......You're Fired!........hehehe

The entries were very different, and there were so many of them, judging took HOURS!
So, now for the results……drum roll….

Honorable Mention


3rd Place


2nd Place


1st Place
Sven B
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 17th Apr 2006 20:06 Edited at: 17th Apr 2006 20:06
I can't wait till next challenge.

And ofcourse:
congratulations Phaelax!
Well judged Bill..

It's the programmer's life:
Have a problem, solve the problem, and have a new problem to solve.
BillR
21
Years of Service
User Offline
Joined: 19th Mar 2003
Location: United States
Posted: 18th Apr 2006 00:42
Sven B - Well Done, I wish I could have given you first place also!

I too look forward to the next challenge,
Darth Vader
19
Years of Service
User Offline
Joined: 10th May 2005
Location: Adelaide SA, I am the only DB user here!
Posted: 18th Apr 2006 05:29
Congrats everyone! Sorry I couldn't take part but a lot of things came up (especially with Easter)!!!

When in Trouble with anything visit here your number one stop for help
Milkman
18
Years of Service
User Offline
Joined: 30th Nov 2005
Location: United States
Posted: 18th Apr 2006 10:01
Congrats, Phaelax.

I resubmit my ideas for the challenge a third time:

a) 3d modeler with vertex manipulation
b) physics system




Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 18th Apr 2006 10:48
An idea I had for if I'd won was for a side on Biplane type game. Simple flight physics, but there are options in there for maybe cloud generation and so on.

BillR
21
Years of Service
User Offline
Joined: 19th Mar 2003
Location: United States
Posted: 18th Apr 2006 12:25 Edited at: 18th Apr 2006 13:10
What about a stick figure challenge?

Create a stick figure demo where your stick figure might fight another stick figure, run & jump, breakdance, gymnastics, playing with objects, jumping on objects, doing some stunts, etc. I have watched a few stick figure kung-fu little animations on the web, they look great!

We might see some fun and clever ideas from this.

Take a look at these.
http://www.newgrounds.com/collection/xiaoxiao.html
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 18th Apr 2006 23:58
Congrats all - and good job Bill on the judging. This one totally passed me by I'm afraid, as I was away for the Easter break with family. First challenge I've missed in ages - shame, as I really should get the hang of using memblocks!

Well done for winning Phaelax - and about time!!

p.s. I'll email him to wake him up so we can get on with the next challenge.

Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 19th Apr 2006 01:21
Quote: "Well done for winning Phaelax - and about time!!"


i second that! only been at this for what? about a year?

I'm off to ponder ideas for the next challenge


Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 19th Apr 2006 05:56 Edited at: 19th Apr 2006 06:01
Ok, I'm going to satisfy 2 people's tastes here.

Stiks n' Fiziks! (sticks and physics)

Part A
Make an animated stick figure. Graded on how fluid it moves with user controls.

Part B
This would be the physics part. What can the stickman do? Jump around and bounce off walls? Fight against other stickmen?

You can turn this into a game if you want, but will primarily be graded on how fluid the animation is and the extent of how involved the physics are.

This is intended to be a tough challenge, but hopefully fun. 2-3 weeks, depending on what people think.

Take a look at N, online flash game for possible ideas. (and fun)


Quote: "Take a look at these.
http://www.newgrounds.com/collection/xiaoxiao.html "

I actually have several versions of those I stuck on a video tape.


Darth Vader
19
Years of Service
User Offline
Joined: 10th May 2005
Location: Adelaide SA, I am the only DB user here!
Posted: 19th Apr 2006 15:05
Code snippet anyone?
I was going to suggest a level\world\map editing program but maybe next time!

When in Trouble with anything visit here your number one stop for help
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 19th Apr 2006 16:34
Hmmm ... this one sounds tricky! I'd say stick to the usual two weeks though - if not many people enter due to the difficulty level, then we don't want the challenge thread coming to a stand still for too long.

Think I might try a simple combat game. Just thinking about how to do this with no media is giving me a headache!

Scraggle
Moderator
21
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 19th Apr 2006 17:22
Sounds to me more like an animation challenge than a coding challenge


Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 19th Apr 2006 18:15
But producing an animation without any media is going to need some clever coding. I'm thinking along the lines of ragdoll physics.

Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 19th Apr 2006 18:40
some sort of skeletal/bone system. verlet integration anyone?


RiiDii
19
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 19th Apr 2006 18:47 Edited at: 24th Apr 2006 20:11
Just talking theory here: One way to do this would be maybe to make a 3d model with the desired number of limbs. The limbs are something like 0.01x0.01x0.01 size hidden triangles offset and linked appropriately. Then place a single hidden triangle object at each of the limb positions to get the screen coordinates. Lock the pixels. draw the desired lines between the screen coordinates, and unlock the pixels. Of course, math would be faster processing, but this would work, and probably be more than fast enough for a few stick figures.


Open MMORPG: It's your game!
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 19th Apr 2006 19:53
here's a good article on character physics using vertlet integration.
Should be a big a help I think, though I haven't gotten the contraints to work yet.
http://www.gamasutra.com/resource_guide/20030121/jacobson_01.shtml


Coding Fodder
21
Years of Service
User Offline
Joined: 25th Sep 2003
Location: Somewhere in my cerebralcortex
Posted: 20th Apr 2006 05:02
Stick men, cool

Something really catchy that makes people stop and think about the meaning of life and say to themselves "My but thats clever"
Sven B
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 20th Apr 2006 20:18
Well, I did something stickman-like thing in the person shooter challenge.

Maybe now, I'll have a go in 2D...

It's the programmer's life:
Have a problem, solve the problem, and have a new problem to solve.
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 21st Apr 2006 01:31
The more I think about this, the tougher it becomes.


Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 21st Apr 2006 10:53
Lol! Says the challenge setter
I had a go last night by adding long boxes as limbs and linking them up to form a kind of skelletal structure. Does anyone know of a limb limit imposed by DBP? Its got to a point where I added the Left Shin and the previously added Right Thigh just dissapeared!

The end is near
19
Years of Service
User Offline
Joined: 19th Jun 2005
Location: USA
Posted: 22nd Apr 2006 00:31 Edited at: 22nd Apr 2006 00:32
it's 5, i think. i had the same problem...
The end is near
19
Years of Service
User Offline
Joined: 19th Jun 2005
Location: USA
Posted: 22nd Apr 2006 01:02 Edited at: 22nd Apr 2006 01:02
here's a pic of my game...
you can hide behind the walls and you have to kill the enemys.
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 22nd Apr 2006 02:45
Hmm I think it was when I added the 8th... But you could be right. 8 seems a normal limit (lights, etc)... Bugger!

Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 22nd Apr 2006 03:07
I made an object with 4096 limbs so thats not it. I have no idea what the limit is though. I know it is 65535 verts per limb. no idea on the actual limb limit.

Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 22nd Apr 2006 07:57
Oh look, a theory flying out the window... And a paving slab with something written on it just came IN through the window... I think it says "Square 1"...

BillR
21
Years of Service
User Offline
Joined: 19th Mar 2003
Location: United States
Posted: 22nd Apr 2006 10:40
@Nicholas-I know how you feel, this is a hard challenge.
I still am working on the....what to do, and how to do it!
I still hope there will be some clever programs though.
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 22nd Apr 2006 18:44
I've got an idea on what to do and how to do it, but I cant figure out a bug in my code - then again I was programming it while tired...

The end is near
19
Years of Service
User Offline
Joined: 19th Jun 2005
Location: USA
Posted: 23rd Apr 2006 05:38
thinking aloud
what if its based on computer specs???
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 23rd Apr 2006 12:31
I doubt it - I have an Athlon X2 4400+, 7800GTX 256Mb & !Gb RAM. I cant see that spec limiting it.

I think its much more likely to be my programming

Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 23rd Apr 2006 14:18 Edited at: 23rd Apr 2006 14:28
I'm thinking of making a dedicated DB Challenges site based around the thingymajig site I have now. Any suggestions for a domain?
www.darkbasicchallenges.com/.co.uk are avaiable but they're a little long.

Any idea's?

EDIT: Can all suggestions go to the dedicate thread here

Cheers guys

First Person Shooters
18
Years of Service
User Offline
Joined: 23rd Apr 2006
Location: UK
Posted: 23rd Apr 2006 19:34
hey im stuck with the tutorial the FPS one, i get an error on line 92(the one starting with "if wrapvalue" i get an error saying "error no brackets around perameters" i am stuvck ive checked me code and its correct, i even copied and pasted the default code and still didnt work.

Help me!!!!!
The end is near
19
Years of Service
User Offline
Joined: 19th Jun 2005
Location: USA
Posted: 23rd Apr 2006 20:30 Edited at: 23rd Apr 2006 20:31
what are you writing FPS ?
yrotate object 1,wrapvalue object angle y 1 + 1
needs to be
yrotate object 1,wrapvalue (object angle y(1)+1)
that oughta do it.
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 23rd Apr 2006 20:37
how can you tell that without seeing his code?! And is this even Challenge related?

Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 23rd Apr 2006 20:47
No offense, but why are you posting this in the challenges thread? I think the FPS challenge ended like 3 months ago.


First Person Shooters
18
Years of Service
User Offline
Joined: 23rd Apr 2006
Location: UK
Posted: 23rd Apr 2006 20:48
that code is wrong i am doing the tutorial, the code you gave me is wrong, it doesnt state Y it uses the X axis.

im sure you have done this tutorial and if it works can you please upload a working copy of the code so i can use it, thank you
Coding Fodder
21
Years of Service
User Offline
Joined: 25th Sep 2003
Location: Somewhere in my cerebralcortex
Posted: 23rd Apr 2006 22:36
My stick man WIP, feel free to add limb rotation commands. Now I just need a premise and some animation sequences.


Something really catchy that makes people stop and think about the meaning of life and say to themselves "My but thats clever"
Benjamin
22
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 24th Apr 2006 02:35
Quote: "And a paving slab with something written on it just came IN through the window... I think it says "Square 1"..."

Oops sorry, wrong house.

Tempest - P2P UDP Multiplayer Plugin (DBP/DBCe) - 71%
Download the free version
Coding Fodder
21
Years of Service
User Offline
Joined: 25th Sep 2003
Location: Somewhere in my cerebralcortex
Posted: 24th Apr 2006 03:03 Edited at: 24th Apr 2006 04:16
I am having a small amount of fun with this one. I can now set keyframes with linear interpolation between. Animating by typing in values for scale, x angle, y angle, and z angle for 19 limbs is going to be a bit taxing. I may need to make an animating tool.


Other than some wonderful math it is not much to look at yet

[edit] oops I posted broken code. this should work much better. It is a simple walking animation. The keyframes can be seen at the very end of the code.

Something really catchy that makes people stop and think about the meaning of life and say to themselves "My but thats clever"
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 25th Apr 2006 02:43
neato!


Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 26th Apr 2006 00:40
Looking good CF - think I better get started on this challenge, I've a lot of catching up to do!

blood scent
18
Years of Service
User Offline
Joined: 25th Apr 2006
Location:
Posted: 26th Apr 2006 01:36
i wanted to check me avatar
blood scent
18
Years of Service
User Offline
Joined: 25th Apr 2006
Location:
Posted: 26th Apr 2006 01:36
k
blood scent
18
Years of Service
User Offline
Joined: 25th Apr 2006
Location:
Posted: 26th Apr 2006 01:37
k
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 27th Apr 2006 04:36 Edited at: 27th Apr 2006 04:38
This isn't the place to check an avatar, especially a blank one. There's also an edit button so you dont have to spam 1-character long messages.


Anyone remember who wrote the TrenchRunner code? I think I remember it being a part of one of these challenges.

Doh, nvm. Says CPU right in the source code. :-p
Since it was a good bit of lengthy 4k lines of code, I've been using it as a sort of stress test for my IDE. My IDE is cutting out line number after it hits 4259, and I have no clue why.


Coding Fodder
21
Years of Service
User Offline
Joined: 25th Sep 2003
Location: Somewhere in my cerebralcortex
Posted: 27th Apr 2006 04:54 Edited at: 27th Apr 2006 04:55
NEWS *MAJOR CODE UPDATE* ok not really. this is the form my code has been in for the past few days. I have not had much time to work on it. but it does give a little taste of what will be possible shortly. When running press "A" as in (A)nimation editor. So far it just lets you look at the Key frames already set and the interpolation between them. But once I get a nice interface to select limbs the three slider bars on the right will position them. More Power To The "Line" command!!



~Fodder

Who was that guy? he joined yesturday and today I am reaching for my large trout....

Something really catchy that makes people stop and think about the meaning of life and say to themselves "My but thats clever"
The end is near
19
Years of Service
User Offline
Joined: 19th Jun 2005
Location: USA
Posted: 28th Apr 2006 02:34
[whistle]wow!!![/whistle]

stargate sg-1 the one show that never gets old

Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 28th Apr 2006 10:16
Pretty cool. I sure someone else enters besides you.


Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 28th Apr 2006 11:14
Thats really nice!

One little "hack" I have learned is if you make a triangle with 2 of its points on the same coord and then wireframe it. You get a line

BillR
21
Years of Service
User Offline
Joined: 19th Mar 2003
Location: United States
Posted: 29th Apr 2006 06:55
I'm playing with an idea for this challenge, but have been so busy I don't have much to show yet, hopefully in the next few days.

Login to post a reply

Server time is: 2024-11-24 21:04:01
Your offset time is: 2024-11-24 21:04:01