Difference between revisions of "Furniture, Traps, and Lighting"

no edit summary
imported>JBurgess
 
imported>Kkuhlmann
Line 2: Line 2:
== Furniture ==
== Furniture ==
Remember the stool we placed at the beginning of this cell?  There's a problem with it.  We used a static version of the artwork, which means that an NPC cannot sit in it.  This is what we want for the one on top of the table, but not for the one on the floor.  Navigate to the furniture heading and drag out "DUNStool" to replace "DUNStool01" in your scene.
Remember the stool we placed at the beginning of this cell?  There's a problem with it.  We used a static version of the artwork, which means that an NPC cannot sit in it.  This is what we want for the one on top of the table, but not for the one on the floor.  Navigate to the furniture heading and drag out "DUNStool" to replace "DUNStool01" in your scene.
<pre>
<blockquote>
The CS features a "Search and replace" feature.  To use it for this example, select "DUNStool01".
The CS features a "Search and replace" feature.  To use it for this example, select "DUNStool01".
Go to Edit>Search and Replace, and Choose "DUNStool" fron the "Replace With" drop-down.
Go to Edit>Search and Replace, and Choose "DUNStool" fron the "Replace With" drop-down.
Be sure you have "Selection Only" checked.  Note that this feature doesn't work with mulitple selections.
Be sure you have "Selection Only" checked.  Note that this feature doesn't work with mulitple selections.
</pre>
</blockquote>


Also under the furniture heading, drag "BedrollCrawlEntry" into the scene and position these in the tents around the camp area.   
Also under the furniture heading, drag "BedrollCrawlEntry" into the scene and position these in the tents around the camp area.   
Line 21: Line 21:


I've chosen the narrow entrance to the large room as the choke point for my trap, but place yours whereever you think it will be most effective.
I've chosen the narrow entrance to the large room as the choke point for my trap, but place yours whereever you think it will be most effective.
<pre>
<blockquote>
North is always the top of your screen when you hit the "T" hotkey.  There is an exception, however.
North is always the top of your screen when you hit the "T" hotkey.  There is an exception, however.
CS include a special marker called "NorthMarker", which forces North in the direction it is pointed.
CS include a special marker called "NorthMarker", which forces North in the direction it is pointed.
This marker is used to keep cardinal directions consistent from cell to cell.
This marker is used to keep cardinal directions consistent from cell to cell.
</pre>
</blockquote>


This is where our skeletal friend comes in handy.  Place him where you expect the hero to be at the point of impact.  Now, direct your attention to the mace trap.  Notice the red ball?  This is a special marker placed by the artist in 3Ds Max that shows us where the mace will be at the bottom of a swing.  It does not appear in-game.  In generaly, we want the trap to hit a player in the face or chest - higher or lower than that and the player may not see the trap coming.  We want them to see it just before impact; it's no fun to take damage from a totally unseen source.
This is where our skeletal friend comes in handy.  Place him where you expect the hero to be at the point of impact.  Now, direct your attention to the mace trap.  Notice the red ball?  This is a special marker placed by the artist in 3Ds Max that shows us where the mace will be at the bottom of a swing.  It does not appear in-game.  In generaly, we want the trap to hit a player in the face or chest - higher or lower than that and the player may not see the trap coming.  We want them to see it just before impact; it's no fun to take damage from a totally unseen source.


<pre>
<blockquote>
Remember to use "F4" to toggle on collision wireframes, and avoid intersecting havok and static objects!
Remember to use "F4" to toggle on collision wireframes, and avoid intersecting havok and static objects!
</pre>
</blockquote>


Now, position your tripwire and scale it to fit.  Note that some players will run through a cell, and others will walk or sneak - Setting up a trap that will get the best of players takes some luck, skill, and a lot of testing.  Plan to experiment with this for a while.
Now, position your tripwire and scale it to fit.  Note that some players will run through a cell, and others will walk or sneak - Setting up a trap that will get the best of players takes some luck, skill, and a lot of testing.  Plan to experiment with this for a while.


One mace is good, but won't two be better?  Use "Ctrl+D" to duplicate your mace, and position the second where you'd like it.  Now's the time to set the trap up.  First, double-click the maces and tripwire and check "[[Persistent Reference]]" in the box that pops up.  Now, double click the tripwire again.  Select the "Enable Parent" tab, and press the button labeled "Select Reference in Render Window".  Notice the crosshair cursor that now appears in the [[Render Window]]?  Move it over one of the maces and click.  Click "OK", and now double click on the mace you just selected, and do the same thing again, this time selecting the second mace with your crosshair cursor.
One mace is good, but won't two be better?  Use "Ctrl+D" to duplicate your mace, and position the second where you'd like it.  Now's the time to set the trap up.  First, double-click the maces and tripwire and check "Persistent Reference" in the box that pops up.  Now, double click the tripwire again.  Select the "Enable Parent" tab, and press the button labeled "Select Reference in Render Window".  Notice the crosshair cursor that now appears in the [[Render Window]]?  Move it over one of the maces and click.  Click "OK", and now double click on the mace you just selected, and do the same thing again, this time selecting the second mace with your crosshair cursor.
<pre>
<blockquote>
The crosshair cursor turns white when it is over a suitable object for selection.
The crosshair cursor turns white when it is over a suitable object for selection.
If the crosshair does not turn white, check to make sure the object is a Persistent Reference.
If the crosshair does not turn white, check to make sure the object is a Persistent Reference.
</pre>
</blockquote>
What we just did is called a "Daisy-Chain".  This means that when the tripwire is triggered, it will also trigger it's parent (the first mace), which will in turn trigger it's parent (the second mace) This means that we can theoretically trigger an unlimited number of maces from a single trigger.
What we just did is called a "Daisy-Chain".  This means that when the tripwire is triggered, it will also trigger it's parent (the first mace), which will in turn trigger it's parent (the second mace) This means that we can theoretically trigger an unlimited number of maces from a single trigger.
<pre>
<blockquote>
Everything about the procedure we just completed is determined by the Scripts attached to the objects.
Everything about the procedure we just completed is determined by the Scripts attached to the objects.
Different objects and scripts may behave differently, but most traps that ship with the CS obey similar rules.
Different objects and scripts may behave differently, but most traps that ship with the CS obey similar rules.
</pre>
</blockquote>


Now for a final touch - Select you skeleton and turn on havok simulation.  His collapsed bones are now a tiny visual clue to the player that there may be danger about.  Remember that you can use ctrl+alt to scatter the bones in a believable pattern.
Now for a final touch - Select you skeleton and turn on havok simulation.  His collapsed bones are now a tiny visual clue to the player that there may be danger about.  Remember that you can use ctrl+alt to scatter the bones in a believable pattern.
Line 50: Line 50:
Here's my setup (before collapsing the bones) for you to refer to:
Here's my setup (before collapsing the bones) for you to refer to:
<br>[[Image:tut_img_13.jpg|thumb|left|Trap Setup with Havok collision (F4) toggled on]]<br>
<br>[[Image:tut_img_13.jpg|thumb|left|Trap Setup with Havok collision (F4) toggled on]]<br>
<pre>
<blockquote>
An important caveat to remember is that havok objects can trigger traps.
An important caveat to remember is that havok objects can trigger traps.
If you leave an object such as a sword, another trigger, or bones touching the tripwire
If you leave an object such as a sword, another trigger, or bones touching the tripwire
then it will be tripped when you load the cell.  Remember to use F4 to check for this.
then it will be tripped when you load the cell.  Remember to use F4 to check for this.
</pre>
</blockquote>


== Lighting ==
== Lighting ==
Line 66: Line 66:


Now let's dress up "BurntRubblePile01" with a fire.  Drag the [[Activator]] "ActivatorFlameNode7" into the render window, and position it on top of the fire pit.  You may want to place a couple of flames here to get the look you want.  Toggle Havok simulation on if you want to preview how the flames look while animated.
Now let's dress up "BurntRubblePile01" with a fire.  Drag the [[Activator]] "ActivatorFlameNode7" into the render window, and position it on top of the fire pit.  You may want to place a couple of flames here to get the look you want.  Toggle Havok simulation on if you want to preview how the flames look while animated.
<pre>
<blockquote>
Activator flames will do damage to the player, and static ones will note.
Activator flames will do damage to the player, and static ones will note.
For AI purposes, NPC's do not take damage from activator flames.
For AI purposes, NPC's do not take damage from activator flames.
</pre>
</blockquote>


Let's go ahead and place lights for these two areas.  Drag these lights out and place them near the specified objects.  Remember that "<b>A</b>" toggles lighting preview, and "<b>M</b>" will toggle rendering of special markers, such as lightbulbs, making it easier to preview what the scene will look like in-game.
Let's go ahead and place lights for these two areas.  Drag these lights out and place them near the specified objects.  Remember that "<b>A</b>" toggles lighting preview, and "<b>M</b>" will toggle rendering of special markers, such as lightbulbs, making it easier to preview what the scene will look like in-game.
Line 87: Line 87:


I'll also use Wisp Stalks, a special indoor mushroom you can find under flora, and CaveGloShroom lights.  Spend some time positioning these where they make sense and help lead the player through the dungeon.
I'll also use Wisp Stalks, a special indoor mushroom you can find under flora, and CaveGloShroom lights.  Spend some time positioning these where they make sense and help lead the player through the dungeon.
<pre>
<blockquote>
Every light in CS has a radius, usually specified by the number at the end of the light name.
Every light in CS has a radius, usually specified by the number at the end of the light name.
Use "L" to preview this radius in the render window.  Be cautious and avoid overlaps where possible.
Use "L" to preview this radius in the render window.  Be cautious and avoid overlaps where possible.
As more lights hit a polygon, the game has a harder time rendering it, which can hurt framerate
As more lights hit a polygon, the game has a harder time rendering it, which can hurt framerate
</pre>
</blockquote>
Now that we have a first pass of motivated lights, let's light up any doorways, combat areas, or points of interest that have no light yet.  Try to use a mix of warm and cool colors to keep the player's interest and, as always, guide them through the dungeon.
Now that we have a first pass of motivated lights, let's light up any doorways, combat areas, or points of interest that have no light yet.  Try to use a mix of warm and cool colors to keep the player's interest and, as always, guide them through the dungeon.
<pre>
<blockquote>
Note that the Daylight and fire lights should only be used with motivators.
Note that the Daylight and fire lights should only be used with motivators.
</pre>
</blockquote>


After hollywood lighting, here's what my cell looks like with light radii and preview turned on:
After hollywood lighting, here's what my cell looks like with light radii and preview turned on:
Anonymous user