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.

Dark GDK / Camera position for top down game

Author
Message
Iuzidal
15
Years of Service
User Offline
Joined: 25th Jun 2009
Location:
Posted: 14th Jul 2009 03:30
In taking a first step in 3d, I decided to make things simple and limit myself to a top down 2d game. My first question was where to put the camera. Seems simple enough.

Assuming a left handed coordinate system I believe the natural place would be to subtract from the z coord so I see down on a x/y plane as I'm used to. When I think about orientation, heading rotation is about the Y axis, so if I wanted to look "down" on my models I would add to the Y coordinate for the camera and use the x/z plane to move about on. If I don't have models in this orientation I assume the helper functions like "turnLeft" and "pointAt" won't work as expected.

Any suggestions on the easiest coordinate system to get started with? (This is for DarkGDK, but I think the question is independant of that)
JLMoondog
Moderator
15
Years of Service
User Offline
Joined: 18th Jan 2009
Location: Paradox
Posted: 14th Jul 2009 04:43
I'd position the camera in the positive Y plane, and then point the camera straight down. Then you won't have to re-orientate your models to work for a different view. It will also make it less confusing when your programing movement and any other functions that require path finding or object movement.

Iuzidal
15
Years of Service
User Offline
Joined: 25th Jun 2009
Location:
Posted: 14th Jul 2009 20:15
Thank you for the response Josh; very helpful.

Does anyone have some books specific to 3d game programming they would recommend? I have "3d math for Games and Graphics" and a good understanding of c++. Now I just need some reading material on 3d game design.

I've looked on amazon. "Game Coding Complete" and "Introduction to 3D Game Programming with DirectX 10" look promising.
Dar13
16
Years of Service
User Offline
Joined: 12th May 2008
Location: Microsoft VisualStudio 2010 Professional
Posted: 14th Jul 2009 21:14
3D game design, or 3D programming? If you're looking for game design/game writing I'd get The Ultimate Guide to Video Game Writing and Design.

BiggAdd
Retired Moderator
20
Years of Service
User Offline
Joined: 6th Aug 2004
Location: != null
Posted: 15th Jul 2009 05:24
I'll move this to the DarkGDK board. Although your question isn't asking for code related help, you are probably best off here.

Cheers,
BiggAdd

Mista Wilson
16
Years of Service
User Offline
Joined: 27th Aug 2008
Location: Brisbane, Australia
Posted: 15th Jul 2009 07:20
There are a number of free E-Books that you can download from the WEB that are specific to programming Games in C++, either with DirectX, or OpenGL.

There is a book titled "Learning Games and Graphics with C++" that uses DarkGDK as its graphics interface rather than straight directX code. So it is a much shallower learning curve(no winAPI stuff to worry about learning right away either like there is in the majority of "learning games and C++" books), in my opinion anyway. That book was actually featured in a recent TGC newsletter and looks very interesting, you can find a link to it from the DarkGDK page at thegamecreators.com .

Try searching through http://rapidlibrary.com/(although I believe alot of the books there are actually pirated so you would need to be careful you arent breaking the law, there are quite a few legit. freebies there aswell related to game programming in C++ and 3D in general - and it never hurts to know if something is going to be worth spending your money on or not ) or http://www.scribd.com/(scribd has a massive collection of EBooks, you cant download them unless you buy a membership but its all legal and as far as i know they have arrangements with publishers, but you can read alot of them and preview them before you purchase anything) or there is also http://my.safaribooksonline.com/ who are similar to scribd, but with more of a traditional library feel. Here is a quote from their website regarding how they work :

Quote: "Safari Library subscriptions provide unlimited online access to our full collection (books, Short Cuts, Rough Cuts and video are included). With this plan, you can also download whole books or chapters using download tokens. The other two plans include online access to books and Short Cuts only. 10-slot Safari Bookshelf subscriptions allow you to search across Safari's full collection and preview the content to determine which books work for you. But to access the full content, you must put it on your 'bookshelf'. (Each book stays on your bookshelf for 30 days. After that, you can leave on or swap out for a new book.) The 10-slot Safari Bookshelf subscription can hold up to 10 books at a time and allows users to download chapters using download tokens.

All subscription types include tons of timesaving tools (copy and paste code, jump to related content across several books, create notes, download exercise files, bookmark key sections, print out pages, build customized RSS feeds, etc.) and the ability to search and read directly from cell phones and mobile devices using our mobile-friendly website -- m.safaribooksonline.com.
"


Personally, I find online/electronic books more useful than the normal variety as I can carry around hundreds of them in my mobile(NokiaN95 8gig) while im out and they are just easier to use, bookmarks dont fall out, pages dont get coffee spilled on em or torn, that kinda thing

If it ain't broke.... DONT FIX IT !!!

Login to post a reply

Server time is: 2024-10-01 08:20:40
Your offset time is: 2024-10-01 08:20:40