Skip to content

Commit

Permalink
Merge branch 'main' into context_attribs
Browse files Browse the repository at this point in the history
  • Loading branch information
mjcarroll authored Mar 2, 2021
2 parents ba36185 + af7c67d commit 3d6f254
Show file tree
Hide file tree
Showing 25 changed files with 1,175 additions and 182 deletions.
29 changes: 0 additions & 29 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

23 changes: 0 additions & 23 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

52 changes: 0 additions & 52 deletions .github/PULL_REQUEST_TEMPLATE.md

This file was deleted.

6 changes: 0 additions & 6 deletions .github/PULL_REQUEST_TEMPLATE/port.md

This file was deleted.

2 changes: 1 addition & 1 deletion .github/ci/after_make.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -x

make install

Xvfb :1 -screen 0 1280x1024x24 &
Xvfb :1 -ac -noreset -core -screen 0 1280x1024x24 &
export DISPLAY=:1.0
export RENDER_ENGINE_VALUES=ogre2
export MESA_GL_VERSION_OVERRIDE=3.3
17 changes: 17 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,23 @@

### Ignition Rendering 4.X

### Ignition Rendering 4.5.0 (2021-02-17)

1. More verbose messages when failing to load render engines
* [Pull Request #236](https://github.com/ignitionrobotics/ign-rendering/pull/236)

1. Fixed OBJ textures with the same name
* [Pull Request #239](https://github.com/ignitionrobotics/ign-rendering/pull/239)

1. Fix setting particle size
* [Pull Request #241](https://github.com/ignitionrobotics/ign-rendering/pull/241)

1. Make particle emitter invisible in thermal camera image
* [Pull Request #240](https://github.com/ignitionrobotics/ign-rendering/pull/240)

1. Apply particle scattering effect to depth cameras
* [Pull Request #251](https://github.com/ignitionrobotics/ign-rendering/pull/251)

### Ignition Rendering 4.4.0 (2021-02-11)

1. Add support for 8 bit thermal camera image format
Expand Down
16 changes: 16 additions & 0 deletions examples/particles_demo/Main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ void buildScene(ScenePtr _scene)

//! [create particle emitter]
ParticleEmitterPtr emitter = _scene->CreateParticleEmitter();
emitter->SetType(EM_POINT);
emitter->SetLocalPose({2, 1.10, 1.25, 1.5708, 0, 2.3});
emitter->SetRate(10);
emitter->SetParticleSize({1, 1, 1});
Expand All @@ -118,6 +119,21 @@ void buildScene(ScenePtr _scene)
emitter->SetEmitting(true);
root->AddChild(emitter);
//! [create particle emitter]

// area emitter
ParticleEmitterPtr areaEmitter = _scene->CreateParticleEmitter();
areaEmitter->SetType(EM_BOX);
areaEmitter->SetEmitterSize({3.0, 3.0, 3.0});
areaEmitter->SetLocalPose({3, 0, 0, 0, -1.5707, 0});
areaEmitter->SetRate(10);
areaEmitter->SetParticleSize({0.01, 0.01, 0.01});
areaEmitter->SetLifetime(1);
areaEmitter->SetVelocityRange(0.5, 1);
areaEmitter->SetMaterial(particleMaterial);
areaEmitter->SetColorRangeImage(RESOURCE_PATH + "/smokecolors.png");
areaEmitter->SetScaleRate(1);
areaEmitter->SetEmitting(true);
root->AddChild(areaEmitter);
}

//////////////////////////////////////////////////
Expand Down
2 changes: 2 additions & 0 deletions ogre2/include/ignition/rendering/ogre2/Ogre2Includes.hh
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@
#include <OgreHardwarePixelBuffer.h>
#include <OgreShadowCameraSetupPSSM.h>
#include <OgreDepthBuffer.h>
#include <OgreParticleAffector.h>
#include <OgreParticleAffectorFactory.h>
#include <OgreParticleEmitter.h>
#include <OgreParticleSystem.h>

Expand Down
10 changes: 10 additions & 0 deletions ogre2/include/ignition/rendering/ogre2/Ogre2ParticleEmitter.hh
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,19 @@ namespace ignition
public: virtual void SetColorRangeImage(const std::string &_image)
override;

/// \brief Particle system visibility flags
public: static const uint32_t kParticleVisibilityFlags;

// Documentation inherited.
protected: virtual void Init() override;

/// \brief Internal pre-render function added to avoid breaking ABI
/// compatibility
private: void PreRenderImpl();

/// \brief Create the particle system
private: void CreateParticleSystem();

/// \brief Only the ogre scene can instanstiate this class
private: friend class Ogre2Scene;

Expand Down
Loading

0 comments on commit 3d6f254

Please sign in to comment.