Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 3 additions & 0 deletions doc/Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

# git master

* [35](https://github.com/HBPVIS/ZeroBuf/pull/35)
Added LookOut and Frame events

# Release 0.2 (08-03-2016)

* [32](https://github.com/HBPVIS/ZeroBuf/pull/32)
Expand Down
6 changes: 3 additions & 3 deletions zerobuf/render/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Copyright (c) HBP 2015 Daniel Nachbaur <[email protected]>
# All rights reserved. Do not distribute without further notice.
# Copyright (c) HBP 2015-2016 Daniel Nachbaur <[email protected]>

set(ZEROBUFRENDER_INCLUDE_NAME zerobuf/render)

include(zerobufGenerateCxx)
zerobuf_generate_cxx(ZEROBUFRENDER
${OUTPUT_INCLUDE_DIR}/${ZEROBUFRENDER_INCLUDE_NAME} camera.fbs lookupTable1D.fbs imageJPEG.fbs)
${OUTPUT_INCLUDE_DIR}/${ZEROBUFRENDER_INCLUDE_NAME}
camera.fbs frame.fbs lookOut.fbs lookupTable1D.fbs imageJPEG.fbs)

set(ZEROBUFRENDER_PUBLIC_HEADERS ${ZEROBUFRENDER_HEADERS})
set(ZEROBUFRENDER_LINK_LIBRARIES PUBLIC ZeroBuf)
Expand Down
17 changes: 17 additions & 0 deletions zerobuf/render/frame.fbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// Copyright (c) 2015, Human Brain Project
// Stefan Eilemann
// [email protected]
//
namespace zerobuf.render;

table Frame
{
// starting frame number for an animation loop
start:uint;
// current frame (wrapped into [start end])
current:uint;
// end frame number for an animation loop
end:uint;
// animation delta between start<->end
delta:int;
}
21 changes: 21 additions & 0 deletions zerobuf/render/lookOut.fbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Copyright (c) 2016, Human Brain Project
// [email protected]
//
namespace zerobuf.render;

// This event is named "LookOut" instead of "Camera" because
// it may be used in immersive environments. The orientation of
// a display surface or the head position of the observer should
// not be part of this event, i.e., if the user is on a magic
// carpet, you will synchronize the matrices describing the
// carpets but not the user's local movements on the carpet.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More scientifically can be said that, this transforms from world space to carpet space ( Here worlds assumed to be same space )

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

// More scientifically can be said that, this transforms from
// world space to carpet space.
//
// The LookOut event contains 16 doubles values representing a
// matrix. The layout of this values is the one expected by OpenGL.
// The positions are in meters.
table LookOut
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add description about what transformation this LookOut defines, matrix layout, unit, ...

{
matrix:[double:16];
}