Changesets: DarkRadiant

master 55fa827b

05.02.2021 09:26

greebo


Details Diff
0002132: Add tool item to camera toolbar Affected Issues
0002132
mod - install/ui/camwnd.fbp Diff File
mod - install/ui/camwnd.xrc Diff File
mod - radiant/camera/CamWnd.cpp Diff File
mod - radiant/camera/CameraWndManager.cpp Diff File

master 26a2adb7

05.02.2021 09:15

greebo


Details Diff
0002132: Add preference settings for enabling the camera grid and adjusting its spacing Affected Issues
0002132
mod - install/user.xml Diff File
mod - radiant/camera/CamWnd.cpp Diff File
mod - radiant/camera/CameraSettings.cpp Diff File
mod - radiant/camera/CameraSettings.h Diff File

master 7a0ac7a1

05.02.2021 08:58

greebo


Details Diff
0002132: Draw a camera-centered grid snapped to multiples of 32 Affected Issues
0002132
mod - radiant/camera/CamWnd.cpp Diff File
mod - radiant/camera/CamWnd.h Diff File

master 53d3d9c3

05.02.2021 07:45

greebo


Details Diff
0005460: Add unit test covering the behaviour - the workzone needs to be recalculated everytime the user has finished a selection through the SelectionSystem API.
The lower level Node_setSelected() itself is not enough.
Affected Issues
0005460
mod - test/Selection.cpp Diff File
mod - test/algorithm/Primitives.h Diff File

master 0cbee8e6

05.02.2021 04:46

greebo


Details Diff
0005460: Recalculate the selection workzone after a selection test has been performed. This is not quite the same as doing it in the idle processing loop (like in pre-2.10.0 versions), but let's hope it does the trick. Affected Issues
0005460
mod - radiantcore/selection/RadiantSelectionSystem.cpp Diff File
mod - radiantcore/selection/RadiantSelectionSystem.h Diff File

master bb8ce4db

05.02.2021 04:33

greebo


Details Diff
0004846: Construct a unit test asserting that the pivot is properly reset on canceling the operation Affected Issues
0004846
mod - test/Selection.cpp Diff File

master 89e5a1c5

05.02.2021 04:03

greebo


Details Diff
0004846: Fix the manipulation pivot being stuck in a position when the user cancels the move, preventing it from recalculating its position on selection change or even changing the manipulator. Affected Issues
0004846
mod - radiantcore/selection/ManipulationPivot.cpp Diff File
mod - radiantcore/selection/ManipulationPivot.h Diff File
mod - radiantcore/selection/RadiantSelectionSystem.cpp Diff File

master 4c6e85e2

05.02.2021 03:48

greebo


Details Diff
0005465: Backfacing brush faces are no longer being culled in orthoviews Affected Issues
0005465
mod - radiantcore/brush/BrushNode.cpp Diff File

master 3bd99f9f

04.02.2021 20:08

orbweaver


Details Diff
Initial list of attached entities in EntityNode

EntityNode maintains a list of entity node pointers representing the attached
entities, which are submitted at render time. The basic rendering is working
and covered by a unit test, but the attached entity appears at the origin since
there is not yet any handling of the localToWorld matrix.
mod - radiantcore/entity/EntityNode.cpp Diff File
mod - radiantcore/entity/EntityNode.h Diff File
mod - radiantcore/rendersystem/backend/OpenGLShaderPass.cpp Diff File
mod - test/Entity.cpp Diff File
mod - test/resources/tdm/def/lights.def Diff File

master 3f2c43cf

03.02.2021 21:10

orbweaver


Details Diff
Add initial test for rendering attached light entity

Confirm that we can create an EclassModelNode from the torch_brazier model,
traverse its children (which consists of 1 StaticModelNode) and receive
renderables for the model surfaces. This does not test for the presence of any
attached entities, since this functionality isn't implemented yet.
mod - test/Entity.cpp Diff File
add - test/resources/tdm/def/base.def Diff File
mod - test/resources/tdm/def/lights_static.def Diff File
add - test/resources/tdm/models/torch.lwo Diff File

master 1e546235

03.02.2021 17:15

greebo


Details Diff
0005266: Pass the two-sided flag only if the material is actually two-sided (exception: brush faces should always be treated like they're twosided due to 0005444).
Adjusted the cull type determination code in SelectionVolume::BeginMesh.
Affected Issues
0005266, 0005444
mod - libs/selection/SelectionVolume.h Diff File
mod - radiantcore/brush/BrushNode.cpp Diff File
mod - radiantcore/model/picomodel/StaticModel.cpp Diff File
mod - radiantcore/model/picomodel/StaticModelSurface.cpp Diff File
mod - radiantcore/model/picomodel/StaticModelSurface.h Diff File
mod - radiantcore/patch/PatchNode.cpp Diff File

master b4b79b00

02.02.2021 20:48

orbweaver


Details Diff
Test that entity updates when its entity class is modified

Confirm that a light entity captures a new wireframe shader in response to a
colour change on its entity class. Currently we can't confirm that it's the
*right* shader because the Shader interface doesn't expose that much (the
result of getMaterial() will be null because this is a built-in single-colour
shader rather than one derived from a material).
mod - test/Entity.cpp Diff File

master 859ed645

02.02.2021 20:05

orbweaver


Details Diff
Remove Light::worldOrigin()

For some reason this was a public virtual exposed on the RendererLight
interface despite not being used anywhere outside Light itself. Perhaps other
calls to this method were removed during recent renderer refactoring.
mod - include/irender.h Diff File
mod - radiantcore/entity/light/Light.cpp Diff File
mod - radiantcore/entity/light/Light.h Diff File
mod - test/Entity.cpp Diff File

master c9fba2dd

01.02.2021 21:11

orbweaver


Details Diff
Test more RendererLight properties

Construct a light_torchflame_small instead of just a basic light, and confirm
that the AABB extents and origin match the values from the entity def, along
with the light shader.
mod - include/irender.h Diff File
mod - test/Entity.cpp Diff File

master df60c5f8

31.01.2021 21:18

orbweaver


Details Diff
Test rendered light entity has correct world origin

TestRenderableCollector now stores a list of RendererLight pointers rather than
just counting the lights submitted, and this list is used to confirm that the
"origin" key set on the test light entity appears correctly as the result of
worldOrigin().
mod - include/irender.h Diff File
mod - test/Entity.cpp Diff File

master 65a2ef3e

31.01.2021 20:59

orbweaver


Details Diff
Add a test for light source rendering

This test checks that the RenderableCollector::addLight() method has been
invoked after rendering a light entity in full materials mode.
mod - radiantcore/entity/light/LightNode.cpp Diff File
mod - test/Entity.cpp Diff File

master b14de84b

31.01.2021 20:08

orbweaver


Details Diff
Split RenderLightEntity into separate tests for selected/unselected

Split tests for better organisation and to avoid one test operating on an
object which has already been modified by an earlier test.
mod - test/Entity.cpp Diff File

master f05ee065

31.01.2021 18:12

greebo


Details Diff
0005266: More test cases, covering patches, brushes and model surfaces with one- and two-sided materials. Affected Issues
0005266
mod - test/Selection.cpp Diff File
mod - test/resources/tdm/maps/selection_test.map Diff File
mod - test/resources/tdm/maps/twosided_ivy.mapx Diff File
mod - test/resources/tdm/materials/twosided.mtr Diff File
add - test/resources/tdm/skins/selection_test.skin Diff File

master bf77456d

31.01.2021 17:28

orbweaver


Details Diff
Fix possible crash in shutting down selection system

When the selection system shuts down it clears out any remaining selected
nodes, which causes the SelectableNode destructor to unselect the node, which
then tries to call back into the selection system using Node::getSelf() which
finally results in a shared_from_this() being called from within the node's own
destructor, which shared_ptr really doesn't like.

This is resolved by having the selection system instruct any remaining selected
nodes to unselect themselves before clearing out the list, thus ensuring that
the same sequence happens before the node's destructor is invoked.
mod - radiantcore/selection/RadiantSelectionSystem.cpp Diff File
mod - test/Entity.cpp Diff File

master c9cbda76

31.01.2021 14:47

orbweaver


Details Diff
Add two new tests for entity selection

Test that selecting an entity propagates the selected node to the selection
system (which passes), and test that we can destroy a selected entity (which
currently fails due to trying to call shared_from_this() in a destructor).
mod - test/Entity.cpp Diff File

master a4a3ace8

31.01.2021 14:25

orbweaver


Details Diff
Add a simple test for rendering a light entity

Render the light entity in wireframe mode and confirm we receive the expected
number of renderables (origin diamond, radius and light_center depending on
selection status).
mod - include/irenderable.h Diff File
mod - test/Entity.cpp Diff File

master 235b1a9e

31.01.2021 08:10

greebo


Details Diff
0005266: Rearrange the SelectionTest fixture to OrthoViewSelectionTest and CameraViewSelectionTest, add test cases Affected Issues
0005266
mod - test/Selection.cpp Diff File

master f66f124e

31.01.2021 05:11

greebo


Details Diff
0005266: Move some camera matrix code to libs/render/CameraView.h, to be re-used by the unit test code. Affected Issues
0005266
add - libs/render/CameraView.h Diff File
mod - radiantcore/camera/Camera.cpp Diff File
mod - tools/msvc/libs.vcxproj Diff File
mod - tools/msvc/libs.vcxproj.filters Diff File

master 6ed581fb

30.01.2021 21:29

orbweaver


Details Diff
AttachmentData now returns attachment offsets

SpawnArgs now calls validateAttachments() after the initial parse step, and the
forEachAttachment() method on AttachmentData now sets a valid offset vector on
the Entity::Attachment object, derived from looking up the named position in
the parsed key data.
mod - radiantcore/entity/AttachmentData.cpp Diff File
mod - radiantcore/entity/AttachmentData.h Diff File
mod - radiantcore/entity/SpawnArgs.cpp Diff File

master 5c98a884

30.01.2021 20:58

orbweaver


Details Diff
Add a new failing test for attachment offset

atdm:torch_brazier should have its flame at (0, 0, 10) based on the offset
value in the entityDef.
mod - test/Entity.cpp Diff File
 First  Prev  1 2 3 ... 30 ... 60 ... 90 ... 120 ... 150 ... 162 163 164 165 166 167 168 ... 180 ... 210 ... 240 ... 264 265 266  Next  Last