Reputation: 4994
A few questions to game developers. I am very beginner in this. I want to create a game level for example a green plane with trees. I have played a little in Blender and SceneKit. I know that I can export .dae
from Blender and import it to Xcode. My questions:
.dea
file or make it separately? For example one .dea
for plane and four different trees in for .dea's
How to merge them in Xcode?.dea
to generate for example a forest? How?I will be very great full if somebody someone dedicates to these questions. It will cut my time to learn basic. Thanks in advance. :)
Upvotes: 4
Views: 2428
Reputation: 2338
I'll tell you how I do it:
1) .dea files use only for models(trees, charecters, building, etc...)
2) Game scene: floor, models, light, camera, obstacles build using Xcode scene builder or by code or mixed (based on the scene).
3) Based on size of world/level it can be split into several scenes(visible/invisible by player). Then you can create one blank scene and load/unload these scenes during runtime.
4) For a model you create a reference and after that build forest using reference of tree. If in the future you need to change the color of tree, all trees in all scenes will be updated.
5) For each model(SCNNode) (loaded from .dea file) you can set scale attribute (from code or by Xcode scene builder)
Also, 3D Apple Games by Tutorials is very good for starting.
Upvotes: 2