Hey,
The deal...
I'm coding my own engine design right now and, being new to everything, and having created my own brew as to how 3D data is stored, I need some help with basic functions. Basically, I need, well, the utter basics to allow me to mess around "live" with my code. I need to be able to display a window, get sizing info of the window, display coordinates and draw lines in between coordinates, take keyboard, mouse, and gamepad input, etc etc. I especially need to be able to use the window, take H/W ratio and pixel values, and use it to draw lines (and manipulate the lines) in between coordinates that I'm storing in arrays. The really simple stuff; however, I'm not using "traditional" 3D data (that's where my own design comes in), so I need to be able to take existing functions and use them for my own deals. Simple stuff... Just the basics of barfing a window up and being able to see things live and edit them live when inputting code. I'm just getting familiar with various game APIs, and I'd like really specific direction to navigate the sea of 'em out there.
Thanks for any help!
Basic window, coordinate, vector, and such display question
Started by Gnarlyman, Jan 13 2012 03:14 AM
4 replies to this topic
#1
Posted 13 January 2012 - 03:14 AM
#2
Posted 13 January 2012 - 04:02 AM
You might look into SDL, a commonly used library for 2D and 3D graphical apps and games. It can handle the details of getting a window on screen, receiving input etc. and is a lot simpler to use than the bare Windows API or other platform APIs. For graphics, SDL itself only provides 2D image loading and blitting (i.e. sprites), but it can also give you access to OpenGL to do hardware accelerated 3D graphics.
You could also look at the NeHe tutorials on OpenGL (click the "Lessons 01-05" and other links on the right side). These show how to use the Windows API directly to create a window, get OpenGL running, and do some basic input handling.
Or, if Direct3D is more your thing, you can certainly find plenty of tutorials online about getting that up and running in a window as well.
Finally, you might want to pick up a book on OpenGL or D3D, instead of relying on internet tutorials. That might give you a smoother and certainly more complete introduction to the subject.
You could also look at the NeHe tutorials on OpenGL (click the "Lessons 01-05" and other links on the right side). These show how to use the Windows API directly to create a window, get OpenGL running, and do some basic input handling.
Or, if Direct3D is more your thing, you can certainly find plenty of tutorials online about getting that up and running in a window as well.
Finally, you might want to pick up a book on OpenGL or D3D, instead of relying on internet tutorials. That might give you a smoother and certainly more complete introduction to the subject.
reedbeta.com - developer blog, OpenGL demos, and other projects
#3
Posted 15 January 2012 - 08:24 PM
Reedbeta,
Do you have a preferred API/APIs library? I'm developing my prototype code for an online-based game "portal" which I'm sure will use client-server structure vs. flash or "webgame" format stuff. I'm trying to get a handle on potential issues which, well, I don't know if they're actually issues, but things like different browsers, PC and Mac OSes...etc. I don't know how much those things would really affect a site like mine, but I would like to adapt my prototype code to a language and API set(s) that would smoothly run independently of browser and OS. Or at least, run on the major ones.
Do you have a preferred API/APIs library? I'm developing my prototype code for an online-based game "portal" which I'm sure will use client-server structure vs. flash or "webgame" format stuff. I'm trying to get a handle on potential issues which, well, I don't know if they're actually issues, but things like different browsers, PC and Mac OSes...etc. I don't know how much those things would really affect a site like mine, but I would like to adapt my prototype code to a language and API set(s) that would smoothly run independently of browser and OS. Or at least, run on the major ones.
#4
Posted 06 February 2012 - 10:51 AM
Have a look at my website for a bunch of video tutorials that explain each step of the process: http://www.marek-kno...hp5?vmk=gameEng
I start off the series with nothing but an empty project, and by the time you are done you'll have a functional game engine you can use to create a 3d game like Ghost Toast:
http://www.marek-kno....php?f=30&t=531
I start off the series with nothing but an empty project, and by the time you are done you'll have a functional game engine you can use to create a 3d game like Ghost Toast:
http://www.marek-kno....php?f=30&t=531
C++, 3D OpenGL and Game Programming video tutorials:
www.MarekKnows.com
Play my free games: Ghost Toast, Zing
www.MarekKnows.com
Play my free games: Ghost Toast, Zing
#5
Posted 17 February 2012 - 12:25 AM
You rock marek. That looks like a goldmine. Thanks a million, I'm certainly going to cruise your site a bunch.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users












