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 / Mini Competition! TGC Prizes!

Author
Message
Joe Cooning
21
Years of Service
User Offline
Joined: 29th Mar 2003
Location: United States
Posted: 24th Sep 2005 23:15
I finally got the code to work. I pretty much had to go through and rewrite quite a bit of it. One big thing that helped was moving memblock creation to the beginning and makeing the functions subroutines.

Mono
18
Years of Service
User Offline
Joined: 23rd May 2005
Location:
Posted: 24th Sep 2005 23:38
Here are my entries:

http://www.monos-co.de/mask.zip (6Mb)

A collection of 19 images (from 50)
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 25th Sep 2005 00:00
Very odd Joe. Can you tell me more...Which upgrade of DB Pro are you running, and what graphics card do you have? Also, are you using the DB Pro editor, or another one.

I have it running on a nVidia card, ATI mobile card, and Rich also has it running. Most other people also have it running, but there are a couple of issues.

BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 25th Sep 2005 00:15 Edited at: 25th Sep 2005 00:17
I'm struggling to post any attachments tonight. I have a projaect that allows you to display all of these masks, and test your own more easily...but it won't post.

So instead, here's some inspiration...The first 10 entries from above...



Attachments

Login to view attachments
David T
Retired Moderator
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 25th Sep 2005 00:34
Quote: "Including the music?"


Dunno, my speakers aren't working at the moment.

"A book. If u know something why cant u make a kool game or prog.
come on now. A book. I hate books. book is stupid. I know that I need codes but I dont know the codes"
Peter H
20
Years of Service
User Offline
Joined: 20th Feb 2004
Location: Witness Protection Program
Posted: 25th Sep 2005 00:53
@joel- LOL i was going to make a DB pyramid transition but you beat me to it!

"We make the worst games in the universe."

Joe Cooning
21
Years of Service
User Offline
Joined: 29th Mar 2003
Location: United States
Posted: 25th Sep 2005 01:43
@Bat Vink: I also have an nVidia, Default IDE for DBPro. Don't know what was up, working now, just had to modify it a bit.

Here are some of my entries.

Attachments

Login to view attachments
Torrey
19
Years of Service
User Offline
Joined: 20th Aug 2004
Location: New Jersey
Posted: 25th Sep 2005 20:05 Edited at: 25th Sep 2005 20:06
I'm surprised more people haven't got involved in this competition.

The best audio plugin for DarkBASIC Pro!
Plays Ogg Vorbis,MP3,FLAC,uncompressed WAV,AIFF,MOD,S3M,XM,and IT files.
jrowe
21
Years of Service
User Offline
Joined: 12th Oct 2002
Location: Here
Posted: 25th Sep 2005 21:11 Edited at: 25th Sep 2005 22:08
Cool Blood drip onto the words "GAME OVER" over an example ingame screen...

NB: It's compressed in the 7-zip format (just to have all the files in the same place).

EDIT: DO NOT DOWNLOAD, I've uploaded the wrong files!

I've given up trying to upload it for now, I'll post it tommorow.

Tinnedhead Productions

For Fathers and Sons who enjoy wholy spirits.

Attachments

Login to view attachments
xCept
21
Years of Service
User Offline
Joined: 15th Dec 2002
Location:
Posted: 25th Sep 2005 21:53
I'm having some problems running the "memblocks.dba" code from the tutorial in this month's newsletter, too. Keep getting the error: "Runtime Error 5103 - Memblock does not exist at line 172"

I'm using DarkBASIC Professional 1.058 and the official editor...
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 25th Sep 2005 22:23
It seems that this code doesn't work from the default editor

I use Blue IDE, and the code runs fine. I have now tested compiling from the default editor, and I get some very strange results.

I get the same message everyone is reporting. I've added additional code to work out what is going wrong, and some of it doesn't get executed! I will post this in the bugs forum.

In the meantime, it looks like you can't use this code form the default editor. Joe, would you be willing to post your working version? You said you altered it and it ran?

Xolatron old
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: The Star Forge Language: DBpro
Posted: 25th Sep 2005 22:37
I downloaded the zip from the newsletter and memblocks.dba works fine compiling from the Original editor. I haven't tried compiling + running through the Default IDE, though; I just compiled and manually launched the program.

Can't say I'd have any chance if I entered the competition; anything from MS Paint would hardly stand a chance .

-Xol


DBpro IonRay IDE: Demo 0.1.0.0 available!
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 25th Sep 2005 22:38
************************
Source Code Fixed!
************************


This is exactly the same code as the tutorial. However, all of the comments have been removed, and this fixes the problem!



BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 25th Sep 2005 22:53
Thanks Xolatron, another interesting peculiarity. Makes it even more bizarre, because I tried that and it still doesn't work for me.

Joe Cooning
21
Years of Service
User Offline
Joined: 29th Mar 2003
Location: United States
Posted: 26th Sep 2005 00:32 Edited at: 26th Sep 2005 00:36
Here's the source I made. Enjoy!
@bat Vink: Tried yours without the comments and it worked. That's odd...

JoelJ
20
Years of Service
User Offline
Joined: 8th Sep 2003
Location: UTAH
Posted: 26th Sep 2005 03:27
Quote: " @joel- LOL i was going to make a DB pyramid transition but you beat me to it! "

hehehehe

@Louiz ofRohr, take the b&w image of the chick, and use that as the transition, it looks so cool

Jess T
Retired Moderator
20
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 26th Sep 2005 08:56
Ok, so here's my efforts - 3D Objects converted to grey-scale.
Two are kind of alike, so throw the crappy one away if you want to

And, if anyone wants the source for the app I used to make these images, just say so, and I'll post it Be warned, though, it takes about half an hour to render a full 800x600 screen of objecty goodness!

images.rar ~620KB

... Yep

Team EOD :: All-Round Nice Guy
Want Better dbHelp Files?
jrowe
21
Years of Service
User Offline
Joined: 12th Oct 2002
Location: Here
Posted: 26th Sep 2005 21:33 Edited at: 27th Sep 2005 02:03
I got Froogle to upload it to our website, so here it is...

FROM GAMEPLAY TO GORE!!!


Tinnedhead Productions

For Fathers and Sons who enjoy wholy spirits.
Ric
19
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 26th Sep 2005 23:17
Had fun playing around with these! Made loads, but I think this is the nicest so far:

http://www.sector-1.net/misc/mask.bmp



Nicholas Thompson
19
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 26th Sep 2005 23:30
Ric - that rocks!!!! Damn.. I thought I'd be able to win this one but it seems its gonna be tough hehe...

My Website:
xCept
21
Years of Service
User Offline
Joined: 15th Dec 2002
Location:
Posted: 27th Sep 2005 00:47 Edited at: 27th Sep 2005 00:48
I've checked out all 43 that have been submitted so far, Some great ones already! I imagine judging will be quite tough since there are so many that produce awesome transitions but are so different than one another. I plan on entering as well

Fun little competition! And thank you BatVink for posting the fixed code, it now works for me.
Nicholas Thompson
19
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 27th Sep 2005 00:59
Ok - here is my first entry... PlayboyMask (Dont worry, its not "over 18")

My Website:

Attachments

Login to view attachments
WarGoat
19
Years of Service
User Offline
Joined: 19th Sep 2004
Location: Montreal
Posted: 27th Sep 2005 01:24
You're code works fine for me too but I don't why, but when i'm compiling with the mask, the image that is appearing is not above the 1/3 of the screen.

Windows XP,pentium IIII, 1,9 MGZ, 256 mb memory, 128 mb video card ATI Radeon 9200 se s80 'sett squadron back on the assault'
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 27th Sep 2005 01:32 Edited at: 27th Sep 2005 02:01
Quote: "I imagine judging will be quite tough since there are so many that produce awesome transitions but are so different than one another"


You are sooooo right! I just sit here thinking "woahhh!" From the very simple to the highly complex, there isn't a single one that I don't like.

If you want to look at a few, or make it easier to view your own, here's some code...

Create a folder, and also a subfolder called "masks"
Save the code below as a project in the main folder. It should be set to 800*600, 32 bit.
Put any masks in the "masks" subfolder. You also need a text file called "masks.txt" in this folder. Add each mask name to this text file, one per line
To remove masks from the "slideshow", use an * in front of their name in masks.txt. This way, you can add and remove them without recompiling all the time.
Default editor users will probably have to remove the comments to make it work...sorry! I took a lot out, but there's more.



Nicholas Thompson
19
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 27th Sep 2005 01:48
It compiles fine for me in the default IDE, but I have to remove the first REMSTART... Not even sure why its there (at a glance)

My Website:
Ric
19
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 27th Sep 2005 01:57
Quote: "here is my first entry... PlayboyMask "


Nice transition effect, Nick, but where can I get a 'Playboy Mask' from? I want one!!

Nicholas Thompson
19
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 27th Sep 2005 02:20
I'm not sure what shops you have near you, but I've seen them in the Kettle's section of Tesco and, strangely, the Frozen Cauliflower Cheese section of Morrisons. I've heard rumours of a Bluetooth version coming out soon so it'd be hands free

My Website:
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 27th Sep 2005 18:41
Just looked at the last 2 from Ric 'n' Nic Both so good, and both so different.

I recognise that effect, jrowe...some secret agent film with a well-dressed spy?

Teh Go0rfmeister
20
Years of Service
User Offline
Joined: 17th Aug 2003
Location:
Posted: 27th Sep 2005 19:25
wow i really like jrowe's simply because its an example of practicle use for this sort of thing.

CPU
20
Years of Service
User Offline
Joined: 4th Jul 2003
Location: Carlsbad, CA
Posted: 28th Sep 2005 00:04
Well BatVink, here's four or five different masks for ya to try out.

I did have one question though, could you give us a a little demo that shows transitioning from say a 2D image to a 3D scene? It would be more usefull in the long run to people, and besides, I can't seem to make it go fast enough to be practical... any ideas?

CPU

[center]K-OS Battlefields
IS
///---///---///---UNDER CONSTRUCTION---\\\---\\\---\\\
[center]

Attachments

Login to view attachments
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 28th Sep 2005 00:13
Quote: "I can't seem to make it go fast enough to be practical... any ideas?"


Have you set the SYNC RATE to 0 and looked at the Frame Rate displayed in the top left corner? I get 550 FPS on one machine, and 300+ on another. That's pretty fast!

Quote: "could you give us a a little demo that shows transitioning from say a 2D image to a 3D scene?"


This could be done, but it's a little more intensive. You could put your 2D image in a memblock, and then using the mask, set the pixel transparency to 255. At each sync, you need to put the full image onto the screen as a last step.
So, you save by only affecting the alpha bytes, but lose by moving the whole memblock to the screen each time. In the current example, you only modify approximately 0.5% of the pixels each SYNC, assuming you have a fairly evenly spread greyscale mask.
If I get time, I'll try this out and see how efficient it is.

Louiz ofRohr
19
Years of Service
User Offline
Joined: 11th Nov 2004
Location:
Posted: 28th Sep 2005 07:58 Edited at: 28th Sep 2005 08:07
Quote: "take the b&w image of the chick, and use that as the transition, it looks so cool "


thanks hehe
I like your pyramid..
I'm another one who wanted to make one

I love that toon..
by the way.. hey.. that's the full image of Sven B's avatar ^^
I tested with your mask.. really really cool..

The worst foe lies within the self..
Nicholas Thompson
19
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 28th Sep 2005 10:54
@BatVink - could you not take two cameras and send the info from each one into a memblock via an image then apply the mask? Would that not work? That would provide a true A-B image transition.. Alternatively, you could fade from A to a static image then static image to B with an inverted transition?

My Website:
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 28th Sep 2005 12:54
I see problems using memblocks to do this. The problem is that you can't just dump a full memblock over the screen, because you would obliterate the underlying scene. This would mean that at the beginning of the transition, where you need to completely cover the scene with your 2D image, you will be pasting 480,000 double words. The worst-case scenario is actually the second pass, because at this stage you must do it a double word at a time, the first pass can be a dump of the entire memblock.

I'm not going to give up, this could turn into another tutorial!

Nicholas Thompson
19
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 28th Sep 2005 14:01
you sure? Cant you do all the fun maths in the memblocks, then make an image out of the memblock and THEN paste that image to the screen? Image pasting is pretty damn fast and, hopefully, the image should be the same res as the screen itself!

My Website:
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 28th Sep 2005 14:21 Edited at: 28th Sep 2005 14:22
Quote: "then make an image out of the memblock and THEN paste that image to the screen"


That's the theory I'm working on at the moment



Attachments

Login to view attachments
Nicholas Thompson
19
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 28th Sep 2005 14:32
lmao! Nice

The biggest killers in this one are:
1) Getting an image fom a camera into a memblock
2) Converting the memblock to an image...

My Website:
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 29th Sep 2005 14:11
Nicholas, I can't post attachment here for some reason, I've mailed you a working version of what we're discussing here.

Nicholas Thompson
19
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 29th Sep 2005 14:35 Edited at: 29th Sep 2005 14:36
Well on that I get 32FPS for the first phase and 42FPS on the second phase and that on my work machine which, suffice to say, is not designed for gaming... In fact, I'm surprised it even managed to get 42FPS with a cube on screen! It has the famous Intel on-board chipset.. *shudders*

Edit: It seems to have attached to this fine!

My Website:

Attachments

Login to view attachments
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 29th Sep 2005 16:18
Nicholas has kindly posted the animated version of this effect above if anyone wants it. I will post the source when it's much tidier.

Yes, it's a lot slower because of the way it has to work. It is basically a sprite over a 3D scene, with some jiggery-pokery in between.

I get about 60 FPS, which is still acceptable for the point at which you would do this kind of effect in a game. I wouldn't expect it to be used whilst actually playing the game.

In reverse, you could "wipe" your "Level Complete" screen over the top of the final scene.

Nicholas Thompson
19
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 29th Sep 2005 16:34
Interesting how you only just get a little higher than me... and My system here sucks for gaming stuff. I use a P4 2.8Ghz, 1Gb RAM and intel graphics.

My Website:
CPU
20
Years of Service
User Offline
Joined: 4th Jul 2003
Location: Carlsbad, CA
Posted: 4th Oct 2005 04:13
BTW batvink, did you see my lil transition masks on the above post?

[center]K-OS Battlefields
IS
///---///---///---UNDER CONSTRUCTION---\\\---\\\---\\\
[center]
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 4th Oct 2005 09:57
It's a good job you asked, I'd answered your questions and missed your masks...and they are impressive I would have picked them up eventually, I'm going to go through the entire thread before the end of the compo.

Nicholas posted my solution to your 2D -> 3D transition 3 or 4 posts above. When I've tidied the code up, I'll post it.

BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 12th Oct 2005 14:37
Just a reminder that the deadline is in 2 days...Friday the 14th!

Torrey
19
Years of Service
User Offline
Joined: 20th Aug 2004
Location: New Jersey
Posted: 12th Oct 2005 14:47
Thanks for creating an interesting and fun competition! There are a lot of good entries and I'm sure the judging will be difficult.


Check out my site!
Kendor
21
Years of Service
User Offline
Joined: 31st Jan 2003
Location: Malta
Posted: 13th Oct 2005 14:36
Just my try!

1 + 1 is not 2, is 10

Attachments

Login to view attachments
jrowe
21
Years of Service
User Offline
Joined: 12th Oct 2002
Location: Here
Posted: 14th Oct 2005 01:06 Edited at: 14th Oct 2005 01:09
I was hoping to make another entry or two for this, but it now looks like I won't have time . On the plus side Wallace + Grommit comes out tomrrow!!

Tinnedhead Productions

For Fathers and Sons who enjoy wholy spirits.
Joe Cooning
21
Years of Service
User Offline
Joined: 29th Mar 2003
Location: United States
Posted: 14th Oct 2005 02:46
tomorrow for you? I've already seen it. Funniest movie I've seen in a while (puns and sight gags galor ).

xCept
21
Years of Service
User Offline
Joined: 15th Dec 2002
Location:
Posted: 14th Oct 2005 08:20 Edited at: 14th Oct 2005 08:21
Here's a couple transitions I was able to come up with. Unfortunately I don't know that I'll get a chance to create any more. The file is 666KB ( ) and I am having problems attaching it, so I uploaded it to: http://rapidshare.de/files/6257423/masks.rar (just click the 'free' button and then wait 30 seconds or so and you can download it)
Jess T
Retired Moderator
20
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 14th Oct 2005 19:55
!!

Judgement time! WOO...

*slips the bat some glasses as a bribe *


So... Who's the winner? *whislte*

Team EOD :: All-Round Nice Guy
Want Better dbHelp Files?

Login to post a reply

Server time is: 2024-05-07 03:53:52
Your offset time is: 2024-05-07 03:53:52