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! / Camera and 2d grid?

Author
Message
Lightwar siX
20
Years of Service
User Offline
Joined: 24th Jun 2004
Location:
Posted: 15th Jul 2004 08:25
Im currently working on a grid type strategy game that has a grid generated by a pasted image loop. My question is it possible to place a camera for 'zooming' in and out on the grid? I tried to fiddle with the camera functions but all i could yield was a green screen.

Bah
Lightwar siX
20
Years of Service
User Offline
Joined: 24th Jun 2004
Location:
Posted: 15th Jul 2004 14:19
guess i stunned the forums with that one :p lol

Bah
zenassem
22
Years of Service
User Offline
Joined: 10th Mar 2003
Location: Long Island, NY
Posted: 15th Jul 2004 14:28 Edited at: 15th Jul 2004 14:32
Lightwar Six,

I could be wrong but I think that mainly it's because this is in the 2d Board, and most of us that post here use the camera commands all too often. I'm not positive but I believe if you wanted to use the camera in this way you have to used texured plains rather than just a pasted image. You may want to post this in the DBpro board, or possibly the 3d board.

I know you could do it with matrix's as well. I'm just not sure about using the cameras in combination with a Pasted 2D image.

I will look at tehe possibilities tomorrow when I get my computer back and I can actually test some code. It's at work, and I haven't returned yet this week. Should be going in tomorrow.


~zen


Lightwar siX
20
Years of Service
User Offline
Joined: 24th Jun 2004
Location:
Posted: 15th Jul 2004 16:03 Edited at: 15th Jul 2004 16:06
Hi,

Thanks for the reply. I guess you are probably right about this not being under the proper forum. Id be interested in what you might discover although i think i may just scrap the idea. I keep getting all these ideas for this game and half of them so far have proved to be extremly difficult to achieve. And to think i originally started all this out in c++. took me a good day and half just to get the DirectX initilization code right.

Bah
zenassem
22
Years of Service
User Offline
Joined: 10th Mar 2003
Location: Long Island, NY
Posted: 15th Jul 2004 16:22 Edited at: 15th Jul 2004 16:26
Don't worry, DirectX setup in C++ is lengthy, especially if you truly encapsulate everything in wrapper classes ala C++ rather than the easier though less organized C way. Never mind writing all of your own 2D classes , 3d classes, network, joystick, etc... I think that my 2d engine using directX 7 ran over 130 pages, and it only covered up to 24 bit-depth images. It's easier to get going in SDL or using a game library like Allegro.

I don't think that this is too difficult to achieve, but I personally don't know the answer off hand. I am fairly sure I will have an answer for you tomorrow, or someone else will se the post and comment. IanM checks the 2d board regularly as does Cattlerustler. I will need to figure it out for one of my projects as well, so it will be benneficial to both of us.

Before you posted this question, i figured that I would have to use sprite for my tiles and stretch and resize them to give the appearance of zoom facotrs. I'm sure it wouldn't look all that good though.

And I didn't mean to imply that you posted in the wrong forum, as you were asking a 2d question, I just figure if it does require using flat 3d plains that it is perhaps the reason why your question was being passed over. Either way we will find out the answer to this.

~zen


Lightwar siX
20
Years of Service
User Offline
Joined: 24th Jun 2004
Location:
Posted: 15th Jul 2004 17:21
Well you know at first before i even bagan to write any c++ code i briefly looked over what DB had to offer and came to the conclusion that it wasnt worth it i mean it all sits on a stack anyhow. The fact that DB has little or no structure to it was a major factor for not wanting to even try it. When you have 50 characters on a battle grid each with its own abilities and attributes i couldn't imagine the nightmare it would be in DB. However i then read an interesting article about being a 1 man game development team and it basically said this "dont expect much, it'll take too long etc etc"

I then tried the DBpro trial and i was pretty enthuised about what i might come up with in a short period of time (versus long nights with the .NET IDE open). Anyway being able to have extensions and what not the possibilites are near endless with DB id say. Came up with a quick and simple grid with a map editor in a few weeks (1,2 hours a day). So here i am learning all over again.

I have yet to deal with a matrix or this 'texture plane' you speak of Its all mostly moot at this point. Im a little concerned about the performance too. My target machine in a 350mhz p2 with no 3d acceleration so im not sure if it would even be able to handle a 'camera' let alone even execute the program lol.

Bah
Pincho Paxton
22
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 15th Jul 2004 19:47
You can't use the camera with a pasted image, but you could use the camera with an image textured onto a plain. This technique is often used with 2D simulated games. So it is kinda 2D related.

Login to post a reply

Server time is: 2025-05-15 09:30:02
Your offset time is: 2025-05-15 09:30:02