1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- Created by texi2html 1.64 -->
<!--
Written by: Lionel Cons <Lionel.Cons@cern.ch> (original author)
Karl Berry <karl@freefriends.org>
Olaf Bachmann <obachman@mathematik.uni-kl.de>
and many others.
Maintained by: Olaf Bachmann <obachman@mathematik.uni-kl.de>
Send bugs and suggestions to <texi2html@mathematik.uni-kl.de>
-->
<HTML>
<HEAD>
<TITLE>Crystal Space: map2cs Tutorial Skybox</TITLE>
<META NAME="description" CONTENT="Crystal Space: map2cs Tutorial Skybox">
<META NAME="keywords" CONTENT="Crystal Space: map2cs Tutorial Skybox">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<META NAME="Generator" CONTENT="texi2html 1.64">
</HEAD>
<BODY LANG="" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#800080" ALINK="#FF0000">
<A NAME="SEC197"></A>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="cs_96.html#SEC196"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="cs_98.html#SEC199"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="cs_83.html#SEC181"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="cs_87.html#SEC185"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="cs_99.html#SEC200"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="index.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="cs_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="cs_285.html#SEC711">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="cs_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<HR SIZE=1>
<H3> 5.5.10 Generating Skybox Textures </H3>
<!--docid::SEC197::-->
<P>
If you don't like to idea of keeping the player always inside a building and
never allowing him to look outside, then you need a skybox. A skybox will
give the player a good illusion that there is an outside to your level. A
skybox is a huge box with textures that shows what is outside. However,
creating these textures is a bit tricky, otherwise, it might just look like
the inside of a textured cube.
</P><P>
But there is good news, because there is a free tool that is great for making
these textures. It is called Terragen.
</P><P>
<A HREF="http://www.planetside.co.uk/">http://www.planetside.co.uk/</A>
</P><P>
Please consult the terragen documentation about how to create a world, as
I will only explain, how to export the map file to Crystal Space.
</P><P>
<A NAME="SEC198"></A>
<H4> Exporting to Crystal Space </H4>
<!--docid::SEC198::-->
<P>
When you are done creating your world peform the following steps:
</P><P>
Open the "Rendering Controls" panel.
</P><P>
<OL>
<LI>
Move your camera to the desired point in your map.
<LI>
Disable the "Fixed Height Above Surface" switch.
<LI>
Set "Detail" to <EM>Maximum</EM>.
<LI>
In the "Camera Settings" dialog set "Zoom Maginfication" to "1".
<LI>
Set "Image Size" to 512x512 or 256x256.
</OL>
<P>
<CENTER><IMG SRC="tutorial/map2cs/terra1.png" ALT="tutorial/map2cs/terra1"></CENTER>
</P><P>
Now create six images and store them. Use the following settings for these
images:
</P><P>
<BLOCKQUOTE>
<TABLE>
<TR><TD><EM>Texture Name Suffix</EM></TD>
</TD><TD> <EM>Camera Head</EM>
</TD><TD> <EM>Camera Pitch</EM>
</TD><TD> <EM>Camera Bank</EM>
</TR>
<TR><TD><CODE>_f</CODE> </TD><TD> 0 </TD><TD> 0 </TD><TD> 0</TD>
</TR>
<TR><TD><CODE>_r</CODE> </TD><TD> 90 </TD><TD> 0 </TD><TD> 0</TD>
</TR>
<TR><TD><CODE>_b</CODE> </TD><TD> 180 </TD><TD> 0 </TD><TD> 0</TD>
</TR>
<TR><TD><CODE>_l</CODE> </TD><TD> 270 </TD><TD> 0 </TD><TD> 0</TD>
</TR>
<TR><TD><CODE>_u</CODE> </TD><TD> 0 </TD><TD> 90 </TD><TD> 0</TD>
</TR>
<TR><TD><CODE>_d</CODE> </TD><TD> 0 </TD><TD> 270 </TD><TD> 0</TD>
</TR></TABLE>
</BLOCKQUOTE>
<P>
Convert the generated bitmaps to a format readable by `<TT>map2cs</TT>' (TGA,
JPG, JPEG, BMP, WAL).
</P><P>
Then you need to add a setting "skybox" with the value of your basename in
the general world properties. (For example, if your textures are called
`<TT>sample_f.bmp</TT>', `<TT>sample_r.bmp</TT>', you will set "skybox" to
"sample"). Now every brush you assign a key "sky" with a value of "1"
will look like your skybox. Just try this out. It is a really amazing
effect.
</P><P>
This screenshot doesn't really do justice to the skybox effect, but it looks
quite nice, never-the-less. To really appreciate the effect you will need to
move around a world in Crystal Space using a map enclosed within a skybox.
</P><P>
<CENTER><IMG SRC="tutorial/map2cs/terra2.png" ALT="tutorial/map2cs/terra2"></CENTER>
<A NAME="map2cs Tutorial Tips"></A>
<HR SIZE=1>
<TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0>
<TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="cs_96.html#SEC196"> < </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="cs_98.html#SEC199"> > </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="cs_83.html#SEC181"> << </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="cs_87.html#SEC185"> Up </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="cs_99.html#SEC200"> >> </A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT"> <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="index.html#SEC_Top">Top</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="cs_toc.html#SEC_Contents">Contents</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="cs_285.html#SEC711">Index</A>]</TD>
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="cs_abt.html#SEC_About"> ? </A>]</TD>
</TR></TABLE>
<BR>
<FONT SIZE="-1">
This document was generated
using <A HREF="http://www.mathematik.uni-kl.de/~obachman/Texi2html
"><I>texi2html</I></A>
</BODY>
</HTML>
|