Skip to content

Commit 85a86b1

Browse files
committed
Merge branch 'release-0.6.6'
2 parents 36c9f52 + a033bd5 commit 85a86b1

35 files changed

+484
-566
lines changed

CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
cmake_minimum_required(VERSION 3.2)
2121
project(
2222
splash
23-
VERSION 0.6.4
23+
VERSION 0.6.6
2424
LANGUAGES C CXX
2525
)
2626

@@ -97,6 +97,10 @@ elseif(APPLE)
9797
set(HAVE_OSX 1)
9898
endif()
9999

100+
if (DEBUG_OPENGL EQUAL 1)
101+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDEBUGGL")
102+
endif()
103+
100104
if (DATAPATH_SDK_PATH)
101105
if (IS_DIRECTORY "${DATAPATH_SDK_PATH}/include" AND IS_DIRECTORY "${DATAPATH_SDK_PATH}/utils")
102106
set(HAVE_DATAPATH 1)
@@ -211,6 +215,7 @@ info_cfg_option(SHMDATA_VERSION)
211215
info_cfg_option(PYTHONLIBS_VERSION_STRING)
212216
info_cfg_option(DATAPATH_SDK_PATH)
213217
info_cfg_option(DOXYGEN_FOUND)
218+
info_cfg_option(DEBUG_OPENGL)
214219

215220
info_cfg_text("")
216221
message("${_config_msg}")

NEWS.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
Splash release notes
22
===================
33

4+
Splash 0.6.6 (2017-04-28)
5+
-------------------------
6+
Improvements:
7+
- Converted to OpenGL 4.5
8+
- Improved the file selector
9+
- Sinks now use framerate as a parameter (instead of period), shmdata sinks fill the caps with this parameter
10+
- Moving mouse over a window which does not hold the GUI does not move the mouse on the GUI window anymore
11+
12+
Bug fixed:
13+
- Fixed warp jittery movement. Still some undesired visual glitches when editing warps
14+
- Fixed window fullscreen behavior
15+
416
Splash 0.6.4 (2017-04-13)
517
-------------------------
618
New features:

addons/blender/splash/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
bl_info = {
2121
"name": "Splash output",
2222
"author": "Emmanuel Durand",
23-
"version": (0, 6, 4),
23+
"version": (0, 6, 6),
2424
"blender": (2, 72, 0),
2525
"location": "3D View > Toolbox, File > Export",
2626
"description": "Utility tools to connect Blender to the Splash videomapper",

data/config/splash-launcher.desktop

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[Desktop Entry]
2-
Version=0.6.4
2+
Version=0.6.6
33
Name=Splash
44
Exec=splash
55
Type=Application

include/base_object.h

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,11 @@ class BaseObject
7373
/**
7474
* \brief Constructor.
7575
*/
76-
BaseObject(): _root(nullptr) { init(); }
76+
BaseObject()
77+
: _root(nullptr)
78+
{
79+
init();
80+
}
7781

7882
/**
7983
* \brief Constructor.
@@ -305,11 +309,12 @@ class BaseObject
305309
bool _savable{true}; //!< True if the object should be saved
306310

307311
protected:
308-
unsigned long _id{0}; //!< Internal ID of the object
309-
std::string _type{"baseobject"}; //!< Internal type
310-
Category _category{Category::MISC}; //!< Object category, updated by the factory
311-
std::string _remoteType{""}; //!< When the object root is a Scene, this is the type of the corresponding object in the World
312-
std::string _name{""}; //!< Object name
312+
unsigned long _id{0}; //!< Internal ID of the object
313+
std::string _type{"baseobject"}; //!< Internal type
314+
Category _category{Category::MISC}; //!< Object category, updated by the factory
315+
std::string _remoteType{""}; //!< When the object root is a Scene, this is the type of the corresponding object in the World
316+
std::string _name{""}; //!< Object name
317+
std::vector<BaseObject*> _parents{}; //!< Objects parents
313318

314319
Priority _renderingPriority{Priority::NO_RENDER}; //!< Rendering priority, if negative the object won't be rendered
315320
int _priorityShift{0}; //!< Shift applied to rendering priority
@@ -347,6 +352,18 @@ class BaseObject
347352
AttributeFunctor& addAttribute(
348353
const std::string& name, const std::function<bool(const Values&)>& set, const std::function<const Values()>& get, const std::vector<char>& types = {});
349354

355+
/**
356+
* Inform that the given object is a parent
357+
* \param obj Parent object
358+
*/
359+
void linkToParent(BaseObject* obj);
360+
361+
/**
362+
* Remove the given object as a parent
363+
* \param obj Parent object
364+
*/
365+
void unlinkFromParent(BaseObject* obj);
366+
350367
/**
351368
* \brief Register new attributes
352369
*/

include/camera.h

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,10 @@ class Camera : public BaseObject
119119
void drawModelOnce(const std::string& modelName, const glm::dmat4& rtMatrix);
120120

121121
/**
122-
* \brief Get the output textures for this camera
123-
* \return Return a vector of pointers to the output textures
122+
* \brief Get the output texture for this camera
123+
* \return Return a pointer to the output textures
124124
*/
125-
std::vector<std::shared_ptr<Texture_Image>> getTextures() const { return _outTextures; }
125+
std::shared_ptr<Texture_Image> getTexture() const { return _outTexture; }
126126

127127
/**
128128
* \brief Check whether the camera is initialized
@@ -213,10 +213,9 @@ class Camera : public BaseObject
213213
bool setCalibrationPoint(const Values& screenPoint);
214214

215215
/**
216-
* \brief Set the number of output buffers for this camera
217-
* \param nbr Number of outputs
216+
* \brief Set the output framebuffer
218217
*/
219-
void setOutputNbr(int nbr);
218+
void setupFBO();
220219

221220
/**
222221
* \brief Set the resolution of this camera
@@ -231,7 +230,7 @@ class Camera : public BaseObject
231230

232231
GLuint _fbo{0};
233232
std::shared_ptr<Texture_Image> _depthTexture;
234-
std::vector<std::shared_ptr<Texture_Image>> _outTextures;
233+
std::shared_ptr<Texture_Image> _outTexture;
235234
std::vector<std::weak_ptr<Object>> _objects;
236235

237236
// Rendering parameters

include/controller_gui.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ class Gui : public ControllerObject
190190

191191
GLuint _fbo{0};
192192
std::shared_ptr<Texture_Image> _depthTexture;
193-
std::shared_ptr<Texture> _outTexture;
193+
std::shared_ptr<Texture_Image> _outTexture;
194194
float _width{512}, _height{512};
195195
int _initialGuiPos[2]{16, 16}; //!< Gui position at startup
196196

@@ -215,6 +215,7 @@ class Gui : public ControllerObject
215215
// Gui related attributes
216216
std::string _configurationPath;
217217
std::string _projectPath;
218+
bool _mouseHoveringWindow{false};
218219
bool _isVisible{false};
219220
bool _flashBG{false}; // Set to true if the BG is set to all white for all outputs
220221
bool _wireframe{false};

include/coretypes.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
#define SPLASH_FILE_PROJECT "splashProject"
3636

3737
#include <ostream>
38+
#include <execinfo.h>
3839

3940
#include "./gl_window.h"
4041
#include "./log.h"

include/mesh_bezierPatch.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ class Mesh_BezierPatch : public Mesh
8888

8989
Patch _patch{};
9090
int _patchResolution{64};
91+
std::mutex _patchMutex{};
9192

9293
bool _patchUpdated{true};
9394
MeshContainer _bezierControl;

include/sink.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ class Sink : public BaseObject
7575
void render() override;
7676

7777
protected:
78+
uint32_t _framerate{30}; //!< Maximum framerate
79+
7880
/**
7981
* \brief Register new functors to modify attributes
8082
*/
@@ -87,7 +89,6 @@ class Sink : public BaseObject
8789
std::mutex _lockPixels;
8890

8991
bool _opened{false}; //!< If true, the sink lets frames through
90-
uint32_t _period{0}; //!< Minimum time between consecutive frames
9192

9293
uint64_t _lastFrameTiming{0};
9394
uint32_t _pboCount{3};

0 commit comments

Comments
 (0)