From Paul Melis, fixes to spelling mistakes/typos.
This commit is contained in:
@@ -526,7 +526,7 @@ void ElementBufferObject::compileBuffer(State& state) const
|
||||
itr != _bufferEntryDrawElementsPairs.end();
|
||||
++itr)
|
||||
{
|
||||
const BufferEntryDrawElementstPair& bep = *itr;
|
||||
const BufferEntryDrawElementsPair& bep = *itr;
|
||||
if (bep.second)
|
||||
{
|
||||
totalSizeRequired += bep.second->getTotalDataSize();
|
||||
@@ -578,7 +578,7 @@ void ElementBufferObject::compileBuffer(State& state) const
|
||||
itr != _bufferEntryDrawElementsPairs.end();
|
||||
++itr)
|
||||
{
|
||||
const BufferEntryDrawElementstPair& bep = *itr;
|
||||
const BufferEntryDrawElementsPair& bep = *itr;
|
||||
const DrawElements* de = bep.second;
|
||||
if (de)
|
||||
{
|
||||
|
||||
@@ -107,13 +107,13 @@ void TexEnvCombine::apply(State& state) const
|
||||
void TexEnvCombine::setCombine_RGB(GLint cm) { _combine_RGB = cm; }
|
||||
void TexEnvCombine::setCombine_Alpha(GLint cm) { _combine_Alpha = cm; }
|
||||
|
||||
void TexEnvCombine::setSource0_RGB(GLint sp) { _source0_RGB = sp; computeNeedoForTexEnvCombiners(); }
|
||||
void TexEnvCombine::setSource1_RGB(GLint sp) { _source1_RGB = sp; computeNeedoForTexEnvCombiners(); }
|
||||
void TexEnvCombine::setSource2_RGB(GLint sp) { _source2_RGB = sp; computeNeedoForTexEnvCombiners(); }
|
||||
void TexEnvCombine::setSource0_RGB(GLint sp) { _source0_RGB = sp; computeNeedForTexEnvCombiners(); }
|
||||
void TexEnvCombine::setSource1_RGB(GLint sp) { _source1_RGB = sp; computeNeedForTexEnvCombiners(); }
|
||||
void TexEnvCombine::setSource2_RGB(GLint sp) { _source2_RGB = sp; computeNeedForTexEnvCombiners(); }
|
||||
|
||||
void TexEnvCombine::setSource0_Alpha(GLint sp) { _source0_Alpha = sp; computeNeedoForTexEnvCombiners(); }
|
||||
void TexEnvCombine::setSource1_Alpha(GLint sp) { _source1_Alpha = sp; computeNeedoForTexEnvCombiners(); }
|
||||
void TexEnvCombine::setSource2_Alpha(GLint sp) { _source2_Alpha = sp; computeNeedoForTexEnvCombiners(); }
|
||||
void TexEnvCombine::setSource0_Alpha(GLint sp) { _source0_Alpha = sp; computeNeedForTexEnvCombiners(); }
|
||||
void TexEnvCombine::setSource1_Alpha(GLint sp) { _source1_Alpha = sp; computeNeedForTexEnvCombiners(); }
|
||||
void TexEnvCombine::setSource2_Alpha(GLint sp) { _source2_Alpha = sp; computeNeedForTexEnvCombiners(); }
|
||||
|
||||
void TexEnvCombine::setOperand0_RGB(GLint op) { _operand0_RGB = op; }
|
||||
void TexEnvCombine::setOperand1_RGB(GLint op) { _operand1_RGB = op; }
|
||||
|
||||
@@ -6,7 +6,7 @@ using namespace osgGA;
|
||||
|
||||
AnimationPathManipulator::AnimationPathManipulator(osg::AnimationPath* animationPath)
|
||||
{
|
||||
_printOutTiminInfo = true;
|
||||
_printOutTimingInfo = true;
|
||||
|
||||
_animationPath = animationPath;
|
||||
_timeOffset = 0.0;
|
||||
@@ -20,7 +20,7 @@ AnimationPathManipulator::AnimationPathManipulator(osg::AnimationPath* animation
|
||||
|
||||
AnimationPathManipulator::AnimationPathManipulator( const std::string& filename )
|
||||
{
|
||||
_printOutTiminInfo = true;
|
||||
_printOutTimingInfo = true;
|
||||
|
||||
_animationPath = new osg::AnimationPath;
|
||||
_animationPath->setLoopMode(osg::AnimationPath::LOOP);
|
||||
@@ -137,7 +137,7 @@ void AnimationPathManipulator::handleFrame( double time )
|
||||
|
||||
++_numOfFramesSinceStartOfTimedPeriod;
|
||||
|
||||
if (_printOutTiminInfo)
|
||||
if (_printOutTimingInfo)
|
||||
{
|
||||
double delta = (animTime-_animStartOfTimedPeriod);
|
||||
if (delta>=_animationPath->getPeriod())
|
||||
|
||||
@@ -13,7 +13,7 @@ osgParticle::FluidProgram::FluidProgram(const FluidProgram& copy, const osg::Cop
|
||||
_density(copy._density),
|
||||
_wind(copy._wind),
|
||||
_viscosityCoefficient(copy._viscosityCoefficient),
|
||||
_densityCoefficeint(copy._densityCoefficeint)
|
||||
_densityCoefficient(copy._densityCoefficient)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@ void osgParticle::FluidProgram::execute(double dt)
|
||||
// compute force due to friction
|
||||
osg::Vec3 velBefore = particle->getVelocity();
|
||||
osg::Vec3 relative_wind = particle->getVelocity()-_wind;
|
||||
osg::Vec3 wind_force = - relative_wind * Area * (_viscosityCoefficient + _densityCoefficeint*relative_wind.length());
|
||||
osg::Vec3 wind_force = - relative_wind * Area * (_viscosityCoefficient + _densityCoefficient*relative_wind.length());
|
||||
osg::Vec3 wind_accel = wind_force * particle->getMassInv();
|
||||
|
||||
double critical_dt2 = relative_wind.length2()/wind_accel.length2();
|
||||
|
||||
@@ -236,7 +236,7 @@ void PrecipitationEffect::traverse(osg::NodeVisitor& nv)
|
||||
return;
|
||||
}
|
||||
|
||||
ViewIdenitifier viewIndentifier(cv, nv.getNodePath());
|
||||
ViewIdentifier viewIndentifier(cv, nv.getNodePath());
|
||||
|
||||
{
|
||||
PrecipitationDrawableSet* precipitationDrawableSet = 0;
|
||||
|
||||
@@ -11,7 +11,7 @@ SET(LIBRARY_OUTPUT_PATH "${LIBRARY_OUTPUT_PATH}/${OSG_PLUGINS}")
|
||||
|
||||
|
||||
OPTION(BUILD_OSG_COMMON_PLUGINS "Build with Common Plugins" TRUE)
|
||||
OPTION(BUILD_OSG_IMAGE_PLUGINS "Build with Imagege texture Plugins" TRUE)
|
||||
OPTION(BUILD_OSG_IMAGE_PLUGINS "Build with Image texture Plugins" TRUE)
|
||||
OPTION(BUILD_OSG_3D_PLUGINS "Build with 3D formats Plugins" TRUE)
|
||||
OPTION(BUILD_OSG_OTHER_PLUGINS "Build with other formats Plugins" TRUE)
|
||||
OPTION(BUILD_OSG_NET_PLUGINS "Build with net Plugin" TRUE)
|
||||
|
||||
@@ -129,15 +129,15 @@ bool EllipsoidLocator::convertModelToLocal(const osg::Vec3d& world, osg::Vec3d&
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// CartizianLocator
|
||||
// CartesianLocator
|
||||
//
|
||||
|
||||
CartizianLocator::CartizianLocator(double originX, double originY, double lengthX, double lengthY, double height, double heightScale)
|
||||
CartesianLocator::CartesianLocator(double originX, double originY, double lengthX, double lengthY, double height, double heightScale)
|
||||
{
|
||||
setExtents(originX, originY, lengthY, lengthY, height, heightScale);
|
||||
}
|
||||
|
||||
void CartizianLocator::setExtents(double originX, double originY, double lengthX, double lengthY, double height, double heightScale)
|
||||
void CartesianLocator::setExtents(double originX, double originY, double lengthX, double lengthY, double height, double heightScale)
|
||||
{
|
||||
_originX = originX;
|
||||
_originY = originY;
|
||||
@@ -147,12 +147,12 @@ void CartizianLocator::setExtents(double originX, double originY, double lengthX
|
||||
_heightScale = heightScale;
|
||||
}
|
||||
|
||||
bool CartizianLocator::orientationOpenGL() const
|
||||
bool CartesianLocator::orientationOpenGL() const
|
||||
{
|
||||
return (_lengthX * _lengthY) >= 0.0;
|
||||
}
|
||||
|
||||
bool CartizianLocator::convertLocalToModel(const osg::Vec3d& local, osg::Vec3d& world) const
|
||||
bool CartesianLocator::convertLocalToModel(const osg::Vec3d& local, osg::Vec3d& world) const
|
||||
{
|
||||
world.x() = _originX + local.x() * _lengthX;
|
||||
world.y() = _originY + local.y() * _lengthY;
|
||||
@@ -161,7 +161,7 @@ bool CartizianLocator::convertLocalToModel(const osg::Vec3d& local, osg::Vec3d&
|
||||
return true;
|
||||
}
|
||||
|
||||
bool CartizianLocator::convertModelToLocal(const osg::Vec3d& world, osg::Vec3d& local) const
|
||||
bool CartesianLocator::convertModelToLocal(const osg::Vec3d& world, osg::Vec3d& local) const
|
||||
{
|
||||
local.x() = (world.x() - _originX)/_lengthX;
|
||||
local.y() = (world.y() - _originY)/_lengthY;
|
||||
|
||||
@@ -372,7 +372,7 @@ osg::Matrixd SceneView::computeLeftEyeProjectionImplementation(const osg::Matrix
|
||||
double scale_x = 1.0;
|
||||
double scale_y = 1.0;
|
||||
|
||||
if (_displaySettings->getSplitStereoAutoAjustAspectRatio())
|
||||
if (_displaySettings->getSplitStereoAutoAdjustAspectRatio())
|
||||
{
|
||||
switch(_displaySettings->getStereoMode())
|
||||
{
|
||||
@@ -437,7 +437,7 @@ osg::Matrixd SceneView::computeRightEyeProjectionImplementation(const osg::Matri
|
||||
double scale_x = 1.0;
|
||||
double scale_y = 1.0;
|
||||
|
||||
if (_displaySettings->getSplitStereoAutoAjustAspectRatio())
|
||||
if (_displaySettings->getSplitStereoAutoAdjustAspectRatio())
|
||||
{
|
||||
switch(_displaySettings->getStereoMode())
|
||||
{
|
||||
@@ -665,42 +665,42 @@ bool SceneView::cullStage(const osg::Matrixd& projection,const osg::Matrixd& mod
|
||||
//std::cout << "Scene graph contains occluder nodes, searching for them"<<std::endl;
|
||||
|
||||
|
||||
if (!_collectOccludersVisistor) _collectOccludersVisistor = new osg::CollectOccludersVisitor;
|
||||
if (!_collectOccludersVisitor) _collectOccludersVisitor = new osg::CollectOccludersVisitor;
|
||||
|
||||
_collectOccludersVisistor->inheritCullSettings(*this);
|
||||
_collectOccludersVisitor->inheritCullSettings(*this);
|
||||
|
||||
_collectOccludersVisistor->reset();
|
||||
_collectOccludersVisitor->reset();
|
||||
|
||||
_collectOccludersVisistor->setFrameStamp(_frameStamp.get());
|
||||
_collectOccludersVisitor->setFrameStamp(_frameStamp.get());
|
||||
|
||||
// use the frame number for the traversal number.
|
||||
if (_frameStamp.valid())
|
||||
{
|
||||
_collectOccludersVisistor->setTraversalNumber(_frameStamp->getFrameNumber());
|
||||
_collectOccludersVisitor->setTraversalNumber(_frameStamp->getFrameNumber());
|
||||
}
|
||||
|
||||
_collectOccludersVisistor->pushViewport(getViewport());
|
||||
_collectOccludersVisistor->pushProjectionMatrix(proj.get());
|
||||
_collectOccludersVisistor->pushModelViewMatrix(mv.get(),osg::Transform::ABSOLUTE_RF);
|
||||
_collectOccludersVisitor->pushViewport(getViewport());
|
||||
_collectOccludersVisitor->pushProjectionMatrix(proj.get());
|
||||
_collectOccludersVisitor->pushModelViewMatrix(mv.get(),osg::Transform::ABSOLUTE_RF);
|
||||
|
||||
// traverse the scene graph to search for occluder in there new positions.
|
||||
for(unsigned int i=0; i< _camera->getNumChildren(); ++i)
|
||||
{
|
||||
_camera->getChild(i)->accept(*_collectOccludersVisistor);
|
||||
_camera->getChild(i)->accept(*_collectOccludersVisitor);
|
||||
}
|
||||
|
||||
_collectOccludersVisistor->popModelViewMatrix();
|
||||
_collectOccludersVisistor->popProjectionMatrix();
|
||||
_collectOccludersVisistor->popViewport();
|
||||
_collectOccludersVisitor->popModelViewMatrix();
|
||||
_collectOccludersVisitor->popProjectionMatrix();
|
||||
_collectOccludersVisitor->popViewport();
|
||||
|
||||
// sort the occluder from largest occluder volume to smallest.
|
||||
_collectOccludersVisistor->removeOccludedOccluders();
|
||||
_collectOccludersVisitor->removeOccludedOccluders();
|
||||
|
||||
|
||||
osg::notify(osg::DEBUG_INFO) << "finished searching for occluder - found "<<_collectOccludersVisistor->getCollectedOccluderSet().size()<<std::endl;
|
||||
osg::notify(osg::DEBUG_INFO) << "finished searching for occluder - found "<<_collectOccludersVisitor->getCollectedOccluderSet().size()<<std::endl;
|
||||
|
||||
cullVisitor->getOccluderList().clear();
|
||||
std::copy(_collectOccludersVisistor->getCollectedOccluderSet().begin(),_collectOccludersVisistor->getCollectedOccluderSet().end(), std::back_insert_iterator<CullStack::OccluderList>(cullVisitor->getOccluderList()));
|
||||
std::copy(_collectOccludersVisitor->getCollectedOccluderSet().begin(),_collectOccludersVisitor->getCollectedOccluderSet().end(), std::back_insert_iterator<CullStack::OccluderList>(cullVisitor->getOccluderList()));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user