The CE2Devs Group gathers teams and individuals that have chosen Crytek's next-generation engine to power their upcoming Map, MOD or Game.

Report article RSS Feed Crysis Mapping #2

Continuing were we last stopped, lets add some trees :D

Posted by Arxae on Nov 12th, 2007
Basic Mapping/Technical.

Crysis Mapping #2


 



1. Intro
In the previous tutorial (Here) we created a basic landmass.
But this landmass has only a texture and shape but no trees, grass or any other sort of life on it.
We will now show you how to add vegetation, some objects and an A.I.

2. Setting up and placing your first piece of vegetation
We will first place some trees after all, the spiritual successor to far cry without trees is like a fps without guns :p

Go to the roll-up bar to the right and select the terrain tab, and click on the vegetation button.
Optional: You can create a vegetation category to separate your grass and trees but this is not necessary
vegetation category add

 

 

 

I usually don't use the categories but i will probably use them when i start using allot of vegetation.
Since separate categories for 3 trees, 1 patch of grass and 2 rocks is a bit overkill :p

Now press the add vegetation button and we will start adding some vegetation to our list :D
add vegetation object

 

 

Navigate to ./data/objects/natural folder and start selecting some out of the folder :)
NOTE! As with allot of stuff in the demo editor, some objects and textures might be missing :)

For this tutorial, pick 1 tree and 1 grass patch (doesn't really matters which one, you can experiment later :D)
First select your tree and look at the properties window.
I will explain the important settings and give a recommended value between ()

  • Size: The maximum size the vegetation can have (depends on the type of vegetation test and see)
  • SizVar: How much does the size varies among the vegetation (between 0.5 and 1)
  • RandomRotation:Gives the vegetation a random rotation when placing (true)
  • AllignToTerrain: Places the vegetation so it doesn't clip into the terrain
  • UseTerrainColor: Blends he vegetation with the texture color below it (sometimes doesn't work so you need to try and see if it does, if it doesn't work, just leave it)
  • Bending: The procedural bending of the trees (0.8 is a good value)
  • Density: The density of the trees when painting vegetation (varies)
  • CastShadow: If set to true, the tree will generate shadows on the terrain and other objects - if they have the receive shadow setting set to true - (a must have, true)
  • RecvShadow: If set to true, this tree will also receive shadows (true)
  • UseSprites: If set to true, imposters will be used* (true)

*imposter = when the trees are far away, they will be replaced with sprites to increase performance.

Experiment with these settings later on (don't forget to give them to the grass patch to)
Now we are ready to finally place some trees :D

Select the tree you want to place, hold shift and left click on a spot on your terrain.
There is the tree :D
Now placing a entire forest/jungle in this way will be gruesomely slow so the people at crytek gave us the vegetation painter :D

3. The vegetation painter
This tool will allow us to paint vegetation in the same way we paint our terrain or our textures.
Click on the Paint Objects button.
You should change the brush radius to something (its up to you :) it depends on what you need)
Now hold the left mouse button in the perspective window en move it across the terrain and trees will pop out of the ground :D
Now place some trees and grass(or a rock if you have added it)
Just click on the desired object and choose one of the two placement methods.

4. Return of the Generate surface button
In the first tutorial we used the generate surface command to make our texture shows up.
Now we will generate a higher quality surface.
Why now when we are making our vegetation and not when we where making the terrain texture i hear you ask?
Well it has a option wich enhances the tree shadows that's why ;)
generatesurfacetexture

 

 

 

 

 

 

 

 

 

You should have seen this dialog box in the first tutorial but ignored the settings.
We will now take a closer look at the settings :)

The resolution of the texture allso depends on the computer you are using to make maps.
Generating higher resolution textures require a higher end computer
But 4096x4096 looks good enough for now.

The High Quality checkbox makes the texture higher of quality, tick this box :)

Calculate Terrain Sky Accessibility, this is the option wich makes the shadows look better :D
People who mapped for HL1, 2 or CS can compare it to the RAD step in compiling :)
On my computer this step takes 2-3 second to complete (small map with 20-30 tree) so its pretty fast
So the "...can take more then 1 hour) only applies to the larger maps with big jungles :)
trees

 

 

 

 

 

 

 

 

 

 

 

This can be a result of the previous steps (minus the shadows that is)

 

5. Getting some artificial life into the map
So what does every fps needs except weapons?
That's right...victims, targets, innocents call them whatever you will like :)
There are 2 ways of placing the A.I.: As a normal entity or as a Archetype Entity

5.1. Placeing as a normal entity
Placing them as a normal entity will give you a little more controll over the AI then a archetype entity but takes a bit more time setting up.
Go to the objects tab in the roll-up bar and press the entity button.
Naviagate to AI>Grunt and drag it into the perspective window.

If you cant see them, check that your axis constraints are set right:

 

 

 

 

 

 

 

 

 

 

 

These 2 settings can help you setting things to the ground :)
So if your grunt entity doesn't shows up, select it (either by clicking on it or using the selection dialog (CTRL+T)) and delete it by pressing Del on your keyboard.

After you placed it into your level, you will notice that he wont show up
This is due to the default model not being in the demo -_-
Select the entity and look for the model tag in the properties window.
click on it and then on the open button.
this will bring up the open model dialog.
Now i don't exactly know which models work and which don't but most of the light_*.cgf files work.
Choose a model file and if the guy shows up in the perspective window you have picked a working one :)
Now press AI>Generate all navigation in the top toolbar.
This will set up the standard waypoints so that the AI can run around (for cover that is :p)
But he wont have any weapons, so we have to give them some.
If you have deselected him, select him again and look for 'equipment pack' in the entity properties window.
Press the button with '. . . ' and the pack editor will open up
Assign him a pack or make one yourself (just make shure that you don't give him the TAC Launcher)
NOTE!: You need to press the reload script button or else he wont use this (this is a bug in the demo editor and should not be needed in the full version)

So now we have placed a AI entity, gave it a working model and equipment.
Lets shoot him shall we :D
Press CTRL+G to jump in-game, he will start firing at you (except when his equipment pack was empty) so make him pay XD

5.2. Placing a Archetype entity
So what is a archetype entity i hear you ask? well it is not a entity from the fear factory album i can tell you that -_-
You an see them as premade Grunt AI entities with model, equipment pack and scripts already attached.
So go to the objects tab and press the archetype entity button
But...its empty? great you broke crysis -_-
nah just kidding, the game doesn't have the necessary libraries loaded.
So open up the Database view by going to view>open view pane>database view
This will open up a window with several tabs
We need the first tab :)
Click the load library button and load asian.xml or asian_new.xml
Now you can close the database view and check the archetype entities again, now they are there :D
If they arent there, click the reload button.
Still not there, you might have done something wrong then :)

So select a entity and drag it to the perspective view(again only the light_* ones work)
and poof, he is there (if you picked a working one that is :p)
If you haven't done so, click AI>Generate all navigation in the top toolbar

6.Conclusion
Ok so the tutorial came out a little bit longer then i expected (wasent planing the AI section :p) but it came out ok i guess :p
You should have a small jungle with some trees, grass(and maybe even a rock :p) and some AI
Next tutorial will cover the basics of the flowgraph so we can get some interaction going :)
but that will be a long tutorial i thing :p
See you next time :)

PS: The TAC Lancher is the portable nuke launcher ;)
PPS: rollupbar>entities>items>taclauncher ;)

 

 

Post comment Comments
Pixilated|Punk
Pixilated|Punk Nov 15 2007, 3:52pm says:

Another good tut. Thanks!

+1 vote     reply to comment
Arxae
Arxae Nov 16 2007, 11:05am says:

im preparing the next one
its about the flowgraph and since it is verry important to mapping, i am making it as good as i can :D

+1 vote     reply to comment
111Killer111
111Killer111 Nov 25 2007, 3:41am replied:

Thank you, i have givin up on this editor untill i saw your tutorials *bows down to the master*

+1 vote     reply to comment
Arxae
Arxae Nov 26 2007, 11:19am replied:

haha thanks :)

+1 vote     reply to comment
A13X
A13X Jan 1 2008, 2:43pm says:

Mine always crashes, I had an amazing forest about to save and the whole thing crashes, no saved games, had to start from a shite terrain, any ideas?

+1 vote     reply to comment
Rasirez
Rasirez Jan 26 2008, 12:16pm replied:

Turn autosave on? start again maybe?

+1 vote     reply to comment
zoq2
zoq2 Jan 1 2009, 4:02pm replied:

If you run vista, run as admin

+1 vote     reply to comment
Kopeli2008
Kopeli2008 Feb 9 2008, 12:22pm says:

i have a problem

I can't find the trees!

+1 vote     reply to comment
connell256
connell256 Feb 14 2008, 8:59am says:

i crash when i click AI>Generate all navagation
any way to fix ?

+1 vote     reply to comment
Duke2k2
Duke2k2 Mar 11 2008, 12:35pm says:

@Dark_Raver9 your Pics wont appear in the Tuts, how is this?

But good i find them, very easy instructions for bloody Beginner like me, thanks.

+1 vote     reply to comment
machette
machette May 5 2008, 4:52am says:

um im totaly new to this stuff but it looks likeits well done

+1 vote     reply to comment
treefrog-
treefrog- Aug 6 2008, 3:56pm says:

hi all, can someone help me out plz! i dont have the entity button in my rollup bar, would this be because i have the secial edition of crysis and not the demo version?

+1 vote     reply to comment
Pyrefly
Pyrefly Mar 25 2009, 6:38pm says:

heres a tip, add all the basic vegetation to the list and select paint object with all the vegetation selected

set distance to 35-60 and all the basic twists (randomrotation, sizevariable, shadowcasting, etc

now paint an entire jungle with just that brush :D

oh and good guide

+1 vote     reply to comment
Maxxx411
Maxxx411 Dec 15 2013, 5:32am says:

good tuto for a beginner.

+1 vote     reply to comment
Post a Comment
click to sign in

You are not logged in, your comment will be anonymous unless you join the community today (totally free - or sign in with your social account on the right) which we encourage all contributors to do.

2000 characters limit; HTML formatting and smileys are not supported - text only

Established
Nov 9, 2007
Privacy
Public
Subscription
Open to all members
Contact
Send Message
Email
Members Only
Membership
Join this group
Group Watch
Track this group
Tutorial
Browse
Tutorials
Report Abuse
Report article
Related Games
Crysis
Crysis Single & Multiplayer First Person Shooter
Related Engines
CryENGINE 2
CryENGINE 2 Commercial Released Mar 5, 2007
Related Groups
CryENGINE 2 Developers
CryENGINE 2 Developers Fans & Clans group with 216 members
Crytek
Crytek Developer & Publisher with 3 members