Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge main branch into Ogre 2.2 and fixes #359

Merged
Merged
Show file tree
Hide file tree
Changes from 33 commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
88f6339
Fix floating point precision bug handling alpha channel (#332) (#333)
darksylinc Jun 9, 2021
f9f1820
Test re-enabling depth camera integration test on mac (#335)
iche033 Jun 9, 2021
f1994c7
Fix new [] / delete mismatch (#338)
darksylinc Jun 14, 2021
1421901
Fix heap overflow when reading (#337)
darksylinc Jun 14, 2021
7613608
Fix floating point precision bug handling alpha channel (#332) (#333)
darksylinc Jun 9, 2021
b227f1e
Fix depth alpha (#316)
iche033 May 5, 2021
fe96179
cherry pick f9f1820 and fix conflicts
iche033 Jun 9, 2021
b29c295
Fix FSAA in UI and lower VRAM consumption (#313)
darksylinc Jun 14, 2021
a56c834
Backport memory fixes found by ASAN (#340)
iche033 Jun 15, 2021
fa71fc3
recreate node only when needed (#342)
iche033 Jun 15, 2021
8bca5b2
Fix custom shaders uniforms ign version number (#343)
iche033 Jun 15, 2021
5164539
relax gaussian test tolerance (#344)
iche033 Jun 15, 2021
7790c0b
merge from ign-rendering3
iche033 Jun 17, 2021
76aa471
Update light map tutorial (#346)
iche033 Jun 18, 2021
0551b74
add ifdef for apple in integration test
iche033 Jun 18, 2021
f208f9c
Merge pull request #347 from ignitionrobotics/merge_3_4_061721
iche033 Jun 18, 2021
8833069
🎈 4.8.0 (#348)
chapulina Jun 18, 2021
9be3487
merge from ign-rendering4
iche033 Jun 21, 2021
9d9896f
Merge pull request #349 from ignitionrobotics/merge_4_5_062121
iche033 Jun 22, 2021
f821425
Merge branch 'ign-rendering5' into merge_5_6_062121
iche033 Jun 22, 2021
f28a55f
update ign-rendering version in custom shaders uniform sample
iche033 Jun 22, 2021
8c34f9d
Merge pull request #350 from ignitionrobotics/merge_5_6_062121
iche033 Jun 22, 2021
9a381e2
Remove problematic leftover files from 2.1
darksylinc Jun 27, 2021
175fcae
Do not crash on shutdown
darksylinc Jun 27, 2021
9f15486
Merge branch 'main' into matias-ogre2.2-main-merge
darksylinc Jul 3, 2021
d3adfbe
Restore FSAA support in 2.2 branch
darksylinc Jul 3, 2021
31b4960
Fix changing background color not always taking immediate effect
darksylinc Jul 3, 2021
60391e1
Changed pass_clear in favour of LoadAction::Clear
darksylinc Jul 3, 2021
d93cc18
Missing public keyword
darksylinc Jul 3, 2021
8c2ec12
Save VRAM when FSAA is used and no postprocessing
darksylinc Jul 3, 2021
84513fa
Merge branch 'ahcorde/update/ogre2.2' into matias-ogre2.2-main-merge
darksylinc Jul 3, 2021
029cd59
Remove code deprecated in ign-rendering5
darksylinc Jul 5, 2021
f951593
Remove code deprecated in ign-rendering5
darksylinc Jul 5, 2021
34c31d0
Code style fixes
darksylinc Jul 10, 2021
c19ec56
Undo VRAM saving optimization: It cannot be applied
darksylinc Jul 10, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,48 @@

### Ignition Rendering 4.X

### Ignition Rendering 4.8.0 (2021-06-18)

1. relax gaussian test tolerance
* [Pull request #344](https://github.com/ignitionrobotics/ign-rendering/pull/344)

1. recreate node only when needed
* [Pull request #342](https://github.com/ignitionrobotics/ign-rendering/pull/342)

1. Backport memory fixes found by ASAN
* [Pull request #340](https://github.com/ignitionrobotics/ign-rendering/pull/340)

1. Re-enable part of depth camera test on macOS
* [Pull request #335](https://github.com/ignitionrobotics/ign-rendering/pull/335)
* [Pull request #347](https://github.com/ignitionrobotics/ign-rendering/pull/347)

1. Fix depth alpha
* [Pull request #316](https://github.com/ignitionrobotics/ign-rendering/pull/316)

1. Fix floating point precision bug handling alpha channel (#332)
* [Pull request #333](https://github.com/ignitionrobotics/ign-rendering/pull/333)

1. Include MoveTo Helper class to ign-rendering
* [Pull request #311](https://github.com/ignitionrobotics/ign-rendering/pull/311)

1. Remove `tools/code_check` and update codecov
* [Pull request #321](https://github.com/ignitionrobotics/ign-rendering/pull/321)

1. [OGRE 1.x] Uniform buffer shader support
* [Pull request #294](https://github.com/ignitionrobotics/ign-rendering/pull/294)

1. Helper function to get a scene
* [Pull request #320](https://github.com/ignitionrobotics/ign-rendering/pull/320)

1. Reduce lidar data discretization
* [Pull request #296](https://github.com/ignitionrobotics/ign-rendering/pull/296)

1. Prevent console warnings when multiple texture coordinates are present
* [Pull request #301](https://github.com/ignitionrobotics/ign-rendering/pull/301)

1. Added command line argument to pick version of Ogre
* [Pull request #277](https://github.com/ignitionrobotics/ign-rendering/pull/277)

### Ignition Rendering 4.7.0 (2021-03-17)

1. Enable depth write in particles example
Expand Down
2 changes: 1 addition & 1 deletion examples/custom_shaders_uniforms/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ include_directories(SYSTEM
${PROJECT_BINARY_DIR}
)

find_package(ignition-rendering4)
find_package(ignition-rendering6)

set(TARGET_THIRD_PARTY_DEPENDS "")

Expand Down
1 change: 0 additions & 1 deletion ogre2/include/ignition/rendering/ogre2/Ogre2Includes.hh
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@
#include <Compositor/OgreCompositorShadowNode.h>
#include <Compositor/OgreCompositorWorkspace.h>
#include <Compositor/OgreCompositorWorkspaceListener.h>
#include <Compositor/Pass/PassClear/OgreCompositorPassClearDef.h>
#include <Compositor/Pass/PassQuad/OgreCompositorPassQuadDef.h>
#include <Compositor/Pass/PassScene/OgreCompositorPassScene.h>
#include <Compositor/Pass/PassScene/OgreCompositorPassSceneDef.h>
Expand Down
61 changes: 52 additions & 9 deletions ogre2/include/ignition/rendering/ogre2/Ogre2RenderTarget.hh
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,36 @@ namespace ignition
/// \see Camera::SetShadowsNodeDefDirty
public: void SetShadowsNodeDefDirty();

/// \brief Get a pointer to the ogre render target
/// \brief Returns the FSAA to use based on supported specs by HW
/// and value specified in Ogre2RenderTarget::AntiAliasing
/// \return Value in range [1; 256). 1 means no antialiasing.
protected: uint8_t GetTargetFSAA() const;
darksylinc marked this conversation as resolved.
Show resolved Hide resolved

/// \brief Get a pointer to the ogre render target containing
/// the results of the render (implemented separately
/// to avoid breaking ABI of the pure virtual function)
protected: Ogre::TextureGpu *RenderTargetImpl() const;

/// \brief Get a pointer to the ogre render target containing
/// the results of the render
public: virtual Ogre::TextureGpu *RenderTarget() const = 0;

/// \brief Returns true if this is a render window
/// TODO(anyone): this function should be virtual.
/// We didn't do it to preserve ABI.
/// Look in commit history for '#Ogre2IsRenderWindowABI' to
/// see changes made and revert
public: bool IsRenderWindow() const;

// Documentation inherited
public: unsigned int GLIdImpl() const;

/// \brief Destroy the render texture
protected: void DestroyTargetImpl();

/// \brief Build the render texture
protected: void BuildTargetImpl();

/// \brief Get visibility mask for the viewport associated with this
/// render target
/// \return Visibility mask
Expand All @@ -128,12 +155,26 @@ namespace ignition
/// \param[in] _mask Visibility mask
public: virtual void SetVisibilityMask(uint32_t _mask);

/// \brief Deprecated. Use other overloads.
public: static IGN_DEPRECATED(6) void UpdateRenderPassChain(
Ogre::CompositorWorkspace *_workspace,
const std::string &_workspaceDefName,
const std::string &_baseNode, const std::string &_finalNode,
const std::vector<RenderPassPtr> &_renderPasses,
bool _recreateNodes,
Ogre::TextureGpu *(*_ogreTextures)[2],
bool _isRenderWindow);

/// \brief Update the render pass chain
public: static void UpdateRenderPassChain(
Ogre::CompositorWorkspace *_workspace,
const std::string &_workspaceDefName,
const std::string &_baseNode, const std::string &_finalNode,
const std::vector<RenderPassPtr> &_renderPasses, bool _recreateNodes);
const std::vector<RenderPassPtr> &_renderPasses,
bool _recreateNodes,
Ogre::TextureGpu *(*_ogreTextures)[2],
bool _isRenderWindow,
bool _unloadTex0IfNoPost);

/// \brief Update the background color
protected: virtual void UpdateBackgroundColor();
Expand All @@ -144,9 +185,6 @@ namespace ignition
/// \brief Update the render pass chain
protected: virtual void UpdateRenderPassChain();

/// \brief Deprecated. Use Ogre2Scene:UpdateShadowNode instead
protected: void IGN_DEPRECATED(5) UpdateShadowNode();

/// \brief Implementation of the Rebuild function
protected: virtual void RebuildImpl() override;

Expand Down Expand Up @@ -229,7 +267,9 @@ namespace ignition
// Documentation inherited
public: virtual unsigned int GLId() const override;

// Documentation inherited.
// Documentation inherited
// TODO(anyone): this function should be removed.
// We didn't do it to preserve ABI.
public: virtual Ogre::TextureGpu *RenderTarget() const override;

// Documentation inherited.
Expand All @@ -241,9 +281,6 @@ namespace ignition
/// \brief Build the render texture
protected: virtual void BuildTarget();

/// \brief Pointer to the internal ogre render texture object
protected: Ogre::TextureGpu *ogreTexture = nullptr;

/// \brief Make scene our friend so it can create a ogre2 render texture
private: friend class Ogre2Scene;
};
Expand All @@ -261,6 +298,12 @@ namespace ignition
// Documentation inherited.
public: virtual void Destroy() override;

// TODO(anyone): this function should be virtual.
// We didn't do it to preserve ABI.
// Looks in commit history for '#Ogre2IsRenderWindowABI' to
// see changes made and revert
public: bool IsRenderWindow() const;

// Documentation inherited.
public: virtual Ogre::TextureGpu *RenderTarget() const override;

Expand Down
Loading