iPhone iOS how to create a room for an iPhone game demo? - iphone

I'm building an iPhone core motion game demo and would like to have a virtual "room" around the user. The user would be using the phone with the core motion to "look around" the room through the phone. Attached is an example.
I'm not looking for anything fancy. 4 solid color panels for walls and 2 panels for the floor and ceiling would do. Pretty much a large cube with the middle at the user's location
What is the quickest way for me to create a room with a box geometry, putting the user in the middle? Can this be done with UIKit objects, or do I need to use openGL to render the panels? Maybe there's some kind of a game engine that I can use for these purposes?
I would want to rotate the room in the future.
Thank you for your input!

You won't be able to create a 3 dimensional environment without using OpenGL in some form. The best way to get started is to follow a good tutorial on OpenGL such as this one. You could even take this tutorial and put the camera inside the cube and voila, instant room. You would just need to add view rotation logic from core motion and you would be set.

Related

What approach should I use to create animated backgrounds in Unity?

I'm new to Unity and trying to figure out the best way to create animated backgrounds. To be clear, I'm not asking you to give me an exact solution or instructions, and I would be grateful if you just tell me which direction to look in, and I will figure it out by reading the documentation.
I'm interested in how animated backgrounds are created in 2D Unity (for example, as here: https://youtu.be/OxiGlmV6ByA?t=1075 flying leaves are visible on the background). I only thought of using particles or just creating standard animations in Unity. But, the second way seems too long and complex, and about the particles, I'm not sure how much it affects the performance in a mobile game. Google searches mostly give instructions on how to create parallax backgrounds or moving backgrounds in Unity.
In general, I will be grateful if you tell me which approach is the most optimal for creating an animated background in a mobile 2D game in Unity.
The particles system is well optimized, for what you want to do it will not affects the performance, even on mobile.

FPS character full body or Hands Unity 3d

I am making an First Person Shooter game using unity 3D, which will be multiplayer in future. So i want to use a full body for my FPS.
I am getting problem in placing camera for my FPS body. When i use only hands it works great.
Can any one tell which approach i should use for this .
1. Should i use two camera one form showing only hands and player weapon and one for showing the rest of view.
2. OR any other way.
I am using unity3d engine for my game development
Just draw the hands because unless your game allows you to look down and see your feet, a whole body approach might be a bit of a waste on computer resources.

iOS dev - sharing screen captures

I'm looking to write an app that lets users draw a game, something like tic-tac-toe, for example. One user would begin by drawing the grid, and then each player could literally draw their own O or X. It would be a multiplayer game where each user has his/her own device.
I'm not sure what would be the best way to share this data from device to device. I've only been able to think of 2 options:
Should I attempt to upload a screenshot to the server after each player makes a move?
Should I upload the exact points where the user is drawing and then redraw these points on the other user's screen?
Any other suggestions, or maybe a point in the right direction? I'm fairly new to all of this so please don't be too harsh ;)
starting out on a multiplayer game (even if it is a straightforward one) is ambitious :) if you don't mind restricting yourself to iOS5 and above, then i would check out the new turn based multiplayer game functionality. there's a good tutorial here:
http://www.raywenderlich.com/5480/beginning-turn-based-gaming-with-ios-5-part-1

scattering effect

I went through all my resources but I am not getting the scattering effect of an image smoothly. However, I am able to zoom it and I had scattered it but it is not as smooth as I want. I just want to click on a button and it should zoom and the other image should get scatter
I want the image to be scattered as the link given below is it possible in iPhone?
http://www.touchmagix.com/templates/diamond.htm
this is hell lot of graphics. If you intend to achieve this with iPhone sdk, start learning details about CALayer and then try to manipulate the movements of different objects. Which will require lot of coding logic.
My suggestion would be going for Cocos2D and try with the different classes and api's present there. In Cocos2D you can create an image which will act as an actual physical object and you can apply all laws of physics to it. Say if you create a ball, and you push it, the ball will go in the direction of the push and bounce back if it gets hit by any other physical object and you don't require to do any coding for this. Cocos2D takes care of all these things.
Try it.

iPhone app 3d engine or not

I am developing a simple iPhone app, which:
retrieves data from the server
presents the data
In order to present the data better I want to add nice 3d dynamic objects, for example:
a car with spinning wheels next to car sales bar chart.
power plant with smoke coming out of the chimney next to CO2 emission numbers
The questions are:
How do I work with the designer on this, what output should he provide for me (format)?
How do I put it in my application, should I involve some 3d engine/framework?
The team behind cocos2D has just announced cocos*3D* and this seems really promising.
The first public beta can be downloaded
http://www.cocos2d-iphone.org/archives/1274
You can use cocos2d for the iPhone and fake 3d with the art. So, you have a car that is drawn to look 3d but you're only using 2d to display it. The effects that you want to do don't require to use full 3d models.
You may also have a look at this one I discovered recently:
http://nineveh.gl/
It's pretty new but well documented and with video demos.