]> git.rm.cloudns.org Git - xonotic/netradiant.git/log
xonotic/netradiant.git
7 years agoFix prtview about dialog regression
TimePath [Sun, 6 Aug 2017 07:27:10 +0000 (17:27 +1000)]
Fix prtview about dialog regression

7 years agoWrap more GTK
TimePath [Sun, 6 Aug 2017 05:33:28 +0000 (15:33 +1000)]
Wrap more GTK

7 years agoSuppress warnings
TimePath [Sun, 6 Aug 2017 04:19:41 +0000 (14:19 +1000)]
Suppress warnings

7 years agoMerge branch 'smooth' into 'master'
TimePath [Sun, 6 Aug 2017 02:45:22 +0000 (02:45 +0000)]
Merge branch 'smooth' into 'master'

Smoothing stuff

See merge request !70

7 years agoMerge branch 'vfsmodels' into 'master'
TimePath [Sun, 6 Aug 2017 02:43:50 +0000 (02:43 +0000)]
Merge branch 'vfsmodels' into 'master'

refresh VFS on model refresh, refresh models on VFS refresh

See merge request !72

7 years agoMerge branch 'gamepackdeps' into 'master'
TimePath [Sun, 6 Aug 2017 02:42:34 +0000 (02:42 +0000)]
Merge branch 'gamepackdeps' into 'master'

dpk vfs: now loads DEPS file from game pack

See merge request !71

7 years agoMerge branch 'fixwarn' into 'master'
TimePath [Sun, 6 Aug 2017 02:38:06 +0000 (02:38 +0000)]
Merge branch 'fixwarn' into 'master'

Fix some obvious warnings

See merge request !57

7 years agoAdd CPack targets package and package_source
TimePath [Thu, 3 Aug 2017 12:05:12 +0000 (22:05 +1000)]
Add CPack targets package and package_source

7 years agoUpdate CMakeLists.txt
TimePath [Wed, 2 Aug 2017 12:38:07 +0000 (22:38 +1000)]
Update CMakeLists.txt

7 years agoRadiant:
Garux [Wed, 2 Aug 2017 06:22:10 +0000 (09:22 +0300)]
Radiant:

binds...
* Tab in freelook: smooth turn around selected, while focusing on one

misc...
* activate key_press_handler before special_key_press_handler to allow CameraFree* commands, bound to special (gtk: !accelerator_is_valid) keys
* update workzone on partial deselecting too (was updating only on adding to selection)

7 years agoQ3map2:
Garux [Wed, 2 Aug 2017 06:21:32 +0000 (09:21 +0300)]
Q3map2:
disable fastnormalize for light: was increasing dirt from arealights, lighting with acute angle

Radiant:

binds...
* QE tool: alt + m1 drag in primitives mode:
click face = clicked faces shear
* m3 in texbro: select texture w/o applying to selection
* `: XYFocusOnSelected
* ctrl + shift + e: Select Connected Entities
misc...
* search in shortcuts list
* edit shortcuts on m1 dbl click
* edit shortcuts fix: could highlight a few rows for editing
* texbro: toggle off hideUnused on loading a tag
* fix of: undo something, select tex in texbro, no redo available
* epsilon in resize brush selector to prevent perpendicular faces pickup
* clone group entity primitives to separate entity on cloneSelectedMakeUnique
* Focus on Selected option in Entity List (focus cam and center xy)
* entity inspector: connected entities walker (select target / targeting / both)(focus)

7 years agoQ3map2:
Garux [Wed, 2 Aug 2017 06:20:56 +0000 (09:20 +0300)]
Q3map2:
* fix: parsing of /* */ comments, having * or / inside

Radiant:

misc...
encapsulate RETURN_FALSE_IF_FAIL macros with do while 0: minus warnings
* button to call color selector from ents inspector color entry
* explanatory text on initial engine path configuration
* don't show Global preferences by default, except first start
* activate {xyview, camera, texbro glwidget} on mouse button press and scroll, so {texbro treeview and console} hotkeys do not override global ones
* activate windows, containing xyview, camera, texbro on mouse scroll
* fix: autoapplying trigger texture on entity creation is undoable
* fix: texbro m1/2 x2 work, when some tag is loaded
* bold key and spawnflags names in entity inspector entity description
* fix: +CameraFreeMove* command, +shift, -CameraFreeMove*, -shift = still moving (reason: caps letter)

7 years agoRadiant:
Garux [Wed, 2 Aug 2017 06:19:53 +0000 (09:19 +0300)]
Radiant:

misc...
* regular gtk search in entity inspector -> entity class list
* fix: entities, converted to ( targeted + having model + not loaded b4 ) ones weren't selectable normally + rendered only while 0 0 0 was visible
* ExpandSelectionToEntities works, if only parent node is selected, too (via entity list)
* Select & normalize color commands work for group ents, if contained primitive is selected
* remove boolean key, if set via entity inspector checkbox to 0 (ex: light - sun checkbox: was _sun 0, if off)

7 years agoQ3map2:
Garux [Wed, 2 Aug 2017 06:19:22 +0000 (09:19 +0300)]
Q3map2:
* -backsplash (float)scale (float)distance: scale area lights backsplash fraction + set distance globally
(distance < -900 to omit distance setting); def = 1 23; real area lights have no backsplash (scale = 0)
q3map_backsplash shader keyword overrides this setting

Radiant:

binds...
* alt + m1 click/drag in component modes: select objects
misc...
* fix: selected entity and brush numbers display in 'Find brush' dialog
* prefer to display texture width and height in status bar over name (PANGO_ELLIPSIZE_START)
* allow search shortcut (ctr+f in win) in entity inspector -> entity class list
* fix: don't save empty group entities (but worldspawn)

7 years agoRadiant:
Garux [Wed, 2 Aug 2017 06:18:45 +0000 (09:18 +0300)]
Radiant:

binds...
* ctrl + shift + m1 (in texbro): open shader in external editor
misc...
* fix: do not unmaximize external shader editor on win
* fix: blank cursor in radiant after calling external shader editor on win
* fix shader editors stuff for non uindowses
* 'Shader Editor Command' preference is available on win (is used, if set; otherwise try default os action for file)
* fix: 'Shader Editor Command' preference allows selecting executable via dialog
* GDK_HAND2 cursor in clipper tool mode
* fix: clipper points have numeric labels
* '2d zoom in to mouse pointer' option works for alt + m2 zoom
* '3d zoom in to mouse pointer' option (def = yes)

7 years agomenus...
Garux [Wed, 2 Aug 2017 06:17:58 +0000 (09:17 +0300)]
menus...
* view->show: +Entity Names = Targetnames (option to draw targetnames, not classnames; def = no)

7 years agoQ3map2:
Garux [Wed, 2 Aug 2017 06:16:57 +0000 (09:16 +0300)]
Q3map2:
* new slightly less careful, but much faster lightmaps packing algorithm (allocating... process)
* -slowallocate switch to enable old lightmaps packing algorithm
* Subsampling...collapsing...sorting...allocating...storing...projecting... timers

7 years agoQ3map2:
Garux [Wed, 2 Aug 2017 06:16:24 +0000 (09:16 +0300)]
Q3map2:
* new area lights backsplash algorithm ( by Jelvan ), hijacking temp area lights ( to simulate volumetric behavior of source ones )
* fix: create backsplash for area lights, while q3map_lightsubdivide'ing too
* no backsplash for area lights, if surf == sky
* report patches count in -info
* -exportents to exports entities to a .ent file
* unvanquished game support
* -fs_basepath: can be used more than once to look in multiple paths (Sets the given path as main directory of the game)
* -fs_game: can be used more than once (Sets a different game directory name (default for Q3A: baseq3))
* -fs_pakpath <dir>: Specify additional custom path to assets (can be used more than once to look in multiple paths)
* fix undocumented unexpected LokiInitPaths
* -help option (-h, --help)

7 years agoQ3map2:
Garux [Wed, 2 Aug 2017 06:15:41 +0000 (09:15 +0300)]
Q3map2:
* _setmaxstdio(2048) for windows
* game_qfusion update

Radiant:

misc...
* wrap long command lines in build menu -> customize
* map info dialog: + Total patches, Ingame entities, Group entities, Ingame group entities counts
* fix: map info dialog -> sort by count works
* fix of: minimize main wnd, close, start = cam, cons, texbro null size

7 years agoRadiant:
Garux [Wed, 2 Aug 2017 06:15:07 +0000 (09:15 +0300)]
Radiant:

misc...
* fix: update projections on prev/nextleakspot
* use active projection for prev/nextleakspot tracking
* fix of: no redo available after ( nothing selected + M1 click ) in 2D
* fix: nudge left, right, up, down commands work in scale, rotate, clipper manipulator modes
* deprecated 'Disable system menu on popup windows' preference, was doing nothing
* preference: Nudge selected after duplication (def = no)
* preference: Left mouse click tunnel selector (def = yes)

7 years agoRadiant:
Garux [Wed, 2 Aug 2017 06:14:33 +0000 (09:14 +0300)]
Radiant:

misc...
* fix: mixed up 'Up' & 'Forward' mouse strafe options
* mouse strafe options: old 'both' one with inverted forward, None

fix: QE tool: alt + m1 + ctrl drag : verts weren't snapped (since not component mode)
fix: QE tool face drag + ctrl: no snap
fix: ctrl snap on drag + shift constrain to axis: excess snap on not dragged axis //some coord e-17

7 years agoRadiant:
Garux [Wed, 2 Aug 2017 06:13:52 +0000 (09:13 +0300)]
Radiant:

binds...
* QE tool: alt + m1 drag in primitives mode:
click on vertex location = quick vertices drag (unlimited selection depth)
click outside = brush faces shear
misc...
* load (aka 'search') tags on m1 dbl click
* fix Doom3 crash in FilterAreaportals filterbar button

7 years agoRadiant:
Garux [Wed, 2 Aug 2017 06:13:12 +0000 (09:13 +0300)]
Radiant:
binds...
* m1 + ctrl drag: snap bbox during manipulators manipulations:
drag axis, freedrag: snap bbox edges to grid on dragged axes; allows more varied snappings, then SnapToGrid command
scale axis, scale free: snap bbox size on scaled axes to grid

misc...
* QE tool in a component mode: perform drag w/o hitting any handle too

7 years agoRadiant:
Garux [Wed, 2 Aug 2017 06:12:17 +0000 (09:12 +0300)]
Radiant:

misc...
* fix: texBro & tags treeviews scroll focus follows folder selection; (text search shortcut is ctrl+f on windows)
* fix: detached tags menu appearence
* new icon

7 years agoRadiant:
Garux [Wed, 2 Aug 2017 06:10:43 +0000 (09:10 +0300)]
Radiant:

binds...
* m1 + shift drag: snapped modes of manipulators:
freedrag: constrain to axis with biggest move amount
rotate axis: snap to angles, multiple of 15'
scale axis: scale all axes synchronously
scale free: scale axes with non zero drag synchronously (i.e. two visible ones in projection views)
misc...
* fix: CameraFreeMoveUp, CameraFreeMoveDown shortcuts are editable
* prism, cone prefabs: increased precision
* fix: out of pivot rotating is active from start, no additional magic is needed for that
* fix: could lock (but not set) transform origin in non-pivoted mode
* arbitrary rotation dialog allows decimals
* fix: grid rendering with ToggleGridSnap off
* fix of: scale tool scale, locked to 1 for things w/o bbox with bigger grid (e.g. single misc_model)
(snapped drag start was = 0, scale func depends on initial click point: closer to center = more extreme scaling)
* fix: make detail / structural are undoable
* default autosave period: 5 -> 15 minutes
* texBro option: hide nonShaders in common folder; def = yes; are shown, if are in use

7 years agoRadiant:
Garux [Wed, 2 Aug 2017 06:09:58 +0000 (09:09 +0300)]
Radiant:

binds...
* Tab: focus camera on selected

menus...
* Modify->Nudge:+ Nudge +Z, Nudge -Z

misc...
* improvement of: Scale tool: now scales bbox by gridsize increment
* snap transform origin for rotate 90' commands, if one is not custom (is good to stay on grid)
* 2d camera icon in ZY, ZX views represents yaw aswell
* M3 camera direction control: disabled snapping
* M3 camera direction control: affect yaw instead of doing pitch > 90' in ZY, ZX views
* fix of: ctrl+m3 in 2d, release ctrl, then m3: m3 drag works like with ctrl pressed
* removed 2 buttons mouse option: was only affecting m3 camera control binds
* fix of: press any modifier (ctrl/shift/alt) + any mouse, release modifier, then mouse = chase mouse broken
* removed 'Right Button Activates Context Menu' preference
* brushExport plugin, prtview plugin, bobToolz::Polygon Builder, about, textures reset, messagebox windows live on top of main window
* removed 'Update views on camera move' option: camera icon updating is enough quick
* fix: bobToolz::split patch rows+columns - works if rows = 3 ( clos and rows were mixed up in general )
* entitySetColour, entityNormalizeColour are undoable
* bobToolz::splitPatch commands place result into parent entity (worldspawn or group one)
* bobToolz::mergePatches places result into last selected patch's parent entity
* bobToolz::mergePatches: remove left empty group entities
* SelectAllOfType works for group entities, whose brush(es) are selected (no parent node selection needed).
Algorithm is: get [ent inspector's keyName field(if visible) or classname]'s keyValues of selected ents ('no key' counts, as property, too);
Then select ents with according keyName+keyValues; Worldspawn is omitted;
Otherwise (nothing or worldspawn selected) select primitives, holding selected texture;
in 'Faces' component mode = select specifically faces, holding selected texture;
* SelectAllOfType selects child primitives of group entities
* ExpandSelectionToEntities works for worldspawn entity too

7 years agoRadiant:
Garux [Wed, 2 Aug 2017 06:09:20 +0000 (09:09 +0300)]
Radiant:

misc...
* shader editor lives on top of main window
* csg tool: 'active projection' exclusion method instead of axis selection
* csg tool: new 'selected faces' & 'cam direction' exclusion methods
* new active projection dependent commands MirrorSelectionHorizontally, MirrorSelectionVertically,
RotateSelectionClockwise, RotateSelectionAnticlockwise + toolbar buttons

7 years agoRadiant:
Garux [Wed, 2 Aug 2017 06:08:43 +0000 (09:08 +0300)]
Radiant:

binds...
* ctrl+tab (nextview cmd) = center on selected in 4 views layout

misc...
* quick method of rendering camera icon (w/o rerendering the scene) = great speedup for camera moves
* fix: center on selected cmd works in floating views layout
* projections are switchable in floating views layout
* defaulted 'mark active view by outline'

7 years agomenus...
Garux [Wed, 2 Aug 2017 06:07:44 +0000 (09:07 +0300)]
menus...
* view->show: toggle crosshair, size, grid are check menu items
* view->show: +Show Light Radiuses toggle
* view->show->show stats makes effect immediately
* view->show fix: check menu items are sensitive to changing options via shortcuts

misc...
* option to disable main toolbar
* removed bobtoolz caulk selection button; filterbar one does the job better
* filterbar: + region set selected button; rightclick = region off
* filterbar: + hide selected button; rightclick = show hidden
* SelectionSystem option: prefer point entities in 2D views (def = yes)
* filterbar: indicate region, hide states by buttons states
* fix: region compiles (run build with region enabled = compile regioned part only)
* solid selection boxes by default (m_bNoStipple)
* always use stipple for stuff behind stuff in 3d (was dependent on m_bNoStipple)
* del unused ChooseSmallGridMajorColor ChooseSmallGridMinorColor preferences pipeline
* fix: Active View Name and Outline... Clipper... colors saving
* fix: ChooseCameraSelectedBrushColor changes the color (requires restart)
* fix: ChooseSelectedBrushColor preference saving (requires restart)
* fix rubberband selector appearence in 2D with 'show window outline' option enabled
* multiple projections layouts: activate a projection on zoom
* multiple projections layouts: added wnds updates to correctly indicate active projection (via wnd outline and projection name)
* draw projection name is independent from show coordinates option
* multiple projections layouts: greyscale axes in inactive views
* 'show coordinates' is disabled by default
* quick (hacky) method to render things, indicating viewport being active or not (axes, view name, wnd outline)

7 years agoRadiant:
Garux [Wed, 2 Aug 2017 06:06:50 +0000 (09:06 +0300)]
Radiant:

binds...
* F12: maximize main wnd view under cursor
* ctrl + t: patch thicken
menus...
* simplified curve menu
misc...
* square option in exact patch creators (= redisperse rows + cols)
* axis option in patch deform dialog
* spinner instead of entry in: patch deform, thicken; brush prism, cone, sphere, rock dialogs
* maximized brush cone prefab sides limit

7 years agoQ3map2:
Garux [Wed, 2 Aug 2017 06:06:17 +0000 (09:06 +0300)]
Q3map2:
* code fixes
* packer: !FAIL! msg for missing ingame resources, ~fail for the rest
* bumped stack size to 4Mb to fix crash for huge skies, using old shaders with fairly useless q3map_surfacelight + q3map_lightsubdivide < 999 combo

Radiant:

binds...
* F5: run first in the list or recently invoked build option
* F11: fullscreen

misc...
* opening *.map, sent via cmd line: enabled for non win32 too
* fix: textures find/replace wnd better default pos, size
* fix: crash in CSG::Subtract
* fix crash: main wnd maximized + 'start on primary monitor' off + monitors > 1
* correct save/restore of main wnd pos/size and maximized/fullscreened states
* scale widgets consistently along with main wnd, while using regular layout

7 years agoQ3map2:
Garux [Wed, 2 Aug 2017 06:05:30 +0000 (09:05 +0300)]
Q3map2:
* report full / full pk3 path on file syntax errors

7 years agoQ3map2:
Garux [Wed, 2 Aug 2017 06:04:48 +0000 (09:04 +0300)]
Q3map2:
fix compilation on linux
* packer: pack actual loaded bsp instead of one, found in vfs

Radiant:

binds...
* Q - toggle QE/Scale tools (MouseDragOrScale command)
* new MouseRotateOrScale command
* shift + m3: set custom transform/pivot origin in pivoted mode
switch manipulator mode = disable
is snapped to (if SnapToGrid is on):
grid
selection bbox edges
selection bbox origin

misc...
* Scale tool: now scales bbox by gridsize increment
* m1 selector fix: shift/ctrl + m1 drag, release shift/ctrl, release m1 = replace brush selection
* m1 selector fix: do not select when dragged off pivot in pivoted mode
* don't restore cursor pos after quit mlook (do center)
* toggle and paint selectors do select matching stuff (depth threshold ~= 0.1 u)

7 years agoQ3map2:
Garux [Wed, 2 Aug 2017 06:04:00 +0000 (09:04 +0300)]
Q3map2:
* do not delete q3map2_*.shader on minimap generation

Radiant:

misc...
* fix: crash in CSG::BrushDeleteSelected
* fix: crash in Brush::windingForClipPlane
* disabled snapping of transform/pivot origin

7 years agoRadiant:
Garux [Wed, 2 Aug 2017 06:03:25 +0000 (09:03 +0300)]
Radiant:

binds...
swap paint and rect selectors:
* M1 click: tunnel selector
* shift + m1 drag: paint objects selection
* ctrl + m1: select brush face
* ctrl + m1 drag: paint faces selection
* shift + m2: tunnel selector
* shift + m2 drag: rectangular toggle selector
* ctrl + m2: tunnel face selector
* ctrl + m2 drag: rectangular selector of brush faces
* alt + m2 drag: 2d zoom in/out
* ctrl + m1: quick clipper mode (quits one after split done)

7 years agoRadiant:
Garux [Wed, 2 Aug 2017 06:02:58 +0000 (09:02 +0300)]
Radiant:

binds...
* M1 click: tunnel selector
* shift + m2 drag: paint objects selection
* ctrl + m1: select brush face
* ctrl + m2 drag: paint faces selection
* shift + m2: tunnel selector
* shift + m1 drag: rectangular toggle selector
* ctrl + m2: tunnel face selector
* ctrl + m1 drag: rectangular selector of brush faces
* alt + m2 drag: 2d zoom in/out
* ctrl + m2: quick clipper mode (quits one after split done)

7 years agoctrl+m2=clipper
Garux [Wed, 2 Aug 2017 06:02:12 +0000 (09:02 +0300)]
ctrl+m2=clipper

7 years agoctrl=face selector m2=cycle
Garux [Wed, 2 Aug 2017 06:01:50 +0000 (09:01 +0300)]
ctrl=face selector m2=cycle

7 years agom1 selector more
Garux [Wed, 2 Aug 2017 06:01:31 +0000 (09:01 +0300)]
m1 selector more

7 years agom1 selector
Garux [Wed, 2 Aug 2017 06:00:52 +0000 (09:00 +0300)]
m1 selector

7 years agoQ3map2:
Garux [Wed, 2 Aug 2017 06:00:11 +0000 (09:00 +0300)]
Q3map2:
* fix crash with nonpthreads xmllib + multithreading + output to system console
* number of code fixes
Radiant:

misc...
* fix: clone group ent / map import / saving map as : group ents name labels at 0,0,0;
* number of code fixes

7 years agoRadiant:
Garux [Wed, 2 Aug 2017 05:43:59 +0000 (08:43 +0300)]
Radiant:

misc...
* fix: deselecting particular primitives, invert selection work for expanded group entity selection (these are deselecting parent node)
* do not render entities selection in components mode; fixes 'invisible components for expanded group entity selection'

7 years agorefresh VFS on model refresh, refresh models on VFS refresh 72/head
Thomas Debesse [Tue, 1 Aug 2017 19:13:15 +0000 (21:13 +0200)]
refresh VFS on model refresh, refresh models on VFS refresh

Before:

- refreshing textures were refreshing VFS (to load enabled texture packs)
  but models were not refreshed
- refreshing textures were refreshing models but textures would be missing
  since the VFS was not refreshed and texture packs would be not loaded

After:

- refreshing textures or models both refresh VFS, textures and models,
  this way you don't anymore reload models without refreshing textures, or
  refresh VFS without reloading models, etc.

7 years agodpk vfs: now loads DEPS file from game pack 71/head
Thomas Debesse [Tue, 1 Aug 2017 19:04:58 +0000 (21:04 +0200)]
dpk vfs: now loads DEPS file from game pack

- this way, there is no need to hardcode the loading of
  tex-common or res-buildables to get common textures
  and games buildables models, the game developers just
  have to provide a DEPS file with their game pack, and
  there is no need to enforce the name for this kind of
  stuff

7 years agodeduplicate empty string affectation
Thomas Debesse [Tue, 18 Jul 2017 09:26:44 +0000 (11:26 +0200)]
deduplicate empty string affectation

These the first line is useless, since being overwritten:

g_pStrWork = "";
g_pStrWork = new char[1];
g_pStrWork[0] = '\0';

Also, that first line uselessly raises this warning:

ISO C++ forbids converting a string constant to ‘char*’

7 years agop3dlib.c: include “cmdlib.h” on non Windows platform
Thomas Debesse [Tue, 18 Jul 2017 09:18:03 +0000 (11:18 +0200)]
p3dlib.c: include “cmdlib.h” on non Windows platform

- implicit conditional declaration of function ‘Q_filelength’ and ‘Q_stricmp’
  They come from “cmdlib.h”, so we must conditionally include it too.

7 years agouse %ld instead of %d for “long int” arguments
Thomas Debesse [Tue, 18 Jul 2017 09:12:51 +0000 (11:12 +0200)]
use %ld instead of %d for “long int” arguments

- format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’
  use ‘%ld’ instead

7 years agouse NULL as sentinel instead of 0
Thomas Debesse [Tue, 18 Jul 2017 08:31:20 +0000 (10:31 +0200)]
use NULL as sentinel instead of 0

- missing sentinel in function call
  Some functions like g_object_set() expect a variable list
  of arguments terminated with NULL sentinel, legacy code
  was using 0 instead.

7 years agosome “char*” to “const char*” declaration
Thomas Debesse [Tue, 18 Jul 2017 08:12:04 +0000 (10:12 +0200)]
some “char*” to “const char*” declaration

- ISO C++ forbids converting a string constant to ‘char*’
 These are obvious fixes when it's better to declare functions
 as expecting “const char*“.

7 years agoone argument, one argument 70/head
Thomas Debesse [Sun, 30 Jul 2017 16:36:49 +0000 (18:36 +0200)]
one argument, one argument

7 years agoIngar was right (slashslash no more)
Thomas Debesse [Sun, 30 Jul 2017 16:35:31 +0000 (18:35 +0200)]
Ingar was right (slashslash no more)

7 years agoRadiant:
Garux [Tue, 1 Aug 2017 11:28:28 +0000 (14:28 +0300)]
Radiant:

misc...
* texbro: disable alpha transparency by def; isn't good in half of cases
* find/replace: tooltip helper note about search mode
* Entity: arrowheads, showing direction of connection-lines in addition to color-code; New algorithm: are visible in all orthogonal projections
* tweak: do not render 'misc_model' & 'light' entity names
* filters: patches: +filter ones with surfaceparm playerclip
* translucent filter also works for shaders with qer_alphafunc
* filter areaportal, if single face matches (allows case with other faces, using 'skip')
* filter translucent, if single face matches
* filter liquids by surfaceparm {water, lava, slime} in addition to textures/liquids path

7 years agoRadiant:
Garux [Tue, 1 Aug 2017 11:27:03 +0000 (14:27 +0300)]
Radiant:

misc...
* fix: select inside and touching: ignored ANY filters and hiding, and region
* fix: M3 tex paint/grab ignored _hidden_ models
* fix: M3 tex paint/grab ignored group ent (world, triggers, et cetera), model filters
* fix: shift+a by tex: ignored group ent (world, triggers, et cetera) filters
* fix: tex find/replace: ignored any filters, regioning & hiding
* fix: shift+a by classname: ignored filters, hiding, region
* fix: floor walker ignored group ent filters
* fix: csg subtract ignored group ent filters
* fix: invert selection: ignored group ent filters
* fix: tex find/replace: 'select by shader' mode for patches (was replacing with notex instead)
* fix: select inside and touching: were selecting group ents, as single unit (=sensitive to parent node and its bbox)
* fix: csg merge two group ents = empty group ent
* fix: csg subtract group ent completely = empty group ent
* fix: hollow group ent: could produce empty group ent
* func_groups are filtered by world filter only, not entities one
* new func_group filter, filterBar button; Rightclick = create func_group

7 years agoRadiant:
Garux [Tue, 1 Aug 2017 11:26:18 +0000 (14:26 +0300)]
Radiant:

misc...
* CSG Tool
* fix: texbro: blured stipple with green and red borders

7 years agoRadiant:
Garux [Tue, 1 Aug 2017 11:25:41 +0000 (14:25 +0300)]
Radiant:
misc...
* made shaderplug msg to look not like error (but barely noticeable)
* removed Texdef_FitTexture copypasted code
* ctrl+shift+mouse strafe mode: moving mouse forward moves camera forward, back - back
* add map to recent ones on SaveMap (instead of doing that in 'open by cmd line': spoils the list)
* fix: spin buttons alignment in patch inspector
* fix: patch inspector window pos save/restore during run time
* removed console, texbro buttons in regular layout
* ent inspector: saving window splits pos in non regular layouts
* ent inspector: saving lower split pos aswell
* ent inspector: fix of: minimizing part behind middle to 0
* saving find/replace wnd pos; bringing ontop, if is (present + called)
* moved 'find unique name for' output to _DEBUG
* fix of 'GLib-CRITICAL **: Source ID was not found when attempting to remove it' in buid monitor timer
* fix: build menu customizing: command field is reachable right after creating new entry

7 years agoRadiant:
Garux [Tue, 1 Aug 2017 11:25:00 +0000 (14:25 +0300)]
Radiant:

misc...
* fix: texbro m2 drag in 2x2 layout
* fix: crash in (texbro + freezePointer)
* fix: all sorts of problems with freezePointer drags near widget borders

7 years agoRadiant:
Garux [Tue, 1 Aug 2017 11:23:38 +0000 (14:23 +0300)]
Radiant:

menus...
* help+: Blendmodes cheatsheet
misc...
* fix treemodel Clang compilation
* fix: 1x1 textures crash and appearence
* fix of: create func static in non doom3 gametype = group entity w/o objects
* merged tex bro textures borders; stipple indicates shaders
* realigned tex bro text, so one doesn't collide with textures borders
* fix of texture focusing in tex bro
* grayscale RLE TGA support
* unsupported Doom 3 entity keys: popup->log warning
* patch inspector: +flip texture buttons
* disabled texture lock by default (confuses novices, suddenly)
* added MeshTex plugin src to project, compiled, fixed (works now-)

7 years ago* added MeshTex plugin src to project (can't compile)
Garux [Tue, 1 Aug 2017 11:09:50 +0000 (14:09 +0300)]
* added MeshTex plugin src to project (can't compile)

7 years agoRadiant:
Garux [Tue, 1 Aug 2017 11:07:22 +0000 (14:07 +0300)]
Radiant:

binds...
* tex bro: left double click loads directory, containing active shader + focuses on it
right double click loads 'common' directory
misc...
* shader editor gets focus after been hidden behind main window and called again
* patch thicken: significantly more fail safe; correct handling of cycled patches
* fix: was parsing vfs twice; pk3s were being opened twice during runtime
* fix: shortcuts work after startup (plugins bar buttons were stealing focus)

7 years agoRadiant:
Garux [Tue, 1 Aug 2017 11:06:41 +0000 (14:06 +0300)]
Radiant:

misc...
* local gtk2 themes support; cfgs are .gtkrc-2.0.radiant, .gtkrc-2.0.win; +~100 themes included;
MS-Windows theme is one, inheriting current appearence on Windows
* GTK2 theme & font selector (Misc->Colors->Gtk theme...) (need restart after pair of naughty engines tho)
* openGL implementaion of rubberband selector (w/o rerendering whole scene) (fixes visual issues with Aero)

7 years agoRadiant:
Garux [Tue, 1 Aug 2017 11:06:00 +0000 (14:06 +0300)]
Radiant:

misc...
* fix of 2.24 related: minimize floating window = whole app minimizes + can't restore
* fix of 2.24 related: glwidgets inside floating windows were not shown after hide/show of parent widgets
* tex bro: menubar = toolbar

7 years agomore antialiased png icons
Garux [Tue, 1 Aug 2017 11:05:06 +0000 (14:05 +0300)]
more antialiased png icons

7 years agoRadiant:
Garux [Tue, 1 Aug 2017 11:03:16 +0000 (14:03 +0300)]
Radiant:
misc...
* filter toobar buttons also handle right mouse clicks:
caulk: apply caulk tex
clip: toggle apply clip/weapclip tex
hint: toggle apply hint/hintlocal/hintskip tex
triggers: apply trigger tex
liquids: toggle apply watercaulk/lavacaulk/slimecaulk tex
areaportals: toggle apply nodraw/nodrawnonsolid tex
shader names are configurable through respective shader_* keys in .game file
details: make detail
structural: make structural
* png icons with real alpha; partially antialiased

7 years agoRadiant:
Garux [Tue, 1 Aug 2017 11:00:58 +0000 (14:00 +0300)]
Radiant:

binds...
* texbro: left double click loads directory, containing active shader
* texbro: left triple click loads 'common' directory
misc...
* updating texture browser height after thumbnail scale, min/max size, show shaders options changed
* tex bro: show textures option (to leave only shaders)
* tex bro: Show all (ctrl + a) toggles 'Hide unused' (typically: ctrl+a: get all used, once more ctrl+a: get all loaded)
* tex bro: 'flush and reload shaders' autoloads last selected dir
* tex bro: show alpha transparency option; def = yes
* tex bro: white+black stipple around shader thumbnails + is visible, while being selected
* filter toobar is not part of plugin one

7 years agoRadiant:
Garux [Tue, 1 Aug 2017 11:00:12 +0000 (14:00 +0300)]
Radiant:

binds...
* douplicated basic shortcuts: arrows - camera freemove, ESC - deSelect, backSpace - delete

menus...
* modify+: snap to grid (ctrl+g)

misc...
* fixed warning on import (q3map2_type not found)
* patch thicken
* removed douplicate accelerators registering
* trigger_* entities get textures/common/trigger tex on creation
( unless different is set in .game file via shader_trigger key )
* opening *.map, sent via cmd line (can assign *.map files in system to be opened with radiant)
* -aero cmd line key to enable aero transparency
* opening maps with bad tex defs (.#QNAN, .#IND, .#INF)
(happens sometimes after rotating & often scaling with tex lock (in BP mode)); error->warning

7 years agoQ3map2:
Garux [Tue, 1 Aug 2017 10:59:31 +0000 (13:59 +0300)]
Q3map2:
* decompiling: fix: broken brushes, empty brush definitions; shut down too usual warnings; with -force tries to decompile model autoclip too
* decompiling: -fast mode for BSPToMap conversion

Radiant:
misc...
* _setmaxstdio(2048): tested max pk3s count: 1021
* curve: deform (randomize Z points coord at given amount)

7 years agoQ3map2:
Garux [Tue, 1 Aug 2017 10:58:52 +0000 (13:58 +0300)]
Q3map2:
* fix: number of problems, found by Visual Studio's static code analyser
(https://github.com/TTimo/GtkRadiant/commit/76ea7385dd94aac435a858b05f87820e1cfadfd6)

Radiant:

misc...
* fix of: convert group entity to diff one = entity w/o objects
* asking for game path at 1st start, even if one, specified in .game exists (auto picking could make confused)
* disabled game autodetecting: (~2min awaiting on w7 in non admin mode was confusing)

7 years agoQ3map2:
Garux [Tue, 1 Aug 2017 10:57:26 +0000 (13:57 +0300)]
Q3map2:
* -brightness 0..alot, def 1: mimics q3map_lightmapBrightness, but globally + affects vertexlight
* -contrast -255..255, def 0: lighting contrast
* packer improvements

Radiant:

binds...
* entity inspector: Tab enters Key field, toggles between key/value fields; Del deletes keys; Esc quits

misc...
* improved mwheel 2d zoom by Neumond
* +makeRoom: like hollow, but extrudes faces outwards; for making rooms
* deactivating tex dirs tree after loading dir, so SPACE and ENTER aren't broken for 2D after that
* Regular, RegularLeft layouts: smaller console, bigger tex browser
* Rotate, Scale dialogs: values aren't erased on Enter, OK, Apply (are on cancel, esc)
* Rotate dialog: fix: new value in focused field wasn't taking in account on Enter
* +updating texture directories list on 'flush and reload shaders' (reloading shaderlist aswell)
* NumLock perspective window fix
* ctrl+k(ConnectEntities): friendlier to complex connections, takes in account existing keys
(priority: target > targetname > none)
* +'all Supported formats' default option in open dialogs
* defaulted show light radii
* camera fov: 90->110
* cubic clip: off by default; bigger def dist; fixed button's shortcut tip
* prefs: Min & Max texture thumbnail size + dependant on scale;
def = *scale .5, min 48, max 160 (makes range 96-320 visually differentiated)

7 years agoQ3map2:
Garux [Tue, 1 Aug 2017 10:56:25 +0000 (13:56 +0300)]
Q3map2:
* packer: +warnings on implicitMaps, mapNoComps
* packer: known problem: minizip crash, when trying to get file with 2039 year date from disk
* -repack: repacks multiple maps, strips out only required shaders; main argument is single bsp path or txt with full pathes to bsps
switches: -dbg: talkative mode; -png: include pngs, at highest priority; -complevel: -1..10, def 0, compression level
uses additional exclusions file repack.exclude with different logic

7 years agoQ3map2:
Garux [Tue, 1 Aug 2017 10:54:01 +0000 (13:54 +0300)]
Q3map2:
* packer: rewrote logic to make sure not to include excluded stuff
* packer: preserves file date, if grabbing file from .pk3 too
* packer: in case of missing *ingame* resources pk3 gets _FAILEDpack suffix

7 years agoQ3map2:
Garux [Tue, 1 Aug 2017 10:53:05 +0000 (13:53 +0300)]
Q3map2:
* -pk3 autopackager: alternative way to write

7 years agoQ3map2:
Garux [Tue, 1 Aug 2017 10:51:52 +0000 (13:51 +0300)]
Q3map2:
* -pk3: autopackager mode(complete Q3 support); bsp path as input; switches: -dbg - talkative mode, -png - include pngs, at highest priority
is using file 'gamename.exclude' to exclude vanilla game resources
tip: ioq3, netradiant, compiler (and packager) treat *.pk3dir directories as separate pk3 files

7 years agoMerge branch 'TimePath/gtk++' into 'master'
TimePath [Tue, 1 Aug 2017 10:51:11 +0000 (10:51 +0000)]
Merge branch 'TimePath/gtk++' into 'master'

GTK Upgrade

See merge request !59

7 years agoQ3map2:
Garux [Tue, 1 Aug 2017 10:50:06 +0000 (13:50 +0300)]
Q3map2:
* shot down spammy warning about samplesize for lmsize<=128; -debugsamplesize to show
* numBspModels ('brusmodels') stat emitting

Radiant:

misc...
* filters toolbar (disableable)
* fix: shift + m1 click in tex browser to open shader in internal/external editor;
defaulted internal; focuses on wanted shader; correct opening/saving
* fix: angles "0 x 0" autoconvert to angle "x" on transform (was getting deleted w/o a trace)

7 years agoQ3map2:
Garux [Tue, 1 Aug 2017 10:36:40 +0000 (13:36 +0300)]
Q3map2:
* content of brush is determined now not by 1st side in brush definition (inconsistency!)
but on priority: liquid > fog > playerclip > nonsolid > solid
ex.: nodraw solid shader works now for hiding liquid or fog volume splits / unwanted faces
solid or nonsolid shader + face(s) of playerclip = playerclip
solid shader + face(s) of nonsolid = nonsolid (b4 could happen: 5nonsolid sides + 1solid = solid brush )

Radiant:

binds...
* make structural - alt+s
* shift+n - cycle patch tex projection
* ctrl+f - fit texture
* bind a, d in no mlook mode - CameraStrafeLeft/Right

menus...
* smartified content basically
* hidden killconnect for games, which are not nexuiz
* view-orthographic+: center 2d on selected (ctrl+shift+tab)
* removed parent from menu, regroup does work + isn't bugged
* edit+: SelectAllOfType (shift+a)
* view->show+: ToggleCrosshair, show size info, show grid
* view menu: +patch inspector
* curve->texture+: flip patch tex ( {ctrl}shift+i ), naturalize, cycle projection
* cleaned, updated help menu links,+: Mouse Shortcuts, recent offline&fixed Shader Manual,
netRadiant specific docs, lists of q3map2 switches/entity keys/shader directives
misc...
* removed note to save before going to preferences, project settings
* fog is automatically transparent
* Doom3LightRadius: failed to parse default light radius - spammy msg removed
* 1.5x bigger light ents (8->12u)
* longer list of recently opened (4->9)
* crosshair display: is saving in prefs
* defaulted Maya theme
* removed question to override current compile monitoring

7 years agoQ3map2:
Garux [Tue, 1 Aug 2017 10:35:36 +0000 (13:35 +0300)]
Q3map2:
* brush planes normals snap: +fix of vector-is-close-to-be-ON-axis case, was breaking slivers collisions, drawsurfs
* alphamod scale: works now
clean shiftBspMain

7 years agoQ3map2:
Garux [Tue, 1 Aug 2017 10:34:48 +0000 (13:34 +0300)]
Q3map2:
* -clipdepth F, def 2, _clipdepth
* fixed model autoclip (64u thick brushes/no collision at all in some cases)
* pyramidal etc zillion (20!) of autoclip modes
* removed stuctural caulk in models, was broken anyway

Radiant:

misc...
* hollow: produces not intersecting brushes

7 years agoQ3map2:
Garux [Tue, 1 Aug 2017 10:33:37 +0000 (13:33 +0300)]
Q3map2:
* -bounceColorRatio 0..1 (ratio of colorizing sample by texture)
* -debugclip: autoclip debug, uses shaders debugclip, debugclip2
* >2GB makefile option, allows up to 3GB ram on 32bit, 4GB on 64bit
* speedup patch to use fast sqrt at some points of light phase, where precision is not needed

Radiant:

binds...
* paste to camera - shift+v (alt+v was leading to texBro-View menu)

7 years agoQ3map2:
Garux [Tue, 1 Aug 2017 10:32:31 +0000 (13:32 +0300)]
Q3map2:
fix * q3map_remapshader remaps anything fine, on all stages (effect is: postrenaming shader when things are have been done)
* typo at -dirtmode

Radiant:

misc...
* translucent textures are visible, while selected, too; +matching trans polys are visible simultaneously

7 years agoQ3map2:
Garux [Tue, 1 Aug 2017 10:26:50 +0000 (13:26 +0300)]
Q3map2:
* native surfaceparm noob support (no -custinfoparms needed)
* -noob in bsp phase: assign surfaceparm noob to all map surfaces
* surfaceparm ob: skip assigning surfaceparm noob with -noob on that
* farplane modes: radius+radius, origin2origin, exact (add r/o/e to the number to enable), < 0 works too
* samples+filter - enabled again, makes sense
* -vertexscale
* fixed -novertex, (0..1) sets
* quick q3map_novertexlight (?)
* fixed _clone _ins _instance (_clonename)
* -nolm - no lightmaps
* ent keys aliases:_sa - shadeangle;_ss - samplesize
* -shift N -shift X Y Z: shift whole map to some coords
* more fogs (256) (ingame appearence lots of ones might be bugged due to engine arrangement, needs testing)
* q3map_remapshader remaps anything fine, on all stages (effect is: postrenaming shader when things are have been done)
* fixed 'unknown argument 1' at -lightanglehl
* -nocmdline writting to worldspawn

Radiant:

binds...
* wasd camera binds, c - deSelect, z - delete
* ExpandSelectionToEntities - shift+e
* make detail - alt+d
* arbitrary rotation - shifr+r
* arbitrary scale - ctrl+shift+s
misc...
* fit width, fit height butts in surf inspector (for trims) (saves scales ratio)
add old TODO with ideas

7 years agoFix minizip regression
TimePath [Tue, 1 Aug 2017 10:25:13 +0000 (20:25 +1000)]
Fix minizip regression

Closes #107

Useless memcpy wasn't useless...

7 years agoFix legacy makefile 59/head
TimePath [Sun, 30 Jul 2017 11:33:33 +0000 (21:33 +1000)]
Fix legacy makefile

7 years agoRemove a few glib includes in headers
TimePath [Sun, 30 Jul 2017 05:26:07 +0000 (15:26 +1000)]
Remove a few glib includes in headers

7 years agoRemove a few gdk includes in headers
TimePath [Sun, 30 Jul 2017 05:20:04 +0000 (15:20 +1000)]
Remove a few gdk includes in headers

7 years agoRemove the final gtk headers in headers
TimePath [Sun, 30 Jul 2017 05:12:53 +0000 (15:12 +1000)]
Remove the final gtk headers in headers

7 years agoRebase onto master
TimePath [Sun, 30 Jul 2017 05:04:52 +0000 (15:04 +1000)]
Rebase onto master

7 years agos/nullptr/ui::null/ where appropriate
TimePath [Sat, 29 Jul 2017 12:13:23 +0000 (22:13 +1000)]
s/nullptr/ui::null/ where appropriate

7 years agoFix GCC7 issues
TimePath [Sun, 23 Jul 2017 12:10:15 +0000 (22:10 +1000)]
Fix GCC7 issues

7 years agoFix MSYS2 issues
TimePath [Sun, 23 Jul 2017 09:16:45 +0000 (19:16 +1000)]
Fix MSYS2 issues

7 years agoFix GTK3 crash
TimePath [Sun, 23 Jul 2017 08:13:37 +0000 (18:13 +1000)]
Fix GTK3 crash

7 years agoWrap GtkGLArea
TimePath [Sun, 23 Jul 2017 07:34:38 +0000 (17:34 +1000)]
Wrap GtkGLArea

7 years agoUse non-deprecated GDK key constants
TimePath [Sun, 23 Jul 2017 06:32:43 +0000 (16:32 +1000)]
Use non-deprecated GDK key constants

7 years agoWrap g_object_unref
TimePath [Sat, 22 Jul 2017 11:36:30 +0000 (21:36 +1000)]
Wrap g_object_unref

7 years agoWrap g_signal_connect
TimePath [Sat, 22 Jul 2017 11:00:58 +0000 (21:00 +1000)]
Wrap g_signal_connect

7 years agoFix release build
TimePath [Sat, 22 Jul 2017 09:28:04 +0000 (19:28 +1000)]
Fix release build

7 years agoRemove <gtk/gtk.h> from radiant/dialog.h
TimePath [Sat, 22 Jul 2017 07:36:49 +0000 (17:36 +1000)]
Remove <gtk/gtk.h> from radiant/dialog.h

7 years agoRemove <gtk/gtk.h> from radiant/textureentry.h
TimePath [Sat, 22 Jul 2017 07:28:44 +0000 (17:28 +1000)]
Remove <gtk/gtk.h> from radiant/textureentry.h

7 years agoRemove <gtk/gtk.h> from gtkutil/xorrectangle.h
TimePath [Sat, 22 Jul 2017 07:15:15 +0000 (17:15 +1000)]
Remove <gtk/gtk.h> from gtkutil/xorrectangle.h

7 years agoRemove <gtk/gtk.h> from gtkutil/window.h
TimePath [Sat, 22 Jul 2017 07:11:44 +0000 (17:11 +1000)]
Remove <gtk/gtk.h> from gtkutil/window.h

7 years agoRemove <gtk/gtk.h> from gtkutil/widget.h
TimePath [Sat, 22 Jul 2017 07:00:15 +0000 (17:00 +1000)]
Remove <gtk/gtk.h> from gtkutil/widget.h