| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
hpl2:tutorials:level_editor:outdoors [2019/02/14 22:35] darkfire |
hpl2:tutorials:level_editor:outdoors [2019/02/21 12:00] (current) darkfire [10. Summary] |
||
|---|---|---|---|
| Line 3: | Line 3: | ||
| This page contains more general guidelines about creating outdoor levels, rather than being a regular tutorial. It is assumed you already know your way around the Level Editor. Pictures to come! | This page contains more general guidelines about creating outdoor levels, rather than being a regular tutorial. It is assumed you already know your way around the Level Editor. Pictures to come! | ||
| - | __**Before you start:**__ Make sure that all plant models which you place have disabled collision (if they are static objects, because their collision is very buggy). Alternatively, create collisionless entities for every plant you are going to use. | + | __**Before you start:**__ Make sure that all plant models which you place have disabled collision (if they are static objects, because their collision is very buggy). Alternatively, create collision-less entities for every plant you are going to use. |
| ===== Nature ===== | ===== Nature ===== | ||
| Line 15: | Line 15: | ||
| ==== 2. Ground ==== | ==== 2. Ground ==== | ||
| - | A good way to create the ground would be to 'sculpt' with retextured (e.g. as grass) dirt models and leave a path texture underneath them. The absolute best would be to get a custom terrain model. However if that sounds too hard for you, you can use the following method:\\ | + | The absolute best method of creating the ground would be to get a custom terrain model. A more available, still good way to create the ground would be to 'sculpt' with retextured (e.g. as grass) ''dirt_pile'' models and leave a path texture underneath them: |
| + | |||
| + | {{ https://media.moddb.com/images/members/3/2982/2981770/profiletutorial/LevelEditor_2019-02-15_14-01-30-.jpg?nolink&565x314 }} | ||
| + | |||
| + | However if that sounds too hard for you, you can use the following method:\\ | ||
| \\ | \\ | ||
| Let's start with a plane. Depending on what you are trying to create, that might be dirt, grass, or maybe foliage mixed with wooden chips. Regardless of what you choose, you will need to create paths along which the player will walk. Of course you could leave those out, but usually when people live near nature, they form footpaths. | Let's start with a plane. Depending on what you are trying to create, that might be dirt, grass, or maybe foliage mixed with wooden chips. Regardless of what you choose, you will need to create paths along which the player will walk. Of course you could leave those out, but usually when people live near nature, they form footpaths. | ||
| Line 27: | Line 31: | ||
| Unfortunately, due to HPL2's limitations, we cannot afford to create a wide expanse of trees which will serve as the background. Besides, we need to constrict the players movement in some way; after all, it's a videogame you're making. After multiple different approaches, I found this to be the best solution for making a tree border: | Unfortunately, due to HPL2's limitations, we cannot afford to create a wide expanse of trees which will serve as the background. Besides, we need to constrict the players movement in some way; after all, it's a videogame you're making. After multiple different approaches, I found this to be the best solution for making a tree border: | ||
| - | Locate the tree backdrop texture, and create a vertical section which you will copy or extend. Now use that section to outline a rough parameter around your outdoor area. Make sure not to leave any narrow corridors, as you will be placing tree models by those textures. If there are any narrow indentations in the tree line, don't use this backdrop to create them - tree models will be enough. If you need a level transition which isn't an entrance to a building, create a corridor with a sharp turn, beyond which the player won't be able to see. | + | Locate the tree backdrop texture ''static_objects/outside/ground/zimmerman_ground_forest.mat'', and create a vertical section which you will copy or extend. Now use that section to outline a rough parameter around your outdoor area. Make sure not to leave any narrow corridors, as you will be placing tree models by those textures. If there are any narrow indentations in the tree line, don't use this backdrop to create them - tree models will be enough. If you need a level transition which isn't an entrance to a building, create a corridor with a sharp turn, beyond which the player won't be able to see. |
| + | |||
| + | Now you're ready to start placing trees. Firstly, to finish the outline, densely place tree models just in front of the backdrop. Of course you could use other models, but Amnesia's lowpoly pine model (''static_objects/outside/tree/pine_lowpoly_2'') is great for this purpose (and it helps the performance as well). After covering the whole perimeter, start placing regular tree models a bit further from the backdrop (make sure to differentiate and rotate the models!). You can place some trees in the open as well. Since you should be disabling the collision of all of the trees, you need to recreate it using the ''block_box'' entity (unless you have a custom tree entity, of course).{{https://media.moddb.com/images/members/3/2982/2981770/profiletutorial/LevelEditor_2019-02-15_14-12-40-.jpg?nolink&403x283 }}{{ https://media.moddb.com/images/members/3/2982/2981770/profiletutorial/LevelEditor_2019-02-15_14-19-33-.jpg?nolink&393x281}} | ||
| + | |||
| + | ==== ==== | ||
| + | |||
| + | {{ https://media.moddb.com/images/members/3/2982/2981770/profiletutorial/Amnesia_2019-02-15_14-34-31-15.jpg?nolink&640x360 }} | ||
| - | Now you're ready to start placing trees. Firstly, to finish the outline, densely place tree models just in front of the backdrop. Of course you could use other models, but Amnesia's lowpoly pine model is great for this purpose (and it helps the performance as well). After covering the whole perimeter, start placing regular tree models a bit further from the backdrop (make sure to differentiate and rotate the models!). You can place some trees in the open as well.\\ | ||
| ==== 5. Paths ==== | ==== 5. Paths ==== | ||
| - | Coming back to the topic of paths; having created the outline, we need to place paths, as they will be the basis upon which the details will be made. Select a decal of choice (I recommend the vanilla grass decal, but tinge it yellow so that it looks like dirt). Check the "Rotate randomly" option, and set the range from 0 to 360 degrees. Then set "Randomize scale" from, for example, ''1.5'' to ''2.5''. Setting a constant scale works as well, just make sure it's big enough to minimize the number of placed decals and that it's small enough not to look bad. | + | Coming back to the topic of paths; having created the outline, we need to place paths, as they will be the basis upon which the details will be made. Select a decal of choice (I recommend the vanilla grass decal). Check the "Rotate randomly" option, and set the range from 0 to 360 degrees. Then set "Randomize scale" from, for example, ''1.0'' to ''1.25''. Setting a constant scale works as well, just make sure it's big enough to minimize the number of placed decals and that it's small enough not to look bad. |
| + | |||
| + | {{ https://media.moddb.com/images/members/3/2982/2981770/profiletutorial/LevelEditor_2019-02-15_14-40-09-.jpg?nolink&202x282 }} | ||
| Start "drawing" the paths by placing the decals. Make sure that the path is rather irregular, jagged at the edges. To make the workflow faster, if the decal on your cursor doesn't fit, place it anywhere and hit ''Ctrl+Z'' in order for the decal at your cursor to change. | Start "drawing" the paths by placing the decals. Make sure that the path is rather irregular, jagged at the edges. To make the workflow faster, if the decal on your cursor doesn't fit, place it anywhere and hit ''Ctrl+Z'' in order for the decal at your cursor to change. | ||
| + | |||
| + | {{ https://media.moddb.com/images/members/3/2982/2981770/profiletutorial/LevelEditor_2019-02-15_14-40-12-.jpg?nolink&459x341 }} | ||
| + | |||
| ==== 6. Grass ==== | ==== 6. Grass ==== | ||
| Line 40: | Line 54: | ||
| Make sure to scale the grass model up in order to lower the number of placed models. Depending if you want short or tall grass, use scale from ''1.25'' to ''1.75''. | Make sure to scale the grass model up in order to lower the number of placed models. Depending if you want short or tall grass, use scale from ''1.25'' to ''1.75''. | ||
| + | |||
| + | {{ https://media.moddb.com/images/members/3/2982/2981770/profiletutorial/Amnesia_2019-02-15_14-48-25-37.jpg?nolink&601x337 }} | ||
| + | |||
| + | Unfortunately the grass texture I chose doesn't blend in with the grass model very well, so take that into consideration when you're choosing one. | ||
| + | |||
| ==== 7. Details ==== | ==== 7. Details ==== | ||
| Now, the level should look roughly fine. To add some flair to it, let's place details; Just randomly slap the following models all over the place: rocks from the debris folder (submerge them in the ground unless they're the flat ones), the gravel and puddles from entities (or static objects) /decals and bushes or other foliage models which you have. Just make sure not to overdo it, those models of the same kind should not be clustered together too much. | Now, the level should look roughly fine. To add some flair to it, let's place details; Just randomly slap the following models all over the place: rocks from the debris folder (submerge them in the ground unless they're the flat ones), the gravel and puddles from entities (or static objects) /decals and bushes or other foliage models which you have. Just make sure not to overdo it, those models of the same kind should not be clustered together too much. | ||
| + | |||
| + | {{ https://media.moddb.com/images/members/3/2982/2981770/profiletutorial/Amnesia_2019-02-15_14-56-59-80.jpg?nolink&664x373 }} | ||
| ==== 8. The backdrop ==== | ==== 8. The backdrop ==== | ||
| Line 52: | Line 73: | ||
| This is a topic for a whole different article, but here are some general tips.\\ | This is a topic for a whole different article, but here are some general tips.\\ | ||
| Cover the whole level with a BoxLight. Make sure it isn't too bright (''>0.7''), because it will look bad even if you're making a day scene. If you need sharper lighting, you can place some SpotLights in the sky here and there. Enabling shadows on them looks great, but unfortunately can decrease the performance significantly, so use it with caution. Use PointLights in the more lit areas (e.g. between trees). | Cover the whole level with a BoxLight. Make sure it isn't too bright (''>0.7''), because it will look bad even if you're making a day scene. If you need sharper lighting, you can place some SpotLights in the sky here and there. Enabling shadows on them looks great, but unfortunately can decrease the performance significantly, so use it with caution. Use PointLights in the more lit areas (e.g. between trees). | ||
| + | |||
| + | {{ https://media.moddb.com/images/members/3/2982/2981770/profiletutorial/Amnesia_2019-02-15_15-07-16-64.jpg?nolink&758x426 }} | ||
| + | |||
| + | Unfortunately, the MFP trees don't cast nice shadows, so I made a custom gobo from some asset I grabbed off the internet: | ||
| + | |||
| + | {{ https://media.moddb.com/images/members/3/2982/2981770/profiletutorial/Amnesia_2019-02-15_15-18-13-42.jpg?nolink&739x416 }} | ||
| + | |||
| + | You can download that gobo here: | ||
| + | |||
| + | [[https://www.moddb.com/addons/leaf-gobo|{{https://button.moddb.com/download/medium/174647.png?nolink&}}]] | ||
| + | |||
| + | ==== 10. Summary ==== | ||
| + | |||
| + | You should be pretty much done by now. Of course the scene have even more things, like particles (I added everyone's favouorite ''particles/ps_light_dust_large.ps'' for that fairy look, but it isn't very visible on screenshots) or some things from the next section… | ||
| + | |||
| ===== Man made structures ===== | ===== Man made structures ===== | ||
| Line 57: | Line 93: | ||
| But what about other structures ? You can create roads by elevating a texture above the grass and surrounding it with a curb; I made my curbs using the railing from castlebase and submerging it into the ground. Not the best move resource-wise, but for small maps it's ok. Generally, you can make a lot of stuff using planes and reusing models for something else, e.g. Use one of the square windows from castlebase to create a small fountain or a planter. | But what about other structures ? You can create roads by elevating a texture above the grass and surrounding it with a curb; I made my curbs using the railing from castlebase and submerging it into the ground. Not the best move resource-wise, but for small maps it's ok. Generally, you can make a lot of stuff using planes and reusing models for something else, e.g. Use one of the square windows from castlebase to create a small fountain or a planter. | ||
| + | |||
| + | {{ https://media.moddb.com/images/members/3/2982/2981770/profiletutorial/Amnesia_2019-02-15_15-40-59-24.jpg?nolink&662x372 }} | ||