Tip:
Highlight text to annotate it
X
Hi guys, its me again
You see I worked a little bit on my example terrain
Today I will show you how to place objects
What you see here is going to be an island inside a lake
First step: Create groups and layers! Did I mention that this is important? ;)
I will place a bridge first, so I create a layer for it
Dont create one layer for only one object! Create one layer for a group of objects that belong together
First we need the asset browser
All (important) objects are inside of 'environment_levels'
After youve worked with redkit for a while you will know where to find the stuff you want.
As long as you dont know: search for it
Drag and drop your object onto the ground
Mesh= Mesh without collision Static Mesh = Mesh with collision (Use this!) Impostor Mesh = useless, dont use this. Never use this!
Step size of rotation is too big - fix that up here
The left one is for movement step size
Here world coordinate axes are active
So I cannot move the bridge straight forward, at least not in the direction I want
'Local' switches to the OBJECT's coordinate system
That works much better :)
The bridge is still too short, so i scale it up
I need the same thing on the other side - so I copy it
But I cant paste it. oO
Because I forgot to close 'World Environment' You remember part #2? ;)
Ok lets copy this again...
Now it works :)
You can place all objects like this. Not too difficult.
Time to walk around in our world.
We need a new kind of area to do this
Make sure that areas are visible (CTRL+alt+F)
Create a new layer...
...and a 'Path area'
Scale it up
And stick it into the ground. It must be a bit below the terrains surface!
Also important: Dont make pathareas too big - they wont work then
If you can walk below (or meters above) your terrain or through objects...
...your path area is too big! Then you have to scale it down
Because path areas must not be too big we need lots of them
Make sure they overlap! You can only walk inside those path areas.
But first we have to generate a navigation mesh.
You might get a message here 'There is no path layer...Add one?' Just click 'Yes'
Just click these button one after the other
We need to get close to the ground now - otherwise we would spawn in a corner of the world and not where the camera is
Lets walk around and look if path area and collision work as they should
As you see I cannot walk on the bridge. Lets fix it ;)
We have to change pathEngineCollisionType
Dont forget to recalculate Navigationmesh - it does not update in realtime
Now it works :)
Ok -.- The step is still to high here. Will have to fix it later.
Sometimes we also place 'Entity templates', not only meshes.
Let me show you an example...
Some objects (like this house or the big trees in flotsam) consist of multiple objects...
...Which are merged in an entity template
So its easier to place one entitiy template instead of many meshes (try to position the parts of this house by hand and you will see what I mean)
Working with groups and layers... you remember? ;)
There is also a 'snap to terrain' function.
Quite useless for this house, but sometimes its great :)
'Snap to all' also considers other objects, not only terrain
This house casts a shadow.
The bridge does not.
Lets add one (to the bridge's layer)
There it is.
You only have to do this once (unless you add more objects to this layer), it will be saved.
Thats it for now. Bye ;)
Next time: Vegetation!