Sophie

Sophie

distrib > Mandriva > 10.0 > i586 > media > contrib > by-pkgid > 06719cf03808e17ae6f0852ca1052dc2 > files > 3472

libogre1-devel-0.13.0-1mdk.i586.rpm

<html>
<head>
<title>Ogre::BspLevel::VisData struct Reference - OGRE Documentation</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 
<link type="text/css" rel="stylesheet" href="style.css">
</head>

<body>
<!-- Generated by Doxygen 1.2.16 -->
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="classes.html">Alphabetical List</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="namespacemembers.html">Namespace Members</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; <a class="qindex" href="pages.html">Related Pages</a> &nbsp; </center>
<hr><h1>Ogre::BspLevel::VisData  Struct Reference</h1>Internal lookup table to determine visibility between leaves. 
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="OgreBspLevel_8h-source.html">OgreBspLevel.h</a>&gt;</code>
<p>
<a href="structOgre_1_1BspLevel_1_1VisData-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0>
<tr><td colspan=2><br><h2>Public Attributes</h2></td></tr>
<tr><td nowrap align=right valign=top>unsigned char *&nbsp;</td><td valign=bottom><a class="el" href="structOgre_1_1BspLevel_1_1VisData.html#Ogre_1_1BspLevel_1_1VisDatam0">tableData</a></td></tr>
<tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="structOgre_1_1BspLevel_1_1VisData.html#Ogre_1_1BspLevel_1_1VisDatam1">numClusters</a></td></tr>
<tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="structOgre_1_1BspLevel_1_1VisData.html#Ogre_1_1BspLevel_1_1VisDatam2">rowLength</a></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Internal lookup table to determine visibility between leaves.
<p>
Leaf nodes are assigned to 'clusters' of nodes, which are used to group nodes together for visibility testing. This data holds a lookup table which is used to determine if one cluster of leaves is visible from another cluster. Whilst it would be possible to expand all this out so that each node had a list of pointers to other visible nodes, this would be very expensive in terms of storage (using the cluster method there is a table which is 1-bit squared per cluster, rounded up to the nearest byte obviously, which uses far less space than 4-bytes per linked node per source node). Of course the limitation here is that you have to each leaf in turn to determine if it is visible rather than just following a list, but since this is only done once per frame this is not such a big overhead. Each row in the table is a 'from' cluster, with each bit in the row corresponding to a 'to' cluster, both ordered based on cluster index. A 0 in the bit indicates the 'to' cluster is not visible from the 'from' cluster, whilst a 1 indicates it is. As many will notice, this is lifted directly from the Quake implementation of PVS. 
<p>

<p>
Definition at line <a class="el" href="OgreBspLevel_8h-source.html#l00170">170</a> of file <a class="el" href="OgreBspLevel_8h-source.html">OgreBspLevel.h</a>.<hr><h2>Member Data Documentation</h2>
<a name="Ogre_1_1BspLevel_1_1VisDatam1" doxytag="Ogre::BspLevel::VisData::numClusters"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> int Ogre::BspLevel::VisData::numClusters
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="OgreBspLevel_8h-source.html#l00173">173</a> of file <a class="el" href="OgreBspLevel_8h-source.html">OgreBspLevel.h</a>.
<p>
Referenced by <a class="el" href="OgreBspLevel_8cpp-source.html#l00113">Ogre::BspLevel::loadQuake3Level</a>().    </td>
  </tr>
</table>
<a name="Ogre_1_1BspLevel_1_1VisDatam2" doxytag="Ogre::BspLevel::VisData::rowLength"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> int Ogre::BspLevel::VisData::rowLength
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="OgreBspLevel_8h-source.html#l00174">174</a> of file <a class="el" href="OgreBspLevel_8h-source.html">OgreBspLevel.h</a>.
<p>
Referenced by <a class="el" href="OgreBspLevel_8cpp-source.html#l00582">Ogre::BspLevel::isLeafVisible</a>(), and <a class="el" href="OgreBspLevel_8cpp-source.html#l00113">Ogre::BspLevel::loadQuake3Level</a>().    </td>
  </tr>
</table>
<a name="Ogre_1_1BspLevel_1_1VisDatam0" doxytag="Ogre::BspLevel::VisData::tableData"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> unsigned char* Ogre::BspLevel::VisData::tableData
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="OgreBspLevel_8h-source.html#l00172">172</a> of file <a class="el" href="OgreBspLevel_8h-source.html">OgreBspLevel.h</a>.
<p>
Referenced by <a class="el" href="OgreBspLevel_8cpp-source.html#l00049">Ogre::BspLevel::BspLevel</a>(), <a class="el" href="OgreBspLevel_8cpp-source.html#l00582">Ogre::BspLevel::isLeafVisible</a>(), <a class="el" href="OgreBspLevel_8cpp-source.html#l00113">Ogre::BspLevel::loadQuake3Level</a>(), and <a class="el" href="OgreBspLevel_8cpp-source.html#l00089">Ogre::BspLevel::unload</a>().    </td>
  </tr>
</table>
<hr>The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="OgreBspLevel_8h-source.html">OgreBspLevel.h</a></ul>
<p>
Copyright &copy; 2002-2003 by The OGRE Team<br />
Last modified Wed Jan 21 00:21:18 2004
</p>
</body>
</html>