Skip to content

Enable animated textures in 3D view#1453

Merged
chreden merged 32 commits intomasterfrom
issue/animated
Aug 13, 2025
Merged

Enable animated textures in 3D view#1453
chreden merged 32 commits intomasterfrom
issue/animated

Conversation

@chreden
Copy link
Owner

@chreden chreden commented Aug 7, 2025

Load and display animated textures in the 3D view.
Instead of adding yet another triangle type this change consolidates TransparentTriangle and CollisionTriangle into Triangle, adds animation elements and skips the direct use of vertex and index buffers until inside the mesh.
As part of this remove the lazy scene rendering as the scene will be changing all the time anyway - this means a lot of events get removed.
UV rotation textures are partially implemented but aren't currently used as it requires parsing the script to be able to determine the correct behaviour. Some TR4 and 5 levels will have water that isn't currently animated for this reason.
Closes #1454

chreden added 4 commits August 6, 2025 22:48
Some rendered.
Animated transparent textures aren't affected yet, that's another problem.
Animated/transparent interaction
Needs to be merged - probably with collision too.
Start at seq point, animated only rooms
Always make index buffers, matrix buffer
Frame time, uvs

Put frame time in the triangles based on game version
Adjust official UV mode to stop it jumping around and bring in by 1px to avoid the borders.

Half converted to the uni triangle

Slightly more converted

double sided for new triangle

start removing old bits

Start removing old method

Cube mesh updated
If a transparent face has animated texture make all of the tiles transparent
@chreden chreden changed the title Issue/animated Enable animated textures in 3D view Aug 13, 2025
@chreden chreden self-assigned this Aug 13, 2025
@chreden chreden added this to the Next milestone Aug 13, 2025
@chreden chreden requested review from lahm86 and makotocchi August 13, 2025 00:33
@chreden chreden marked this pull request as ready for review August 13, 2025 00:33
Copy link
Collaborator

@lahm86 lahm86 left a comment

Choose a reason for hiding this comment

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

Looks great, just a couple of comments below.
I also wondered if offering to make it optional would be worth it, but it's maybe overkill. Certainly something I'd keep enabled myself, but thought I'd mention regardless.

@chreden
Copy link
Owner Author

chreden commented Aug 13, 2025

Looks great, just a couple of comments below. I also wondered if offering to make it optional would be worth it, but it's maybe overkill. Certainly something I'd keep enabled myself, but thought I'd mention regardless.

A setting in settings wouldn't be too bad, I can add that. Probably not in the side menu though, doesn't seem like something you'd want to toggle a lot.

Add seek to word length in animated textures
Add setting for animated textures - this also moves vsync and background colour to a new 'visuals' tab. Skybox will go here too most likely.
Remove erroneous skip in Saturn ARANGES loading
@chreden chreden merged commit 8cf89c2 into master Aug 13, 2025
1 check passed
@chreden chreden deleted the issue/animated branch August 13, 2025 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Animated texture support

2 participants