Skip to content

Commit cbc35f8

Browse files
authored
Merge pull request #331 from ignitionrobotics/merge_5_6_060421
5 -> 6 (main)
2 parents 3d93e9c + 63132ac commit cbc35f8

File tree

41 files changed

+1495
-5946
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+1495
-5946
lines changed

Changelog.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,31 @@
245245

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

248+
### Ignition Rendering 3.5.0 (2021-05-25)
248249

250+
1. Include MoveTo Helper class to ign-rendering
251+
* [Pull request 311](https://github.com/ignitionrobotics/ign-rendering/pull/311)
252+
253+
1. Remove tools/code_check and update codecov
254+
* [Pull request 321](https://github.com/ignitionrobotics/ign-rendering/pull/321)
255+
256+
1. Helper function to get a scene (#320)
257+
* [Pull request 320](https://github.com/ignitionrobotics/ign-rendering/pull/320)
258+
259+
1. Fix DepthGaussianNoise test (#271)
260+
* [Pull request 271](https://github.com/ignitionrobotics/ign-rendering/pull/271)
261+
262+
1. Master branch updates (#268)
263+
* [Pull request 268](https://github.com/ignitionrobotics/ign-rendering/pull/268)
264+
265+
1. 👩🌾 Make GitHub actions tests that are flaky due to display more verbose information (#255)
266+
* [Pull request 255](https://github.com/ignitionrobotics/ign-rendering/pull/255)
267+
268+
1. Fixed OBJ textures with the same name (#239)
269+
* [Pull request 239](https://github.com/ignitionrobotics/ign-rendering/pull/239)
270+
271+
1. More verbose messages when failing to load render engine (#236)
272+
* [Pull request 236](https://github.com/ignitionrobotics/ign-rendering/pull/236)
249273

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

examples/actor_animation/Main.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,17 +181,17 @@ int main(int _argc, char** _argv)
181181

182182
// Expose engine name to command line because we can't instantiate both
183183
// ogre and ogre2 at the same time
184-
std::string engine("ogre");
184+
std::string ogreEngineName("ogre");
185185
if (_argc > 1)
186186
{
187-
engine = _argv[1];
187+
ogreEngineName = _argv[1];
188188
}
189189

190190
common::Console::SetVerbosity(4);
191191
std::vector<std::string> engineNames;
192192
std::vector<CameraPtr> cameras;
193193

194-
engineNames.push_back(engine);
194+
engineNames.push_back(ogreEngineName);
195195

196196
std::vector<VisualPtr> visuals;
197197
ic::SkeletonPtr skel = nullptr;

examples/camera_tracking/Main.cc

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,20 @@ int main(int _argc, char** _argv)
118118
{
119119
glutInit(&_argc, _argv);
120120

121+
// Expose engine name to command line because we can't instantiate both
122+
// ogre and ogre2 at the same time
123+
std::string ogreEngineName("ogre");
124+
if (_argc > 1)
125+
{
126+
ogreEngineName = _argv[1];
127+
}
128+
121129
common::Console::SetVerbosity(4);
122130
std::vector<std::string> engineNames;
123131
std::vector<CameraPtr> cameras;
124132
std::vector<NodePtr> nodes;
125133

126-
engineNames.push_back("ogre");
134+
engineNames.push_back(ogreEngineName);
127135
engineNames.push_back("optix");
128136

129137
for (auto engineName : engineNames)

examples/custom_scene_viewer/ManualSceneDemo.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,10 +185,10 @@ int main(int _argc, char** _argv)
185185

186186
// Expose engine name to command line because we can't instantiate both
187187
// ogre and ogre2 at the same time
188-
std::string ogreEngine("ogre");
188+
std::string ogreEngineName("ogre");
189189
if (_argc > 1)
190190
{
191-
ogreEngine = _argv[1];
191+
ogreEngineName = _argv[1];
192192
}
193193

194194
common::Console::SetVerbosity(4);
@@ -208,7 +208,7 @@ int main(int _argc, char** _argv)
208208
sceneDemo->AddScene(SceneBuilderPtr(new ShadowSceneBuilder(4)));
209209
sceneDemo->AddScene(SceneBuilderPtr(new ShadowSceneBuilder(5)));
210210
//! [add scenes]
211-
sceneDemo->AddCamera(ogreEngine);
211+
sceneDemo->AddCamera(ogreEngineName);
212212
sceneDemo->AddCamera("optix");
213213
sceneDemo->Run();
214214
return 0;
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
cmake_minimum_required(VERSION 3.10.2 FATAL_ERROR)
2+
project(ignition-rendering-custom_shaders_uniforms)
3+
4+
include_directories(SYSTEM
5+
${PROJECT_BINARY_DIR}
6+
)
7+
8+
find_package(ignition-rendering4)
9+
10+
set(TARGET_THIRD_PARTY_DEPENDS "")
11+
12+
if (APPLE OR UNIX)
13+
find_package(GLUT REQUIRED)
14+
include_directories(SYSTEM ${GLUT_INCLUDE_DIRS})
15+
link_directories(${GLUT_LIBRARY_DIRS})
16+
17+
find_package(OpenGL REQUIRED)
18+
include_directories(SYSTEM ${OpenGL_INCLUDE_DIRS})
19+
link_directories(${OpenGL_LIBRARY_DIRS})
20+
set(TARGET_THIRD_PARTY_DEPENDS
21+
${TARGET_THIRD_PARTY_DEPENDS}
22+
${OPENGL_LIBRARIES}
23+
${GLUT_LIBRARIES}
24+
)
25+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated-declarations")
26+
endif()
27+
28+
if (NOT APPLE)
29+
find_package(GLEW REQUIRED)
30+
if (WIN32)
31+
set(TARGET_THIRD_PARTY_DEPENDS
32+
${TARGET_THIRD_PARTY_DEPENDS}
33+
GLEW::glew
34+
)
35+
else ()
36+
set(TARGET_THIRD_PARTY_DEPENDS
37+
${TARGET_THIRD_PARTY_DEPENDS}
38+
GLEW
39+
)
40+
endif()
41+
endif()
42+
43+
configure_file (example_config.hh.in ${PROJECT_BINARY_DIR}/example_config.hh)
44+
45+
if (WIN32)
46+
find_package(FreeGLUT REQUIRED)
47+
set(TARGET_THIRD_PARTY_DEPENDS ${TARGET_THIRD_PARTY_DEPENDS} FreeGLUT::freeglut)
48+
endif()
49+
50+
add_executable(custom_shaders_uniforms Main.cc GlutWindow.cc)
51+
52+
target_link_libraries(custom_shaders_uniforms
53+
${IGNITION-RENDERING_LIBRARIES}
54+
${TARGET_THIRD_PARTY_DEPENDS}
55+
)
56+
57+
if (WIN32)
58+
set_target_properties(custom_shaders_uniforms
59+
PROPERTIES
60+
RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}
61+
RUNTIME_OUTPUT_DIRECTORY_DEBUG ${PROJECT_BINARY_DIR}
62+
RUNTIME_OUTPUT_DIRECTORY_RELEASE ${PROJECT_BINARY_DIR}
63+
RUNTIME_OUTPUT_DIRECTORY_RELWITHDEBINFO ${PROJECT_BINARY_DIR}
64+
RUNTIME_OUTPUT_DIRECTORY_MINSIZEREL ${PROJECT_BINARY_DIR}
65+
)
66+
endif()
67+
68+
add_custom_command(TARGET custom_shaders_uniforms POST_BUILD
69+
COMMAND ${CMAKE_COMMAND} -E copy_directory
70+
${CMAKE_SOURCE_DIR}/media
71+
$<TARGET_FILE_DIR:custom_shaders_uniforms>/media)

0 commit comments

Comments
 (0)