de.git.xonotic.org Git - xonotic/netradiant.git/atom - CMakeLists.txt history xonotic/netradiant.git Atom feed http://de.git.xonotic.org/?p=xonotic/netradiant.git static/git-favicon.png static/git-logo.png 2023-08-15T22:42:01Z gitweb plugins: chose Radiant IQM plugin, iqmmodel for macOS, picomodel for everything else 2023-08-15T22:42:01Z Thomas Debesse dev@illwieckz.net Thomas Debesse dev@illwieckz.net 2023-08-15T22:42:01Z http://de.git.xonotic.org/?p=xonotic/netradiant.git;a=commitdiff;h=35024695ee386c78f6a1b9f299329e7d7dd75343
plugins: chose Radiant IQM plugin, iqmmodel for macOS, picomodel for everything else

The picomodel IQM code makes NetRadiant crash on macOS.
No one has found time to investigate this in month.

We need a working NetRadiant IQM plugin to load
Unvanquished game entity models on macOS, the
plugin from AAradiant (AlienArena project) is
known to work.

Q3map2 uses picomodel to load IQM on all platforms
because iqmmodel plugin is radiant-only, so there
may be a remaining bug when baking IQM models in BSP
with q3map2 on macOS (not tested), but editing a map
with IQM entity models and misc_animated_models will
not crash NetRadiant.

This patch makes possible to release a macOS NetRadiant
build that don't crash when rendering IQM models.

We should fix picomodel crash with IQM on macOS in any way,
because it is believed q3map2 may need it, but waiting for
a picomodel fix will not delay any NetRadiant release.

One can force NetRadiant to be built against a given IQM
plugin (for example to debug it) whatever the platform
by setting the RADIANT_IQM_PLUGIN CMake variable to
either `iqmmodel` or `picomodel`. Any other value,
including empty string, will set the default plugin for
the platform.
  • [D] CMakeLists.txt
cmake: force Release build if CMAKE_BUILD_TYPE is unset 2023-02-19T15:49:53Z Thomas Debesse dev@illwieckz.net Thomas Debesse dev@illwieckz.net 2023-02-19T15:49:53Z http://de.git.xonotic.org/?p=xonotic/netradiant.git;a=commitdiff;h=89ddcffaae19260a86399c6b273a8af252920ac6
cmake: force Release build if CMAKE_BUILD_TYPE is unset
  • [D] CMakeLists.txt
cmake: use elseif for some system-specific code 2023-02-19T15:15:35Z Thomas Debesse dev@illwieckz.net Thomas Debesse dev@illwieckz.net 2023-02-19T15:15:35Z http://de.git.xonotic.org/?p=xonotic/netradiant.git;a=commitdiff;h=a09854f1a9d64a8ae392f4f630a00c27fcdabccb
cmake: use elseif for some system-specific code
  • [D] CMakeLists.txt
tools: remove daemonmap 2023-01-14T18:19:12Z Thomas Debesse dev@illwieckz.net Thomas Debesse dev@illwieckz.net 2023-01-14T18:19:12Z http://de.git.xonotic.org/?p=xonotic/netradiant.git;a=commitdiff;h=bf668aad10e8e652c1137524e358c17b007af02d
tools: remove daemonmap
  • [D] CMakeLists.txt
radiant: rework the configuration of FHS and absolute FHS installation 2022-06-18T21:23:52Z Thomas Debesse dev@illwieckz.net Thomas Debesse dev@illwieckz.net 2022-06-18T21:23:52Z http://de.git.xonotic.org/?p=xonotic/netradiant.git;a=commitdiff;h=feb71a7a0cdf7c2a1d8f64935b8fb110cbd48d02
radiant: rework the configuration of FHS and absolute FHS installation
  • [D] CMakeLists.txt
use /usr/lib/x86_64-linux-gnu/netradiant path 2022-04-13T19:51:52Z Walter Doekes walter+github@wjd.nu Thomas Debesse dev@illwieckz.net 2022-04-13T19:51:52Z http://de.git.xonotic.org/?p=xonotic/netradiant.git;a=commitdiff;h=e4403ea26e3e0227d1e985f0283c0826b98a2719
use /usr/lib/x86_64-linux-gnu/netradiant path
  • [D] CMakeLists.txt
Make git dependency optional if GIT_VERSION is set 2022-02-10T21:14:17Z Antoine Fontaine antoine.fontaine@epfl.ch Antoine Fontaine antoine.fontaine@epfl.ch 2022-02-10T21:14:17Z http://de.git.xonotic.org/?p=xonotic/netradiant.git;a=commitdiff;h=7a528d7248a70aff1c54e5f508de56bfffbf24c3
Make git dependency optional if GIT_VERSION is set
  • [D] CMakeLists.txt
mime: fix mimetype and file type association 2022-01-11T10:53:24Z Thomas Debesse dev@illwieckz.net Thomas Debesse dev@illwieckz.net 2022-01-11T10:53:24Z http://de.git.xonotic.org/?p=xonotic/netradiant.git;a=commitdiff;h=f6faf961e8151ae67bd5d8f2e65b337d61ef0bf9
mime: fix mimetype and file type association
  • [D] CMakeLists.txt
cmake: fix gtkglex build configuration issues 2021-10-21T12:11:32Z Thomas Debesse dev@illwieckz.net Thomas Debesse dev@illwieckz.net 2021-10-21T12:11:32Z http://de.git.xonotic.org/?p=xonotic/netradiant.git;a=commitdiff;h=2134e1e306be6bcf12cecf16af539781fa99cc01
cmake: fix gtkglex build configuration issues
  • [D] CMakeLists.txt
gtkglext: some fixes and improvements 2021-09-29T13:42:57Z Thomas Debesse dev@illwieckz.net Thomas Debesse dev@illwieckz.net 2021-09-29T13:42:57Z http://de.git.xonotic.org/?p=xonotic/netradiant.git;a=commitdiff;h=f2cd10d026749770660609e68fea8c3013cf7e72
gtkglext: some fixes and improvements
  • [D] CMakeLists.txt
cmake: reuse already defined variables 2021-03-28T15:53:16Z Thomas Debesse dev@illwieckz.net Thomas Debesse dev@illwieckz.net 2021-03-28T15:53:16Z http://de.git.xonotic.org/?p=xonotic/netradiant.git;a=commitdiff;h=f662350b758060273877907565413f253f45be72
cmake: reuse already defined variables
  • [D] CMakeLists.txt
cmake/gtkglext: do not override CC 2021-03-20T14:19:50Z Thomas Debesse dev@illwieckz.net Thomas Debesse dev@illwieckz.net 2021-03-20T14:19:50Z http://de.git.xonotic.org/?p=xonotic/netradiant.git;a=commitdiff;h=39aff767d94b6d5eb3e855d8da247e77b36a1859
cmake/gtkglext: do not override CC

This bring many issues we don't have man power for at this time.
  • [D] CMakeLists.txt
cmake: OBJC is not passed to gtkglext build tools 2021-03-11T06:08:25Z Thomas Debesse dev@illwieckz.net Thomas Debesse dev@illwieckz.net 2021-03-11T06:08:25Z http://de.git.xonotic.org/?p=xonotic/netradiant.git;a=commitdiff;h=6f4e73fa585738042b3752d334e76efda58e9771
cmake: OBJC is not passed to gtkglext build tools
  • [D] CMakeLists.txt
cmake: pass C compiler option to gtkglext build tools 2021-03-11T06:06:52Z Thomas Debesse dev@illwieckz.net Thomas Debesse dev@illwieckz.net 2021-03-11T06:06:52Z http://de.git.xonotic.org/?p=xonotic/netradiant.git;a=commitdiff;h=b1c9cf4434f0d6352924b871438112799a9850ef
cmake: pass C compiler option to gtkglext build tools
  • [D] CMakeLists.txt
macos: workaround the laggy XY/Camera window mouse pointer recentering 2021-03-10T06:25:34Z Thomas Debesse dev@illwieckz.net Thomas Debesse dev@illwieckz.net 2021-03-10T06:25:34Z http://de.git.xonotic.org/?p=xonotic/netradiant.git;a=commitdiff;h=8cb6710a9cd536a423dd4e1767e318192f2bb301
macos: workaround the laggy XY/Camera window mouse pointer recentering

On macOS, a huge lag occurs when the pointer is recentered.
This happens when calling GTK functions to set the pointer
at the center of the widget so it looks to be a lag in GTK
or in underlayer macOS technology GTK relies on.

When that mouse pointer recenter is disabled, one can drag
infinitely without lag BUT then comes weird bugs because
the “released right mouse button” event is only read when
the mouse is over the widget, so if one releases over
another widget, the mouse pointer is not released
and if one do another right mouse click on another XY widget,
the internal state becomes corrupted and a crash is
expected to happen soon.

So the idea of that workaround is to only reposition
the pointer when an edge of the XY/Camera window is reached,
so the user does not experience lag for the whole size
of the XY window, experiencing the lag only when a
whole dimension is moved. To optimize the distance
the user can move without lag, when an edge is reached
the pointer is repositioned on the opposite edge.

It was noticed the pointer is not hidden on macOS when
moving the map, so the pointer being visible during
all the move operation is not restored to the initial
position when it is released, but keep the position
currently seen by the user at right mouse button release
time.

Note: It was noticed it is possible to esscape the capturing
widnow when the render is slow and framerate is low, it
may also occurs with touch screens (like virtual machines has)
to move the pointer out of the XY/Camera widget and get the
internal state corruption problem.
  • [D] CMakeLists.txt
cmake/gtkglext: rewrite the way it is built 2021-03-09T13:21:40Z Thomas Debesse dev@illwieckz.net Thomas Debesse dev@illwieckz.net 2021-03-09T13:21:40Z http://de.git.xonotic.org/?p=xonotic/netradiant.git;a=commitdiff;h=4db9a9a9180e392826f5807967ce264f631bc349
cmake/gtkglext: rewrite the way it is built
  • [D] CMakeLists.txt
macos: properly set GL_SILENCE_DEPRECATION when building gtkglext 2021-03-07T09:09:29Z Thomas Debesse dev@illwieckz.net Thomas Debesse dev@illwieckz.net 2021-03-07T09:09:29Z http://de.git.xonotic.org/?p=xonotic/netradiant.git;a=commitdiff;h=dd811541b5b723f5b8b3cf2d8c7e1a9808eadbd9
macos: properly set GL_SILENCE_DEPRECATION when building gtkglext
  • [D] CMakeLists.txt
macos: set GL_SILENCE_DEPRECATION when building radiant 2021-03-07T05:14:50Z Thomas Debesse dev@illwieckz.net Thomas Debesse dev@illwieckz.net 2021-03-07T05:14:50Z http://de.git.xonotic.org/?p=xonotic/netradiant.git;a=commitdiff;h=1c3a97f39c01a76cc6255ca064d39d2225637b0a
macos: set GL_SILENCE_DEPRECATION when building radiant
  • [D] CMakeLists.txt
freebsd: enable bundling 2021-03-06T23:07:02Z Thomas Debesse dev@illwieckz.net Thomas Debesse dev@illwieckz.net 2021-03-06T23:07:02Z http://de.git.xonotic.org/?p=xonotic/netradiant.git;a=commitdiff;h=43d2201f502b383678bc1ad3ad740cfc8dfdfe07
freebsd: enable bundling

Also always prevent cmake to patch rpath when bundling,
this is done by library-bundler instead.
  • [D] CMakeLists.txt
cmake: fix whitespace 2021-02-22T19:02:00Z Thomas Debesse dev@illwieckz.net Thomas Debesse dev@illwieckz.net 2021-02-22T19:02:00Z http://de.git.xonotic.org/?p=xonotic/netradiant.git;a=commitdiff;h=8ee4c512e727c9c6adc65880ea565cf893a40993
cmake: fix whitespace
  • [D] CMakeLists.txt