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
Keaz
22
Years of Service
User Offline
Joined: 22nd Sep 2003
Location: Somewhere in south Texas
Posted: 7th Jul 2005 05:09
But NASA's less than an hour from me (well when I visit my dad). But the cool graphics thing I like... Time to try out the new 5.8 Shader commands..

Breaking Stuff=Fun!,Bug Testing<>Fun!, Bug Testing=Breaking Stuff, so...
Bug Testing=Fun! Hmmmm....
DOES NOT COMPUTE! SYSTEM MALFUNTION!
RiiDii
21
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 7th Jul 2005 05:16
Now I know we do things backwards here in the U.S., like dates and what-not, but isn't that like a year from now?

Quote: "Wednesday 20th June"


"Droids don't rip your arms off when they lose." -H. Solo
REALITY II
Ric
21
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 7th Jul 2005 06:33
Doh! I always seem to manage to screw up the date. Edited to read correctly.

RiiDii
21
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 7th Jul 2005 08:24
So now I should edit my post. Then you should edit your second post, then I'll have to edit this post, then..?? Oh never mind.

"Droids don't rip your arms off when they lose." -H. Solo
REALITY II
Flindiana Jones
21
Years of Service
User Offline
Joined: 3rd Nov 2004
Location: Bosnian Power
Posted: 8th Jul 2005 02:42
What do you mean by "Space Tech Demo" exactly?

RiiDii
21
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 8th Jul 2005 03:45 Edited at: 8th Jul 2005 03:53
Quote: "What do you mean by "Space Tech Demo" exactly?"

Read up about 10 posts.

Basically, just a graphics demo set in space. Can be fantasy, fiction, whatever. Just wanted this one to be fun - so no worries about physics, collisions, ai, or anything like that. Here's what I will be looking for...

1) In Space
2) 3D
3) User can move around the scene, or the scene is moved around - like a tour.
4) Cool graphics / effects.
5) Fun.

Edit: Heard from Nick. Anyone know if Ric is okay?

"Droids don't rip your arms off when they lose." -H. Solo
REALITY II
Nicholas Thompson
21
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 8th Jul 2005 05:18 Edited at: 8th Jul 2005 05:20
Here is my work for this one...



Scroll the mouse wheel to change the "warp speed".. Screeny also attached.



My Website:
Keaz
22
Years of Service
User Offline
Joined: 22nd Sep 2003
Location: Somewhere in south Texas
Posted: 8th Jul 2005 05:54
Nice, I thought a space demo was going to be difficult considering the no media requirement. (ever thought about lifting that one, maybe a media size limit)

Breaking Stuff=Fun!,Bug Testing<>Fun!, Bug Testing=Breaking Stuff, so...
Bug Testing=Fun! Hmmmm....
DOES NOT COMPUTE! SYSTEM MALFUNTION!
RiiDii
21
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 8th Jul 2005 08:53
Quote: "ever thought about lifting that one"


We did think about it and discussed it several times. The overall consenses is that this is meant to be challenging in a variety of ways - media being one of them. We even had a 2D primitive shape challenge. Even the smallest size media allowence would have made that one pointless.

Anyway - if you want some help creating your own media using DBPro commands - feel free to ask. There's a bit of experience here on doing just that. We have experience with graphics, 2D and 3D primitives, all sorts of effects, and even no-media sound. Also, check out the archives (go to the first post for the link).

"Droids don't rip your arms off when they lose." -H. Solo
REALITY II
Keaz
22
Years of Service
User Offline
Joined: 22nd Sep 2003
Location: Somewhere in south Texas
Posted: 8th Jul 2005 09:02 Edited at: 8th Jul 2005 09:06
Well I didn't say it couldn't be done without media. I'm just going to have to work at it a bit more. In fact while typing this message I had a what I believe to be a good idea. I'm going to see what I can do with primitives on this challenge just to challenge myself.

Breaking Stuff=Fun!,Bug Testing<>Fun!, Bug Testing=Breaking Stuff, so...
Bug Testing=Fun! Hmmmm....
DOES NOT COMPUTE! SYSTEM MALFUNTION!
Ric
21
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 8th Jul 2005 09:10
Quote: "Edit: Heard from Nick. Anyone know if Ric is okay?
"


Not quite sure exactly what you mean, but if you're refering to today's events, yes I'm safe and sound thanks.

RiiDii
21
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 8th Jul 2005 11:10 Edited at: 8th Jul 2005 11:12
Quote: "if you're refering to today's events"

Yes. Glad to hear you're okay.

Nick: Just tried the code at home (not your fault it wasn't too impressive on my work pc). Very cool... as I felt sucked right into my monitor. Then I started feeling a little woozy and my stomach turned a bit. That's a pretty impressive effect.

You could make a game of that. Stay inside the wormhole to navigate to your destination. Maybe throw some asteroids down the hole to avoid or shoot.

"Droids don't rip your arms off when they lose." -H. Solo
REALITY II
Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 8th Jul 2005 11:25
this is gonna suck without media.

PETA - People for the Eating of Tasty Animals
Coding Fodder
22
Years of Service
User Offline
Joined: 25th Sep 2003
Location: Somewhere in my cerebralcortex
Posted: 8th Jul 2005 11:44
Darn I upgraded to 5.8 and broke it. Does anyone know what this d3dx9.dll thing is and why upgrading to the latest directx did not work. Driving me bonkers and I want to enter this one.

Something really catchy that makes people stop and think about the meaning of life and say to themselves "My but thats clever"
RiiDii
21
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 8th Jul 2005 16:17
Quote: "Does anyone know what this d3dx9.dll thing is"


There is a link on the upgrade webpage to a DirectX download site to down load - I think - Feb 05 DirectX 9 something...

Quote: "this is gonna suck without media."


You can do a heck of a lot without media. That's the challenge. Nick's doesn't suck. Take a look back at Planet Storm (from the first challenge). That's a decent space scene - if I do say so myself (and I'm sure I could do it much faster now too).

Anyway - it is a challenge. If you're not up to it... ???



"Droids don't rip your arms off when they lose." -H. Solo
REALITY II
Nicholas Thompson
21
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 8th Jul 2005 18:46
I completely agree 100%. Using media is just a cop out really. The whole point of these challenges is it tests the programmers skills and abilities.

We've never ruled out using DBP to make textures, although I think its frowned upon to use data statements that are full of the RGB codes of an image

My example above produces 3 images, all based on a sine wave.

Thanks for the positive comments, I'm trying to think of making it cooler.

One thing that confuses me though, I have a pretty powerfull PC (2.5Ghz, 6800GT 256Mb, 1Gb DDR 400 RAM) and I'm "only" getting 220fps. Why? There are only 3 cylinders. Its not any of the effects either (I turned the texture scrolling and camera swaying off). It seems to be the larger the object, the longer it takes to render - which is ridiculous to me..

Has anyone else got anything done for this yet?

My Website:
RiiDii
21
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 9th Jul 2005 02:49
Quote: "It seems to be the larger the object, the longer it takes to render"


I'll take a guess that this answers the question - but specifically for textured objects. I remember reading that when drawing textures at a distance, directx uses some shortcuts (like skipping every 5 pixels or something like that) to texture objects that are distant or small (same thing in terms of 2D representing 3D). So, when drawing a large/close-up object, and almost every pixel is being accounted for, it would naturally take longer, especially if the texture is fairly large (I didn't look at the texture size in your code).

"Droids don't rip your arms off when they lose." -H. Solo
REALITY II
Flindiana Jones
21
Years of Service
User Offline
Joined: 3rd Nov 2004
Location: Bosnian Power
Posted: 9th Jul 2005 06:13
Nice one, Nicholas...

Nicholas Thompson
21
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 9th Jul 2005 06:38
Why thank you Are you joining us in this challenge Mr Jones?

Has anyone else done anything for this yet?

Riidii - you might be onto something there, although I have tried changing the texture resolution up to 1024x1024 and all the way down to 128x128 (my card can handle 4096,4096) and it made next to no difference, however I will look into the Mip Mapping of if all....

My Website:
Nicholas Thompson
21
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 9th Jul 2005 06:55
I think I've figured it out.. Its because there is so much transparency work going on! If I turn off transparency on 1 layer, the frame rate goes up a lot. It seems to be because it has to calculate the effect of 3 layers of transparency on the background colour on pretty much every single pixel of the screen. I'll let it off in that case Hehe..

What kinda FPS are people getting? I get about 240-260fps (depending on if I'm facing the tunnel end or side) with this code. I've tweaked the camera spinning as I found it a little jerky, probably due to floating point innacuracies..



My Website:
Perokreco
21
Years of Service
User Offline
Joined: 5th Apr 2005
Location: Bosnia and Herzegovina
Posted: 9th Jul 2005 12:12
Just to say i tried to open all codes from code database to view them offline.Guess what happened?My computer crashed.Keep up the good work
Nicholas Thompson
21
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 9th Jul 2005 19:08
Huh? You mean my site crashed your PC?

My Website:
Perokreco
21
Years of Service
User Offline
Joined: 5th Apr 2005
Location: Bosnia and Herzegovina
Posted: 9th Jul 2005 22:07
To be exact i think i has to do with 60 tabs opened in Firefox(I wanted to rewiev code offline caused my computer to stop responding
Nicholas Thompson
21
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 9th Jul 2005 22:28
lmao - yeah.. 60 tabs'd do it Hehe..

Hmm.. I might make an option to donwload the code...

My Website:
Ric
21
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 10th Jul 2005 03:50
One challenge behind, I know, but I updated my arm a bit - notice that when you move the lower arm up and down, the bicep and tricep muscles move accordingly. I might do some research to find out how the muscles in the lower arm work, and add them as well.



RiiDii
21
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 10th Jul 2005 04:06
That is pretty cool Ric! I can think of a lot of uses for that - the most obvious would be very realistic character movement. It would be neat to see a character's muscles bulge realisticly as they swing their sword.

As far as the evolution of my robotics code, I headed over to the 20-Line Coding Challenge and have posted 2 codes based on the sliding collision I developed for this. I have to thank you Ric for that challenge. It really pushed me in the right direction.

"Droids don't rip your arms off when they lose." -H. Solo
REALITY II
Nicholas Thompson
21
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 10th Jul 2005 06:00
Hehe - you could set an upper limit.. If you scroll downwards, you can make his bicept tense so much, it makes popeye look weedy

VERY nice code though. Withour trawling through it, I'm guessing its based on scaling the bicept limb based on the forarm's x-angle (or maybe z-angle)?

My Website:
RiiDii
21
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 14th Jul 2005 03:38 Edited at: 14th Jul 2005 03:40
Hey. I figured folks would be itching to show off their STD's. I hope we don't end up scratching the whole thing.

Nick, did you show off your STD to your girlfriend? Was she impressed?

Get some exposure: Show off your best STD here!

"Droids don't rip your arms off when they lose." -H. Solo
REALITY II
Nicholas Thompson
21
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 14th Jul 2005 03:54
Hehe - my girlfriend loves my STD, although she did claim it made her feel a little ill after a minute or so.. :-(

My Website:
Ric
21
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 14th Jul 2005 07:32 Edited at: 14th Jul 2005 07:34
I know you'd all like to take a look at my STD, but unfortunately its full of bugs at the moment.

Nicholas Thompson
21
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 14th Jul 2005 07:45
Can we see it anyway?

My Website:
Benjamin
23
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 14th Jul 2005 09:39
STD? Why are you guys talking about sexually transmited diseases?


"Lets migrate like bricks" - Me
RiiDii
21
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 14th Jul 2005 11:30 Edited at: 14th Jul 2005 11:32
Quote: "Why are you guys talking about sexually transmited diseases?"

[innocence]
Who said anything about that?
[/innocence]

"Droids don't rip your arms off when they lose." -H. Solo
REALITY II
Nicholas Thompson
21
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 14th Jul 2005 19:14
I never mentioned anything at all about a sexually transmitted disease...

My Website:
Ric
21
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 15th Jul 2005 06:55 Edited at: 15th Jul 2005 08:00
My std is driving me mad - for a while, it stopped working altogether. Several people tried to help me get it working again, but the more they fiddled with it, the harder it got. Should have it working by tomorrow though - I'm going to spend all night playing with it.

<edit> ok I'll stop it now

RiiDii
21
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 15th Jul 2005 08:03
Quote: "ok I'll stop it now"

Sure you will. I find it hard to stop once I get started.

"Droids don't rip your arms off when they lose." -H. Solo
REALITY II
Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 15th Jul 2005 17:07
Can we just move on with the challenge please

PETA - People for the Eating of Tasty Animals
Nicholas Thompson
21
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 15th Jul 2005 18:38
the STD IS that challenge! lmao..

My Website:
Ric
21
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 17th Jul 2005 10:25 Edited at: 19th Jul 2005 02:27
Ok - here's my Space Tech Demo, imaginatively entitled "Fly your spaceship as fast as you can without crashing into the blue stick things".

Control the spaceship using the mouse - left button to accelerate, right button to brake. You score a point every time you overtake a stick thing, and get an extra 30 seconds everytime you reach a checkpoint. That's about it. Enjoy:



Tips:
- use the brakes from time to time - go too fast and you'll crash!
- if you crash, move to the bottom left, where you won't get whacked from behind by a blue stick thing.

Btw, my best score so far is 312.

RiiDii
21
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 17th Jul 2005 15:20 Edited at: 17th Jul 2005 15:21
Hey Ric. I played over on the 20 Line coding challenge thread. Fun game - and as always, cool graphics.

333 points (and an inch from the check point )

Takes a bit to get used to, but once you do...

"Droids don't rip your arms off when they lose." -H. Solo
REALITY II
Ric
21
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 18th Jul 2005 02:57
Update:

-slight improvements to graphics ... note the street lights instead of the pacmans signs!
-taken out some of the barriers to make it more playable - you can now go faster! You only get 25 seconds at a checkpoint now though.
-Added a speed bar
-Added a camera zoom intro effect!
-Given it a title: "Space Weaver"



Nicholas Thompson
21
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 19th Jul 2005 01:50
Ooo.. I was unaware this was a game challenge! Hehe.. I just went for pure travel sickness!

My Website:
Nicholas Thompson
21
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 19th Jul 2005 01:56 Edited at: 19th Jul 2005 01:56
Is anyone else gonna enter anything apart from me and Ric? Have you done anything Riidii?

EDIT: Whoops - just realised I double posted.. SORRY!!

My Website:
RiiDii
21
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 19th Jul 2005 05:54
Nothing from me, although I have been tempted. I'm stumped for ideas though. Seems I'm experiencing writer's block on all sorts of code ideas.

"Droids don't rip your arms off when they lose." -H. Solo
REALITY II
Nicholas Thompson
21
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 19th Jul 2005 06:30
It was your idea!! Lol...

My Website:
Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 19th Jul 2005 19:25
I'm gonna start to disqualify ric if he doesn't start indenting his code!

PETA - People for the Eating of Tasty Animals
Nicholas Thompson
21
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 19th Jul 2005 22:54
He does!! A little..

Maybe some spacing and comments?!

My Website:
Whistlin Trev
21
Years of Service
User Offline
Joined: 11th Feb 2005
Location: Battle of Nevermore
Posted: 20th Jul 2005 05:40
finally got the basis of my enty done.

Basicly you are the cone which is the spacecraft and you need to collect planets.use the arrow keys to move around and collecting the planets will increase you score but if your score gets to 0 the game over.

i want to make it 3d to play and not just 3d objects and want some funky colours on it but ive got ict coursework for tomorrow so will have to do improvements after the deadline.

well done to both the other entrys,but they put mine to shame
Ric
21
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 20th Jul 2005 09:35
Yeah - sorry, I do admit that code is not very well presented. Perhaps one of the next challenges could be a program that automatically indents code - shouldn't be too hard should it? Check for words like 'if' and 'endif' and increase/decrease the number of spaces accordingly?

RiiDii
21
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Inatincan
Posted: 20th Jul 2005 10:35
Or a code that converts to/from 20 Line Coding Challenge format?

"Droids don't rip your arms off when they lose." -H. Solo
REALITY II

Login to post a reply

Server time is: 2026-07-03 18:13:33
Your offset time is: 2026-07-03 18:13:33