Skip to content

Commit

Permalink
Merge ign-rendering3 forward
Browse files Browse the repository at this point in the history
Signed-off-by: Nate Koenig <nate@openrobotics.org>
  • Loading branch information
Nate Koenig committed Feb 10, 2021
2 parents 978a91f + 36bc282 commit 77a8f82
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 9 deletions.
14 changes: 14 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,20 @@
1. Add support for transparency based on textures alpha channel for ogre1 and ogre2
* [BitBucket pull request 229](https://osrf-migration.github.io/ignition-gh-pages/#!/ignitionrobotics/ign-rendering/pull-requests/229)

### Ignition Rendering 3.X.X (2021-XX-XX)



### Ignition Rendering 3.4.0 (2021-02-09)

1. Clear all Windows warnings
* [Pull request 206](https://github.com/ignitionrobotics/ign-rendering/pull/206)
* [Pull request 215](https://github.com/ignitionrobotics/ign-rendering/pull/215)
* [Pull request 225](https://github.com/ignitionrobotics/ign-rendering/pull/225)

1. Add laser_retro support
* [Pull request 194](https://github.com/ignitionrobotics/ign-rendering/pull/194)

### Ignition Rendering 3.3.0 (2021-01-22)

1. Add Windows installation.
Expand Down
6 changes: 3 additions & 3 deletions ogre/include/ignition/rendering/ogre/OgreMaterialSwitcher.hh
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ namespace ignition
// Ogre::MaterialManager::Listener isn't a dll-interface class, this may cause
// issues
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable:4275)
#pragma warning(push)
#pragma warning(disable:4275)
#endif
public Ogre::MaterialManager::Listener,
#ifdef _MSC_VER
#pragma warning(pop)
#pragma warning(pop)
#endif
Ogre::RenderTargetListener
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
// Ogre::MaterialManager::Listener isn't a dll-interface class, this may cause
// issues
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable:4275)
#pragma warning(push)
#pragma warning(disable:4275)
#endif

namespace ignition
Expand Down Expand Up @@ -107,7 +107,7 @@ namespace ignition
}

#ifdef _MSC_VER
#pragma warning(pop)
#pragma warning(pop)
#endif

#endif
6 changes: 3 additions & 3 deletions ogre2/src/Ogre2GpuRays.cc
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,8 @@ void Ogre2LaserRetroMaterialSwitcher::preRenderTargetUpdate(
if (!subItem->hasCustomParameter(this->customParamIdx))
{
// limit laser retro value to 2000 (as in gazebo)
if (retroValue > 2000.0){
if (retroValue > 2000.0)
{
retroValue = 2000.0;
}
float color = retroValue / 2000.0;
Expand Down Expand Up @@ -696,7 +697,7 @@ void Ogre2GpuRays::Setup1stPass()
colorTexDef->preferDepthTexture = true;
colorTexDef->fsaaExplicitResolve = false;

nodeDef->setNumTargetPass(2);
nodeDef->setNumTargetPass(2);

Ogre::CompositorTargetDef *colorTargetDef =
nodeDef->addTargetPass("colorTexture");
Expand Down Expand Up @@ -813,7 +814,6 @@ void Ogre2GpuRays::Setup1stPass()
break;
}
}

}
}

Expand Down

0 comments on commit 77a8f82

Please sign in to comment.