Commit Graph

13 Commits

Author SHA1 Message Date
Noel Grandin
827c46e7d7 fdo#82577: Handle Window
Put the VCL Window class in the vcl namespace. Avoids clash with the X11
Window typedef.

Change-Id: Ib1beb7ab4ad75562a42aeb252732a073d25eff1a
2014-09-23 14:11:39 +03:00
Zolnai Tamás
a60cc58021 Upgrade libgltf to 0.0.1
News in this version:
- Solve some limitations of walkthrough mode (fdo#81425)
- Multisampling (better rendering quality, mainly at the edges)
- Better error handling (no crash in case of invalid input file)

Change-Id: I46fdf56b00476614487fbcc04178e43e33a01794
Reviewed-on: https://gerrit.libreoffice.org/11179
Reviewed-by: Zolnai Tamás <tamas.zolnai@collabora.com>
Tested-by: Zolnai Tamás <tamas.zolnai@collabora.com>
2014-08-29 05:01:31 -05:00
Rene Engelhard
97bda8e081 implement --with-system-gltf
Change-Id: Ic842006b28f8043bcbbaa81ab5a20e15aa52ac82
2014-08-05 20:06:17 +02:00
Zolnai Tamás
48d1f86071 Upload first official libgltf release: libgltf-0.0.0
News relative to previous draft version:
- Memory management improvements (fdo#81180)
- Reduced OpenGL requirements (version 3.3 -> version 3.0)
- Cleaned up API

Change-Id: Ie3caf8684a9f5e6a872a1ac35beafb94df03bcf5
Reviewed-on: https://gerrit.libreoffice.org/10744
Reviewed-by: Zolnai Tamás <zolnaitamas2000@gmail.com>
Tested-by: Zolnai Tamás <zolnaitamas2000@gmail.com>
2014-08-05 08:21:59 +00:00
Zolnai Tamás
9a670eb493 glTF: constraine camera move in orbit mode
Not to get too close to / too far from the model.
Too close means move into the model.

Change-Id: Ie25d87c88093d4baaf98f13ab8239263b5e1bf66
2014-07-03 16:28:20 +02:00
Zolnai Tamás
6403f2b59b Update libgltf: new build system and various fixes
Building:
- The new tarball has reasonable build system so
build libgltf as external package instead of compiling
source files directly.
- Freetype dependancy is removed

Improvements comes with the new libgltf
- Can rotate the models too (orbit mode)
- Two camera handling mode: walkthrough and orbit
(press M to change).
- gltf_animation_set_time() works
- FPS can be displayed without freetype (press F)

Additional notes:
- There were some bugs/regressions which are fixed
during the integration (see patches).
- License files are uddated now.
- libgltf building is enabled only on those platforms
on which gltf support actually works (windows and linux)

Change-Id: Ia6c9c4da53a9b4fedba0d73aa5791489f8ad424b
Reviewed-on: https://gerrit.libreoffice.org/9895
Reviewed-by: Zolnai Tamás <zolnaitamas2000@gmail.com>
Tested-by: Zolnai Tamás <zolnaitamas2000@gmail.com>
2014-06-25 13:22:29 +00:00
Zolnai Tamás
cd0ff1b3c2 OGLWindow: remove unused zoom level
Zooming is solved on a more sophisticated way.

Change-Id: I0386ace8a3751d708ac86ff0ddf0836c79ae603f
2014-05-29 14:42:29 +02:00
Zolnai Tamás
0bff18c4ec OGLWindow: use reference instead of pointer
Change-Id: I72ef9570ac9e7b4cb4afc2319725743098722d31
2014-05-29 13:25:00 +02:00
Thomas Arnhold
2bd7767d01 Resolves fdo#70681: fixincludeguards.pl: all that's left
Change-Id: I3e51a62710bb46c8255fd228d41d9300c90a1fb5
Reviewed-on: https://gerrit.libreoffice.org/9360
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
2014-05-15 12:50:46 +00:00
Zolnai Tamás
3efddb093e OGLWindow: First try to rotate camera
For now its too slow to render by mousemove so
use mousebuttonup instead.
It seems gltf_renderer_rotate_camera() method does not rotate
the camera but set the new position of it.

Change-Id: I0fe7895720dbf95acb0963a5ba6dd2a5840d8f6b
2014-05-15 14:23:43 +02:00
Zolnai Tamás
bf703a7ef9 glTF rendering: first try to move camera position
SystemChildWindow can't handle events by its own
that's why it's parent is used as an event handler.
Mouse pointer specify the active model.
This patch made for editing, in case of slideshow
we have one less window.

Change-Id: If8ac57176b9a0abab518f8d8a06a2a41177a4881
2014-05-13 00:09:11 +02:00
Zolnai Tamás
e112ac81d1 First try to render OpenGL content in a window
Change-Id: Ibb7178330d356806cea2cfc972b361167d5a9340
2014-04-27 12:34:07 +02:00
Zolnai Tamás
4f48dc2f97 Skeleton of OpenGL avmedia service for playing 3D models
Change-Id: I3bf9e68e1a08ff3db065ec7f4e135119b7d1a4ef
2014-03-27 11:22:32 +01:00