Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > xcode - driving simulator

xcode - driving simulator
Thread Tools
Mac Enthusiast
Join Date: Dec 1999
Location: UK
Status: Offline
Reply With Quote
Jun 11, 2006, 09:02 AM
 
hello

I am interested in creating a driving simulator (for learning purposes rather than another racing game)

I am a beginner in programming and I was told that xcode is the application I would want to use

however I am completley new to this and was wondering if there are any resources for learning how to create a virtual enviornment?

rich
PowerMac G5 Dual 1.8GZ, 2GB RAM, 150 & 300 GB Internal Hard Drives, AGP Geoforce 5200 64MB Graphics Card, Superdrive.
     
Professional Poster
Join Date: Oct 1999
Location: :ИOITAↃO⅃
Status: Offline
Reply With Quote
Jun 11, 2006, 10:05 AM
 
Eh, maybe start by setting your sights a little lower. Plan to learn the basics of programming first?
     
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
Jun 11, 2006, 12:37 PM
 
What Mithras said. If you're planning on doing 3D stuff, not only will you need to know the basics of programming but you'll also need to know a lot of maths and be a confident programmer.
     
Mac Elite
Join Date: Apr 2005
Location: Las Vegas, NV
Status: Offline
Reply With Quote
Jun 11, 2006, 09:50 PM
 
You'll want to look into implementing OpenGL into your program. Even though Apple provides many ways of doing this, and OpenGL is quite intuitive, expect to pull out a lot of hair.

Math wise, you'll need to understand matices and matrix operations, vectors, and some other stuff. You'll want to have some grasp of aspect ratios and perspective projection.

Beyond that, you'll need a means by which to create 3D objects as well as textures for them, and load them into your OpenGL UI... (unless, that is, you feel like defining many thousands of polygons with code).

this is a pretty helpful start. He provides a MacOS/Xcode compatable version of the popular NeHe OpenGL Tutorials, as well as a method for loading *.obj files.
http://dhost.info/joetheprogrammer/wordpress/
Note that his method avoids the use of a nib file for creating your OpenGL window, so don't expect to have the convenience of Interface Builder at your side... well, at least not for the main OpenGL window, and I'm assuming that'll be your only window.

I'm all for shooting high, so I say give it a stab (I mean, as a beginner programmer, you've had some experience before, right?) and if it gets to be too much, setting your sights lower wouldn't be a bad idea. It'll take a little more time, but programming is a tedious thing anyway. Just don't give up.

This is a sample code Apple has made available as a template for developers seeking to create an event based OpenGL application. It includes a full OpenGL implementation, featuring full system capapbility checking, as well as a ready-to-go event handling system. In order to make any use of it as a template, you'll need to understand how OpenGL works, as well as how the Carbon event manager works.
http://developer.apple.com/samplecod...dow/index.html

Best of luck!

"In a world without walls or fences, what need have we for windows or gates?"
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 10:51 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2