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.

Code Snippets / [DBP] 3D + ASCII = Yay!

Author
Message
TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 18th Jan 2007 20:46
I've finally learned how to use the pointers in DBP and have come up with a couple of cool-ish effects. First one is ASCII 3D and the second one is pixelisation.

3D ASCII:


Pixelisation:


Kohaku
20
Years of Service
User Offline
Joined: 3rd May 2004
Location: The not very United Kingdom
Posted: 18th Jan 2007 21:42
Haha, those are awesome!


You are not alone.
TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 18th Jan 2007 21:44
Thanks! The pointer commands are so useful. I learnt how to use them from some of Phaelax's code so thank you Phaelax!

Kohaku
20
Years of Service
User Offline
Joined: 3rd May 2004
Location: The not very United Kingdom
Posted: 18th Jan 2007 21:47
I wonder if a kind of bloom effect could be achieved with something like that..!

And is that Andrew Neale hiding under that coding name?


You are not alone.
TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 18th Jan 2007 22:02
Yep, that be me! The bloom idea had already crossed my mind too! I'll give it a shot. Also, here is a slightly improved (speed wise) version of the pixelisation thing.


Kohaku
20
Years of Service
User Offline
Joined: 3rd May 2004
Location: The not very United Kingdom
Posted: 18th Jan 2007 22:14
This is Aura Doig saying 'hi' and looking forward to sweet point related bloomage.


You are not alone.
TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 18th Jan 2007 23:34
Hey, I thought it was you! The point related bloomage is looking unlikely as sampling the whole screen is very slow. I'll keep trying though.

Kohaku
20
Years of Service
User Offline
Joined: 3rd May 2004
Location: The not very United Kingdom
Posted: 19th Jan 2007 00:46 Edited at: 19th Jan 2007 00:47
I'm getting some interesting results with your code, slightly changed:


And this rather pants image:



You are not alone.

Attachments

Login to view attachments
TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 19th Jan 2007 16:39
Hmmm...interesting...That definately looks promising.

TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 23rd Jan 2007 20:17
Well I have tried a bit more and ended up getting something that wasn't completely rubbish but it was slower than just using a bloom shader and still didn't look as good. I guess I'll give up on that for now and try and find a proper use for this! A full 3D ASCII game could be cool!

Kohaku
20
Years of Service
User Offline
Joined: 3rd May 2004
Location: The not very United Kingdom
Posted: 24th Jan 2007 09:54
Well my card doesn't support shaders so I'd have to vote this as being better. Looking forward to teh ascii game of doom!


You are not alone.
TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 24th Jan 2007 16:32
Ah. I have a spare Radeon 9550 256MB card. If you don't live too far away I could send it to you. I just don't want to pay large postage bills.

Kohaku
20
Years of Service
User Offline
Joined: 3rd May 2004
Location: The not very United Kingdom
Posted: 24th Jan 2007 19:02
Well that's awesome! Price me though because I'd be quite willing to buy it after checking out its specs(go google!), especially if you have paypal.


You are not alone.
TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 24th Jan 2007 20:20
I'm afraid I don't have paypal but I may be able to convinve my parents to sign up for me. I wouldn't ask for anymore than covering delivery just in case it is no good to you. As far as I know it is fine but is by no means top of the range. I'll see what I can do. Do you want the driver CD as well or will you just download the driver?

Kohaku
20
Years of Service
User Offline
Joined: 3rd May 2004
Location: The not very United Kingdom
Posted: 24th Jan 2007 22:44 Edited at: 24th Jan 2007 23:18
I've been doing some graphics card related research, something I'm totally clueless about, and apparently your card won't run on my computer due to it being of the AGP kind and my computer only supporting the old PCI kind. This is sucky. However, I'm reading into cards for the old PCI connection and I'm seeing some interesting results.

Thanks a billion for the offer though, Andrew! You teh rock.

It looks like my best bet is the Geforce FX 5200 256MB.

http://www.misco.co.uk/applications/searchtools/item-Details.asp?EdpNo=189873&sourceid=2003


You are not alone.
TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 24th Jan 2007 23:29
Sorry about that then. I was just going to say not to worry about PayPal; I'll just send it to you! Good luck in your graphics card search! I'm assuming it does but that page didn't mention if that cards supports shaders or not. Still, it seems to be a fairly decent card for the price.

Kaurotu
18
Years of Service
User Offline
Joined: 20th Oct 2006
Location: My Computer Chair
Posted: 25th Jan 2007 00:34
Those are sweet! Nice work.

[url=http://www.xboxlc.com/profile/Kaurotu]

[/url]
Kohaku
20
Years of Service
User Offline
Joined: 3rd May 2004
Location: The not very United Kingdom
Posted: 25th Jan 2007 00:40
I ended up ordering this baby from Misco.
http://en.wikipedia.org/wiki/GeForce_6#GeForce_6200_PCI_.28NV44.29_without_TurboCache

It seems to be the best I can get for my pc with DirectX 9 support and stuff. Hopefully I ordered the right one!


You are not alone.
Kieran
18
Years of Service
User Offline
Joined: 6th Aug 2006
Location: Hamilton, New Zealand
Posted: 25th Jan 2007 03:17
heres my one, i like it

NVIDIA GeForce 7600 GT

TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 25th Jan 2007 16:49
@Kauroto - Thanks!
@Kohaku - Looks pretty nice, I hope it serves your needs.

Kohaku
20
Years of Service
User Offline
Joined: 3rd May 2004
Location: The not very United Kingdom
Posted: 25th Jan 2007 17:05
Thanks! Apparently it can run doom 3 and everything, which I'm not too excited about but I have a copy of Thief 3 which only runs on a handful of cards. Now I really liked the previous thief games so I'm seriously looking forward to giving this one a go. It looks awesome.

Anyway, I still see huge potential for the point command. We should make some point command based 'shaders' that can be read and processed by a load of functions. That'd be neat.


You are not alone.
TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 25th Jan 2007 17:37
I should have a copy of Thief 3 but instead thanks to the idiots at Gamestation I'm stuck with The Thing because they decided to give me that instead! I'm still waiting for a chance to get back to Norwich and get them to exchange it! Grr!

Hmm...That is a very good idea! We'll have to try that.

Kohaku
20
Years of Service
User Offline
Joined: 3rd May 2004
Location: The not very United Kingdom
Posted: 27th Jan 2007 00:03
Well, my card came today and it freaking rocks. Sweet bloomage and shiny rippling water. Beautiful stuff. It's also darned quick too. Go Geforce!

I'm going to try out loads of codez0rz now to see if I can come to any ground breaking conclusions.


You are not alone.
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 27th Jan 2007 09:50
You code gives me memory errors, caused by the pointer being outside of range.

Adding this check:

if x < 640 and y < 480

inside your nested FOR loops will fix it.


So how bout a little per-ascii shading on that first example?

TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 27th Jan 2007 15:09
@Kohaku - Yay!

@Phaelax - I got no such errors but oh well! I have already tried that but I guess I forgot to post it here. I'll wait a bit because I am going to try Kohaku's suggestion first; the shader style functions.

Kohaku
20
Years of Service
User Offline
Joined: 3rd May 2004
Location: The not very United Kingdom
Posted: 27th Jan 2007 21:07
I'm going to do some more experimentation with that too. I think my new experience with real shaders has shown me a few things.


You are not alone.
TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 27th Jan 2007 23:06
Well as it stands, I have it working such that this shader:

will have the same effect when loaded and applied as the 2nd piece of code in the 1st post.

Mistrel
Retired Moderator
19
Years of Service
User Offline
Joined: 9th Nov 2005
Location:
Posted: 30th Jan 2007 05:10
Nothing happens when I run either of the examples in the first post. The exe runs, my screen blinks, and it closes immediately.

http://3dfolio.com
TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 30th Jan 2007 15:07
Hmm...I don't know what could cause that. I'm assuming you are running the latest version of DBPro. Other than that, sorry, but I really am clueless.

Vampiric
18
Years of Service
User Offline
Joined: 30th Oct 2006
Location:
Posted: 30th Jan 2007 16:17
Manual Bloom Effect is kinda wierd

Computer says n00bed
Turoid
21
Years of Service
User Offline
Joined: 1st Nov 2003
Location: The Netherlands
Posted: 30th Mar 2007 22:23 Edited at: 30th Mar 2007 22:25
heh funny to see you doing this stuff

since I did it before and you read it haha!

http://forum.thegamecreators.com/?m=forum_view&t=46587&b=6

http://forum.thegamecreators.com/?m=forum_view&t=47542&b=6

anyway, well done! I like that ASCI one, soo cool.

I am awesome and always right.
TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 30th Mar 2007 22:41
Lol! Completely forgot that! I didn't really look at the code though so if it appears that I just copied then I'm sorry but I promise I didn't. Thanks!

Turoid
21
Years of Service
User Offline
Joined: 1st Nov 2003
Location: The Netherlands
Posted: 31st Mar 2007 10:08
no worries!! I just like little apps like these, and was wondering if I sort of inspired you in the past for doing this , dont worry man!! haha, it's cool

I am awesome and always right.
TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 31st Mar 2007 12:18
Quote: "and was wondering if I sort of inspired you"

Maybe sub-conciously...Lol!

Quote: "dont worry man!! haha, it's cool"

Good, good! I don't want to go upsetting people!

jeffhuys
18
Years of Service
User Offline
Joined: 24th May 2006
Location: No cheesy line here.
Posted: 11th May 2007 22:37
This just frikkin' rocks!


You're the 'th to view this signature!
bass guy1669
17
Years of Service
User Offline
Joined: 24th Mar 2007
Location: The Zone
Posted: 12th May 2007 08:37
dom't bump old threads

you can live with a man for all his days, but you really find what he really is like when hold him over a volcano
TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 12th May 2007 11:35
@jeffhuys - Thanks!

Image All
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location: Home
Posted: 13th May 2007 01:30
All of them crash for me

Math89
20
Years of Service
User Offline
Joined: 23rd Jan 2004
Location: UK
Posted: 13th May 2007 19:01
It's because the pointer leave the screen.
Replace 640 with 639 and 480 with 639, it should works fine.
Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 14th May 2007 04:53 Edited at: 14th May 2007 04:53
Nice one! You should be able to color the cubes

Login to post a reply

Server time is: 2024-11-22 18:52:14
Your offset time is: 2024-11-22 18:52:14