Skip to content

enable detachedRenderables for effect children so off screen EveChildTurrets still render the firing effect - #158

Open
Ikreb1 wants to merge 1 commit into
mainfrom
EF-21552-firing-effect-cull-fix
Open

Ikreb1 wants to merge 1 commit into
mainfrom
EF-21552-firing-effect-cull-fix

Conversation

@Ikreb1

@Ikreb1 Ikreb1 commented Nov 19, 2026

Copy link
Copy Markdown
Member

Summary

enable detachedRenderables for effect children so off screen EveChildTurrets still render the firing effect

Linked issue (optional)

(https://fenriscreations.atlassian.net/browse/EF-21552)

Testing

tested in client

AI assistance

AI diagnosed the issue

Copilot AI balanced review requested due to automatic review settings November 19, 2026 10:15
@Ikreb1
Ikreb1 force-pushed the EF-21552-firing-effect-cull-fix branch from 72a0d54 to 32f2fcc Compare November 19, 2026 10:16
github-actions[bot]

This comment was marked as outdated.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

Detached firing effects can be rendered twice when captured in impostor sprites, while nested turret effects still disappear because three child wrappers do not forward detached renderables.

2 open issues
What changed in this PR

This PR adds a detached-renderable path to Trinity’s space-object rendering so turret firing effects can remain visible when their owner is off-screen or rendered as an impostor.

Changes:

  • Add a default no-op GetDetachedRenderables() hook for space-object children.
  • Override the hook for turrets to submit firing effects independently.
  • Collect detached effect renderables when normal child rendering is skipped.
File Description
trinity/​Eve/​SpaceObject/​EveSpaceObject2.cpp Collects detached effects for culled or impostored owners.
trinity/​Eve/​SpaceObject/​Children/​EveSpaceObjectChild.h Declares and documents the detached-renderable hook.
trinity/​Eve/​SpaceObject/​Children/​EveSpaceObjectChild.cpp Provides the default no-op implementation.
trinity/​Eve/​SpaceObject/​Children/​EveChildTurret.h Declares the turret override.
trinity/​Eve/​SpaceObject/​Children/​EveChildTurret.cpp Submits turret firing effects through the new hook.

Review effort: Balanced

@github-actions
github-actions Bot dismissed their stale review November 19, 2026 13:01

outdated review

github-actions[bot]

This comment was marked as outdated.

@github-actions
github-actions Bot dismissed their stale review November 19, 2026 15:41

outdated review

github-actions[bot]

This comment was marked as outdated.

@Ikreb1
Ikreb1 force-pushed the EF-21552-firing-effect-cull-fix branch from 6de2718 to 4038975 Compare November 19, 2026 15:41
@github-actions
github-actions Bot dismissed their stale review November 19, 2026 15:47

outdated review

github-actions[bot]

This comment was marked as outdated.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

EveStretch3’s renderable and quad collectors omit the detached methods, causing visible turrets used directly or through wrappers to lose firing effects.

1 open issue
2 resolved since last review

Review effort: Balanced

Comment on lines +37 to +39
void GetDetachedRenderables( std::vector<ITr2Renderable*>& renderables ) override;
void RegisterWithQuadRenderer( Tr2QuadRenderer& quadRenderer ) override;
void AddDetachedQuadsToQuadRenderer( const TriFrustum& frustum, Tr2QuadRenderer& quadRenderer ) const override;
@Ikreb1
Ikreb1 force-pushed the EF-21552-firing-effect-cull-fix branch from 4cfb2b6 to 91769d3 Compare November 20, 2026 14:04
@github-actions
github-actions Bot dismissed their stale review November 20, 2026 14:04

outdated review

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cpp-linter Review

Used clang-format v21.1.8

Only 2 out of 6 clang-format concerns fit within this pull request's diff.

Click here for the full clang-format patch
diff --git a/trinity/Eve/SpaceObject/Children/EveChildTurret.h b/trinity/Eve/SpaceObject/Children/EveChildTurret.h
--- a/trinity/Eve/SpaceObject/Children/EveChildTurret.h
+++ b/trinity/Eve/SpaceObject/Children/EveChildTurret.h
@@ -28 +28 @@ public:
-	bool OnModified( Be::Var * value ) override;
+	bool OnModified( Be::Var* value ) override;
@@ -32,2 +32,2 @@ public:
-	void GetDebugOptions( Tr2DebugRendererOptions & options ) override;
-	void RenderDebugInfo( ITr2DebugRenderer2 & renderer ) override;
+	void GetDebugOptions( Tr2DebugRendererOptions& options ) override;
+	void RenderDebugInfo( ITr2DebugRenderer2& renderer ) override;
@@ -39 +39 @@ public:
-	void RegisterWithQuadRenderer( Tr2QuadRenderer & quadRenderer ) override;
+	void RegisterWithQuadRenderer( Tr2QuadRenderer& quadRenderer ) override;
@@ -46 +46 @@ public:
-	void BuildCachedGeometryData( TriGeometryRes & geometryRes );
+	void BuildCachedGeometryData( TriGeometryRes& geometryRes );
@@ -95 +95 @@ protected:
-	void SetFiringEffect( EveTurretFiringFX * firingEffect );
+	void SetFiringEffect( EveTurretFiringFX* firingEffect );
@@ -98 +98 @@ protected:
-	void SetTargetObject( IRoot * target );
+	void SetTargetObject( IRoot* target );

✨ Powered by cpp-linter • 💬 Feedback

void UpdateAsyncronous( const EveUpdateContext& updateContext, const EveChildUpdateParams& params ) override;
void UpdateVisibility( const EveUpdateContext& updateContext, const Matrix& parentTransform, Tr2Lod parentLod ) override;
void GetRenderables( std::vector<ITr2Renderable*> & renderables ) override;
void RegisterWithQuadRenderer( Tr2QuadRenderer & quadRenderer ) override;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

clang-format suggestion

Suggested change
void RegisterWithQuadRenderer( Tr2QuadRenderer & quadRenderer ) override;
void RegisterWithQuadRenderer( Tr2QuadRenderer& quadRenderer ) override;

void AddUnboundedQuads( const TriFrustum& frustum, Tr2QuadRenderer& quadRenderer ) const override;

void UpdateCachedGeometryData();
void BuildCachedGeometryData( TriGeometryRes & geometryRes );

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

clang-format suggestion

Suggested change
void BuildCachedGeometryData( TriGeometryRes & geometryRes );
void BuildCachedGeometryData( TriGeometryRes& geometryRes );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants