
To improve documentation (mostly in the wiki) is my main focus to support the Ogre community.
Just in the moment I compared the Ogre and Mogre source code.masterfalcon wrote:I couldn't find what exactly the final answer was on the co-domains question. Is it -180,180 for pitch, roll and yaw?
Unfortunately I don't find co-domains for other angles in the related forum topics.Kojack wrote:getYaw() is -180 to 180. I just tested it and it returned values below -90 and above 90 fine.
Code: Select all
Single yaw = 0;
Single pitch = 0;
Single roll = 0;
Single ymin = 0;
Single ymax = 0;
Single pmin = 0;
Single pmax = 0;
Single rmin = 0;
Single rmax = 0;
Single y, p, r;
Quaternion quat;
Console.WriteLine("Start calculation ...\n");
Console.Write("Intermediate steps: ");
for (yaw = -200; yaw <= 200; yaw++)
{
for (pitch = -200; pitch <= 200; pitch++)
{
for (roll = -200; roll <= 200; roll++)
{
quat = new Quaternion(new Degree(yaw), Vector3.UNIT_Y)
* new Quaternion(new Degree(pitch), Vector3.UNIT_X)
* new Quaternion(new Degree(roll), Vector3.UNIT_Z);
y = quat.Yaw.ValueDegrees;
p = quat.Pitch.ValueDegrees;
r = quat.Roll.ValueDegrees;
if (y < ymin)
ymin = y;
if (y > ymax)
ymax = y;
if (p < pmin)
pmin = p;
if (p > pmax)
pmax = p;
if (r < rmin)
rmin = r;
if (r > rmax)
rmax = r;
}
}
Console.Write(".");
if ((yaw % 10) == 0)
Console.Write(yaw); // show current state of calculation
}
Console.WriteLine("\n\nCalculation ready.\n");
Console.Write("co-domains:\n");
Console.Write(String.Format("Yaw {0} .. {1} \n", ymin, ymax));
Console.Write(String.Format("Pitch {0} .. {1} \n", pmin, pmax));
Console.Write(String.Format("Roll {0} .. {1} \n", rmin, rmax));
void ManualObject::ManualObjectSection::set32BitIndices ( bool n32)Get whether we need 32-bit indices. If false, 64-bit indices are needed.
Set whether we need 32-bit indices. If false, 64-bit indices are needed.
Code: Select all
enum IndexType {
IT_16BIT,
IT_32BIT
};
Oh, thanks for this note. You are right.CABAListic wrote:Are you sure about 64bit?
It's because the version of doxygen doc on the Ogre Site has been generated with Ogre 1.7.1, as stated here.Beauty wrote:But it seems so, that the online documentation wasn't updated yet.