Skip to content

Conversation

@xezon
Copy link

@xezon xezon commented Nov 24, 2025

Merge with Rebase

This change merges and moves View, W3DView, ParabolicEase, CameraShakeSystem to Core.

There are 3 camera changes in Zero Hour which change the way Generals cut scenes look. The relevant Generals logic is preserved with conditional compile.

Generals inherits the following changes

  • Parabolic Ease (effectively unused)
  • Camera Shaker (effectively unused)
  • Real Zoom Cam (effectively unused)
  • Slave Camera mode

@xezon xezon added this to the Code foundation build up milestone Nov 24, 2025
@xezon xezon added Gen Relates to Generals ZH Relates to Zero Hour Unify Unifies code between Generals and Zero Hour labels Nov 24, 2025
@xezon xezon force-pushed the xezon/unify-w3dview branch 2 times, most recently from 55e87e7 to b216d5b Compare November 24, 2025 19:56
@xezon
Copy link
Author

xezon commented Nov 24, 2025

Fixed compile error.

@Skyaero42 Skyaero42 self-requested a review November 25, 2025 19:45
@xezon xezon force-pushed the xezon/unify-w3dview branch from b216d5b to 911ece7 Compare November 25, 2025 20:59
@xezon
Copy link
Author

xezon commented Nov 25, 2025

Rebased on main.

Copy link

@Skyaero42 Skyaero42 left a comment

Choose a reason for hiding this comment

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

Looks good.

#if RTS_GENERALS
m_rcInfo.angle.endAngle = m_angle + angle;
#else
m_rcInfo.angle.endAngle = angle;

Choose a reason for hiding this comment

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

ZH code seems to be the correct one here, angle is absolute here, not a delta.

Copy link

@Mauller Mauller left a comment

Choose a reason for hiding this comment

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

Will take a look at it again tomorrow just to double check, but the W3DShaderManager needs merging with this change due to the changes in the shader structs and their use within the view code.

@xezon xezon force-pushed the xezon/unify-w3dview branch 2 times, most recently from f33c8ab to 4b1ae9c Compare November 28, 2025 22:40
@xezon
Copy link
Author

xezon commented Nov 28, 2025

Compile error fixed.

@xezon xezon force-pushed the xezon/unify-w3dview branch from 4b1ae9c to 7fe65e2 Compare November 29, 2025 19:47
@xezon xezon requested a review from Mauller November 29, 2025 19:49
@xezon
Copy link
Author

xezon commented Nov 29, 2025

The individual commits compile successfully.

Copy link

@Mauller Mauller left a comment

Choose a reason for hiding this comment

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

Looks good, kind of annoying there are data issues caused by small differences in some of the camera code between both games.

@xezon xezon merged commit fe4a589 into TheSuperHackers:main Nov 29, 2025
23 checks passed
@xezon xezon deleted the xezon/unify-w3dview branch November 29, 2025 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Gen Relates to Generals Unify Unifies code between Generals and Zero Hour ZH Relates to Zero Hour

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants