I'm searching for a method to implement an app with swift 3. I would like to insert a window where I can view a 3D object and move it (like zoom, rotation etc).
Is it possible? How can I do it?
Thank you so much.
Lorenzo
The Apple technology that you need to look into is called SceneKit. SceneKit is a toolbox for creating and viewing 3D objects and... well... scenes. It is high level and easy to work with, but makes effective use of much lower level, performant technologies. The developer documentation can be found here:
https://developer.apple.com/documentation/scenekit
Related
What is the best software to create a 3d model of the earth, in which the user can rotate and zoom in. When the tap on a location, it creates a pinpoint to mark it. How would I go about this? I am new to 3d models, so any help is greatly appreciated. I want to place this model into an iOS app (Xcode).
You are asking a lot and I think you should try doing it yourself first. If this seems hard, try searching for a tutorial.
Here is briefly what you should do and a link to a tutorial, post or thread to all of the steps:
1. Create a model of earth and apply a texture on top of it.
If you want to create your own model, I suggest you use blender, which is what I personally like the most of all 3D editing softwares currently available. Blender Guru has an awesome beginner course about blender.
If don't want to create your model all by yourself, TurboSquid has a ton of free models for you.
(Even nasa has made a 3D model of the earth!)
2. Implement a camera orbit feature
This can be hard for beginners like you and me, but luckily Emma Prats has an amazing tutorial about it!
3. Implement code to instantiate objects on top of earth
This thread should help.
If you need help on something, make sure to post it here and we (the community) will try to help!
I was wondering, what is the easiest way to create an animated 3D cartoon. I want to create a character which moves and talk. I am not familiar with an easy way to do it, I used Blender and Unity but I was wondering if there is an easy way to do it? as I believe that not everyone doing 3D cartons have to dig deep in coding, they certainly use a software/GUI or something to create it.
I am not sure what easy is defined for peole but someway might be easy for me , it may be hard for you. I think it is based on experience in the past.
If you want to create a custom 3d animated model, you need to model it first. Or you can find a 3d model which is similar to your model, so you can edit it. But you are going to use a 3d modeling programs like; Blender, 3ds Max, even SketchUp might work.
One easy way. Which requires less work
You can check Adobe Fuse. Which lets you select predefined parts and lets you create a 3d humanoid model. You can tweak them a bit. After completing you can export it to Mixamo where you can rig your model (also you can select premade models here). They have alot of animations to go. After selecting your animations you can import it to Unity.
Animation techniques
For most of them, you will need rigs. When you rigged a model, you can create animations with those rigs.
This is my one of the old works from university.(Ignore the music please :D) Before i make the animations, I've recorded myself on the exact angle with model, (Front and side 2 videos) and used my video as refence while animating. To conclude i used key frames. And Blender made the rest (making transaction between keyframes). This is one of the techniques.
--EDIT--
This might give you more information about the video referencing.
More budgeted projects mostly use mo-cap. Here is one example for facial animation.
There are also cheaper infrared cameras like Kinect which allows you to do mo-cap. But results are not that promising. You can find more than few assets in the Unity Store. But i suggest you to use at least 2 cameras if you choose this way.
There might be more ways to create 3d model animation. I am not an animator. But those are that i know.
Hope this helps! Cheers!
I want to construct a 3D Maze tha will appear on the iPhone screen but not in the typical above-the maze view but in a Wolfenstein walking inside-around the maze fashion.. Excuse my terminology but I'm quite new to this :)
My questions are the following:
What tools should I use to build my 3d maze? XCode's OpenGl or Quartz Composer?
Given that I want a fairly simple design is there some even simpler tool I can use to design the maze and then import it in my Objective-C project to integrate user/iphone interaction to this?
More importantly though: Regarding the user's movement around the maze, it will involve some elaborate motion event handling and not your typical click left/front/back/right arrow to move around.. Does that affect in any way the tool I will be using to construct my maze or is this irrelevant?
Thanks in advance for any help!
You could (and probably should) do it with Unity 3D. In fact, somebody already has.
i am building a game which is similar to the Plain Jane Flash Game for the iPad. I have decided to use cocos2d for the same, while exploring the cocos2d there are lots of option i am having. i am confuse in which elements/controls would be best for this type of game Please guide me or share any link/tutorial on cocos2d which have similar user interface.
I mean shall i use CCMenu/CCmenuItem or there is another control which is more suitable...
shall i use Sprite or simple image would be sufficent as i do not need to move anything in it.
Thanks
Although your question was not very clear, I assume your referring to the functionality of dragging and dropping different clothing items onto the game avatars. A custom CCSprite object would be much more appropriate for doing that.
However, there is not an easy answer for what you are asking. Creating a game like "Plane Jane" will involve many problems that I'm sure have not crossed your mind. I recommend you complete a few Cocos2d-iPhone tutorials before you go any further. Once you do that, you will have a much better understanding of the functionality you will need to create your game.
Here is a nice tutorial for starters:
http://www.cocos2d-iphone.org/archives/582
When you drag an iphone GUI element like a list, it scrolls in a physics correct way, and also has a nice bounce effect at the end.
I would like to write a GUI element in my game, without using UIKit. I wonder where is the code implementing this, and if I can use it instead of trying to write something similar.
Any ideas?
I think that a physics engine would be overkill for just animating a gui element (unless you already have a physics engine in your game).
You could try using animations but I've no experience of doing this without UIKit but I suppose you would start here?
If you didn't want to use Core Animation, I would take a look at Robert Penner's easing equations - they're in actionscript but are pretty simple to port to C and would be a good start to get your own animation code started.
Hope this helps,
Sam
You can perhaps use animations to achieve this, you can define animation paths for bouncing or doing whatever it is you need and activate them when needed. I think the example project MoveMe can help you out
I can recommend the O'Reilly book "Physics for Game Developers" by David Bourg, which has great coverage of algorithms and code for all sorts of simulations. You probably want to start with motion affected by drag for the flick and gradual slowing, then look at a spring model to simulate the damping at the end.
box2d is an open source project that provides a great 2d physics engine.
this library is used by Intel clutter, which is a nice physics oriented UI library that is capable of running on mobile devices. that means that box2d is already optimized for mobile platforms like the iphone.