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.

2D All the way! / 2D rocks

Author
Message
Richard Davey
Retired Moderator
21
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 26th Aug 2002 22:51
Sorry but I just love 2D coding However although most people think it's easier to get to grips with than 3D, that isn't always the case. If you've got questions of a 2 dimensional nature then post them here. We'll take anything from "how to make sonic" to map scrolling to pixel pushing.

Cheers,

Rich
RiK777
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: - Please Select -
Posted: 27th Aug 2002 02:04
In DBPRo, can I freely intermix 2d and 3d?

i.e. could I do a tilemap based platoformer in 2d, and then overlay 3d stuff with alpha etc on top of it?

MrTAToad
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 27th Aug 2002 02:43
I dont see what you cant mixed 2D & 3D. In DX8, 2D sprites are really treated as a type of 3D object (I think)

Yes, I really am THAT good...
Richard Davey
Retired Moderator
21
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 27th Aug 2002 02:57
MrToad is right - there is no difference between 2D and 3D in DX8 and consequently there isn't in DBPro. You still have all the usual sprite/image/bitmap commands available to you though and they'll work just like normal 2D does - it's just behind the scenes it's actually 3D.

Cheers,

Rich
Dazzag
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Cyprus
Posted: 27th Aug 2002 03:12
That's pretty neat. Rats, there goes all my neat 3D sprite routines... Heh, not that bothered though, gives me an excuse to rewrite large portions. Looking forward to it

Cheers

I am 99% probably lying in bed right now... so don't blame me for crappy typing
MrTAToad
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 27th Aug 2002 13:39
DX8 makes it quite easy to do special effects with sprites. When I was writing a 2D sprite library (years ago now), it was very easy to rotate & scale sprites, decide which part was transparent.

DBPro will make it even easier...

Does anyone know whats new in DX9 ? As I didn't take Microsoft up for beta testing it, I dont know what features it's got.

Yes, I really am THAT good...
denki
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 27th Aug 2002 19:10
This post isn't about 2d stones at all, the moderaters should move it at once.

denki

Join in on my big DarkBASIC pro RPG - kousen - http://www.darkbasicpro.com/apollo/view.php?t=13&b=1
Dazzag
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Cyprus
Posted: 28th Aug 2002 02:18
Damn it Denki, it is obvious they are on about the screen display in XP rocking back and fore slightly using 2D graphics. Do you always have to come up with some Postmonesque comedy moment (minus the swearing and probably illegal pictues)?

Cheers

I am 99% probably lying in bed right now... so don't blame me for crappy typing
denki
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 28th Aug 2002 03:26
hehe Lol

denki

Join in on my big DarkBASIC pro RPG - kousen - http://www.darkbasicpro.com/apollo/view.php?t=13&b=1
=DaZ=
21
Years of Service
User Offline
Joined: 28th Aug 2002
Location:
Posted: 28th Aug 2002 09:58
2D RULEZ!!!! every1 listen to rich he knows what he is talking about!

DaZ

"Even a good game can make you throw your game pad to the ground. A great game makes you pick it back up again" - DaZ 2002
Zero
21
Years of Service
User Offline
Joined: 28th Aug 2002
Location: Finland
Posted: 28th Aug 2002 17:29
Hmm.. I agree!

The evil plan is now even closer!
indi
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 29th Aug 2002 05:46
3d on a screen is 2d when u think about it compared to the real world

gbuilder
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: New Zealand
Posted: 29th Aug 2002 11:53
Indi,
My screen is real..
Remember that the so called 'Real World' is made up of impressions on a retina and other sensory data.

gbuilder.
Xinan3d
21
Years of Service
User Offline
Joined: 28th Aug 2002
Location:
Posted: 29th Aug 2002 14:43
even Pac-man has gone 3d. This high-res stuff give me a headache.

How about porting quake to 2d. A text-base quake like Champ manager.

"bang, bang"

"your dead".

if just my mind is that simple
denki
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 30th Aug 2002 18:32
2d does rock though, and I would love to make a 2d game when my ig project is done

denki

Join in on my big DarkBASIC pro RPG - kousen - http://www.darkbasicpro.com/apollo/view.php?t=13&b=1
indi
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 31st Aug 2002 08:30
its all 2d at the end of the day if u think about it.
3d on a comp screen is a 2d representation of a 3d environment.

pff.

denki
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 31st Aug 2002 22:40
You know what we mean ...
lol...Sheesh...2d rules...

denki
Kousen DPB RPG latest - Working on a demo to release to get some interest and team members
Wanna join? See the Team section.
flanque
21
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Australia
Posted: 10th Sep 2002 18:02
Aye, 2D rocks hard..

Here, a shameless plug for my favourite internet radio show:

http://www.retrogamingradio.com

All about the preservation of classic 2D gaming.. with interviews monthly now for the next 12 months from classic game coders like Ron Corcron and Atari founders, etc. from CGE2002.

Go Shane!!

:: Specs: AMD Athlon XP 1600+ (1.4GHz), 256MB PC133 SDRAM, Leadtek Geforce 2MX SH 64MB, SB-Live!, LG Studioworks 775N 17", MS Natural Pro KB, MS Optical Mouse, Windows 2000 Pro (SP3) ::
The Darthster
21
Years of Service
User Offline
Joined: 25th Sep 2002
Location: United Kingdom
Posted: 26th Sep 2002 01:34
Hey, there are so many more sprite commands in dbpro than db! I used to resort to texturing images onto 3d plain objects to make my 2d, but now there's sprite rotation, sprite alpha... Excuse me I'm off to do some 2d programming.

travbrad
21
Years of Service
User Offline
Joined: 29th Sep 2002
Location:
Posted: 30th Sep 2002 06:37
"Does anyone know whats new in DX9 ? As I didn't take Microsoft up for beta testing it, I dont know what features it's got."

First thing listen DX8 and the second one is DX9

HIGHER ORDER SURFACES YES YES
N-Patches YES YES
Continuous Tessellation NO YES
Displacement Mapping NO YES

VERTEX SHADERS 1.1 2.0
Max Instructions 128 1024
Max Constants 96 256
Flow Control No Yes

PIXEL SHADERS 1.1 2.0
Texture Maps 4 16
Max Texture Instructions 4 32
Max Color Instructions 8 64
Data Type int float
Data precision 32bit 128bit


Don't know if that's what you meant....
http://www.tomshardware.com/graphic/02q3/020718/radeon9700-02.html

Gordolfo
21
Years of Service
User Offline
Joined: 2nd Oct 2002
Location:
Posted: 2nd Oct 2002 21:13
Hello Guys,
Excuse the ignorant question...
Can I do alpha blending of 2d sprites with db? or only dbpro?
Is there a sample game/demo that shows this that I can download somewhere?
Thanks!

Seph
21
Years of Service
User Offline
Joined: 3rd Oct 2002
Location:
Posted: 4th Oct 2002 02:49
Oh, joy, I might actually pick this up, if my collision detection in 3D problems don't cease.
Well, I suppose if it ever comes to that, I'll ask a lot of stuff. XD

Garfield1983
21
Years of Service
User Offline
Joined: 13th Nov 2002
Location:
Posted: 28th Jan 2003 16:54
I agree with what rich said in that 2D isn't always the easier option to 3D!=S I'm new to DB..okay,okay it's been on my PC for months and i've only just got back into it! Oh the shame=S

Anyway I've started playing with 2D as I thought it would be easier than 3D - wrong - I've learned how to manipulate sprites and I have a wee guy running around the screen when I move the cursor keys..anyway, getting to the point:

I'm stuck on making the background. I've heard that the background in 2D games is made up of little tiles and i followed a tutorial on making some of my own (simple grass, paving, walls etc) but I'm not sure how I actually code for these tiles, ie. how do I get them on the screen in the right places?

I've heard recently I need to look at arrays but i'm not sure what it is i'm meant to store in the array, and some people have talked about setting them out on a grid. Is this grid a physical thing (Actual code like a matrix) or is it just a term that's used?=S

Thanks, any help would be greatly appreciated=)
IanM
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 28th Jan 2003 19:46
Have a look here at some code I posted earlier. It should give you the idea: http://www.darkbasicpro.com/apollo/view.php?t=5073&b=10
IanM
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 28th Jan 2003 19:52
Damn it! I forgot the shameless self-plug

Here's a link to my plug-in for tiling too : http://www.matrix1.demon.co.uk/DBPro/Matrix1Map_exe01.zip

Internally, it does pretty much the same thing. If you need it to do more, I'm looking for suggestions... just email me.
Garfield1983
21
Years of Service
User Offline
Joined: 13th Nov 2002
Location:
Posted: 29th Jan 2003 02:17
The plug-in sounds great Ian but unfortunately I only have DB (v1.12 Enhanced), and not DBPro=S

I kind of understand your code above but am stuck with some bits, coudl you repost it without the scrolling? I'm not really concerned with that right now, I just want to know how to paste my tiled images onscreen in the right order to make up my scene.
If it's too much trouble you don't have to, thanks again=)
Shadow Robert
21
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 29th Jan 2003 05:48
The Pixel and Vertex Shaders are wrong cause Dx9 is capable of v3.x

and there are alot more additions to the APi setup than simply a few new features like that

Anata aru kowagaru no watashi!
IanM
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 29th Jan 2003 14:14
Garfield1983: The code that does the work doesn't change much, but here it is

Garfield1983
21
Years of Service
User Offline
Joined: 13th Nov 2002
Location:
Posted: 29th Jan 2003 17:23
Thanks Ian! Will let you know how I get on=)

Login to post a reply

Server time is: 2024-04-19 01:05:13
Your offset time is: 2024-04-19 01:05:13