Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🚚 Added videocamera role MIRROR_NOFLIP (2) #3235

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

ohlidalp
Copy link
Member

@ohlidalp ohlidalp commented Mar 8, 2025

Fixes #3137

Same as MIRROR (1), but without flipping the texture horizontally (expects texcoords to be already flipped in the mesh). For more info see https://docs.rigsofrods.org/vehicle-creation/fileformat-truck/#videocamera

I haven't coded the Tuning menu control yet, I can add it if it's deemed necessary. UPDATE: done, see below.

EDIT: converted to draft because it's not working as expected if the mirror is actually a tracking videocamera (the lookat node is set). EDIT2: Fixed, ready for review.

@ohlidalp ohlidalp marked this pull request as draft March 8, 2025 00:46
@ohlidalp ohlidalp force-pushed the 3153_graysonk95_mirrors_flipped branch from 6bb82d8 to d94b097 Compare March 9, 2025 02:25
@ohlidalp ohlidalp marked this pull request as ready for review March 9, 2025 02:25
Same as `MIRROR` (1), but without flipping the texture horizontally (expects texcoords to be already flipped in the mesh)

Additional Codechanges:
* To make naming consistent, enum VideoCamType was renamed to VideoCamRole and moved to Application.h so that both RigDef fileformat and GfxActor can easily #include it.
* The rigdef (truck) parser now uses the enum instead of numeric constant. This simplifies the spawner as it just copies the value.
@ohlidalp ohlidalp force-pushed the 3153_graysonk95_mirrors_flipped branch from d94b097 to 734b321 Compare March 9, 2025 02:28
@ohlidalp
Copy link
Member Author

ohlidalp commented Mar 9, 2025

image
I also added the Tuning UI override, just to refresh my memory how this works.
Screenshot is from Graysonk's HDX (which has UVs pre-flipped in the meshes) with left cameras fixed in truck file, right cameras fixed in UI.

The full `addonpart_tweak_videocamera` mechanism wasn't implemented, only the UI override.
@ohlidalp ohlidalp force-pushed the 3153_graysonk95_mirrors_flipped branch from 10fd073 to 2417275 Compare March 9, 2025 13:29
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.

Waves on water is broken
1 participant