iphone racing game in cocos3d - iphone

I am working on iPhone racing car game development using cocos3d.In this how can I get detection of boundaries of road in road-map.I have done with load pod file for road-map.I also want to know about how can I implement physics for car accident.Is their any sample code of game from which I get some information or tutorial which I can follow?

If I were you, I use Unity. Check out their Car Tutorial that's what you need.
Good luck

There are very few examples and tutorials available for Cocos3D at the moment. Definitely nothing that fits your bill.
Your project sounds like a lot of pioneering you need to do. Particularly physics will be an issue, because both Box2D and Chipmunk are 2D physics engines. You'll need to find an iOS compatible, open source 3D physics engine. I like ODE, and I've heard good things about Newton too. I don't know if they're compatible with iOS though.
To add collision shapes to your POD files would also be a manual process requiring (self-made) tools or a lot of sweat.

Related

High Graphics 3D Game Development for iPhone

I have good experience with the iPhone development tools and making apps with window based applications and stuff. I am now trying to make an awesome 3D game, which is an area I have never tried out.
I am very interested in learning about the development of "INFINITY BLADE" and I am very curious to know how it was developed and how they were able to develop it with so much detail.
I had already looked at links like iPhone 3D Engines, but it seems outdated.
Where is a good place to start for learning HIGH Performance 3D games for iPhone / iPad ?
Could you share any tips on the development life cycle for the 3D Games ??
Tools used for making high quality 3D images for the creative side of iPhone Development ? And resources on the creative side ?
Could you share the game development life cycle for a particular app , or perhaps your comments on the development of Infinity Blade ?
This isn't a full answer, but I decided to post it anyways.
Infinity blade was written using unreal engine 3, which recently (or not so recently) got an export to iPhone option. Unreal engine is the same engine used for games such as gears of war. I'm assuming that the actual difficulty of getting high quality graphics to run well on the iPhone was handled by unreal engine. As for making the graphics, I'm sure they hired a (bunch of) 3D artists. You can get the UDK for unreal off of their website, which allows you to start learning with it. The only caveat is the cost of the engine when you actually want to release a game.
I've never actually used it so I can't give too much information on it, but you could try looking at cocos2d's lesser known sibling, cocos3d. That would probably be the most cost effective way to learn how to do some 3d game programming in obj-c.
http://brenwill.com/cocos3d/
But if you're looking to bang a game out quickly and learn a good amount about game development, Unity3D might be the best option. They have a few really good hands on tutorials.
http://unity3d.com/support/resources/tutorials/
I might be wrong, but I think Unity might require the use of C# under mono, in which case I'm not sure if that would be something you're looking for.

Unity 3D vs. UDK 3 for iOS

I have a couple ideas for some 3D games/apps and need to know which 3D engine to go with. I like the high-level approach of Unity and UDK. I have done some 2D games using cocos2d before, but I'm entirely new to the 3D world, which is why i think Unity or UDK are a good choice. I know about the differences in licensing, and i am more concerned with the learning curve instead of the licensing cost.
Plans:
A 3D "side scroller" that goes forwards (up) instead of to the side. Third person space ship. This would primarily be for learning. Tilt to steer, tap to jump. Very simple graphics, vertex coloring would be enough.
A 2.5D "side scroller" like the above one but with a car. This game would generate the levels randomly out of a couple prefab blocks of a certain length that fit together seamlessly.
A 3D augmented reality display for pilots with a terrain mesh loaded from DEM data. Accelerometer and GPS access required.
Other important points:
Must be able to tie in to In-App purchases.
The more community content like tutorials and forums the better.
Ability to add third party libraries like Flurry Analytics is a big plus! But i guess this isn't possible?
Which engine would you recommend for these projects, and why? Preferably, i'd like to pick one and stick with it.
You’re going to have a way, way better time developing with Unity. UDK’s got a fantastic, incredibly capable engine, but its tools don’t have the ease-of-use of Unity’s, its developer documentation leaves a lot to be desired, and the community hasn’t been using it for long enough for there to be much help to be found there. Some quick Googling suggests you can write your own Objective-C plug-ins for Unity games, so in-app purchases and third-party libraries are definitely a possibility. I think Unity’s your best bet.
What about cryengine? it free for non commercial use and also provides mono c#.
Check it out CryEngine

How to create an AI in Cocos2d?

I am making a game (obviously) and to make it a remotely good one i need to have an AI. The problem is, where do I begin? I haven't done anything like this, and any help is appreciated. Links, other posts, tutorials, anything will suffice. Also note that I would like to have more than one enemy on the screen at once, so each of them will need an AI. Like I said, any help is appreciated. Thanks!
first: AI don't need/use Cocos2D classes
you need to build AI specific classes that controls your game objects/sprites etc...
second: this link covers some basics of game AI
and this post explains how to make a finite state machine (FSM) in Objective C
a FSM is the most simple technique to build an AI in a game
Finite State Machine is the most common technique used for AI on mobile devices.
You also need to consider how much complex processing target device can handle without hampering user experience.
There's a good book for cocos2d: "Learning Cocos2D: A Hands-On Guide to Building iOS Games with Cocos2D, Box2D, and Chipmunk". You should check that out if it's your first game with cocos2d.

Any idea about an iPhone Accelerometer Library?

Have looked so long for a library specialized in dealing with iPhone Accelerometer but couldn't find anything.
I have made some few sample apps, but none reaches a level of accuracy as in Labyrinth games for example, so any idea about a library for that? Or maybe an open source app?
Would be better if it's integrated in a Physics library
UPDATE: I didn't mention it, but i don't want to use game engines. Specially now, that their future is still unknown. ObjC libraries or tutorials would be better.
I highly recommend looking at tweejump. It's basically an open source version of games like Doodle Jump. It really helped me learn how to use the accelerometer to control an object on the screen.
Although you said you didn't want any game engines, this is powered by the Cocos2D library. However, Cocos2D is written in Objective-C, so there shouldn't be any issue getting anything powered by Cocos2D passed Apple.
Best of luck!
It seems that it may just be easier for you to use a game engine that works with iPhone if you are looking to make a game. Here are 2 engines that export to iPhone GameSalad or Unity 3D

What do I have to learn to get done with a 3D racing game for the iPhone? What Tools do I need?

I know Java pretty well. I know now most of the Basics in Objective-C.
I know nothing about Photoshop. I know how to use TurboCAD 10 Professional, so I do have some experience in 3D object modelling. Although not much.
What do I have to learn step-by-step, to come to 3D game Development for iPhone? What Tools do I need? Which Books help out? How long did you learn?
Learning the basic ins-and-outs of OpenGL ES on the iPhone took me about 3 weeks. I post some of my observations on the subject here. The source code to my Molecules iPhone application, which uses OpenGL ES, is available here. Maybe you'll be able to find something useful in that example. However, there's nothing in there that deals with textures, which you'll probably need for your game. Bill Dudney has posted source code for a Wavefront OBJ modeler on the iPhone that may help in that regard. For a good text on OpenGL ES, I'd recommend "Mobile 3D Graphics: with OpenGL ES and M3G".
When it comes to Cocoa development in general, it will take you a little while to get up to speed. For me, it was about 6 months before I felt comfortable with it, although that was in the more complex Mac desktop environment. I post some resources for learning Cocoa here, although that's by no means an exhaustive list.
I agree with diciu, this is a bit much for someone just starting out on the platform. I'd find a simpler application or series of targeted applications (that you may never even release) to help you learn the core concepts before you leap into 3-D game design.
Your goal is very ambitious - I think it's a very hard project to tackle as the first project on the iPhone and you'd be better off starting out with a couple of simple Cocoa touch applications to get a feel for the platform.
For a simulation game I would start with experimenting with some physics engine such as bullet. Bullet is C++ and you can use it from Objective-C++.
For rendering 3D you probably want to use OpenGL ES.
I guess that OpenGL is worth a look.