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

Animation Renderer and Interactive Mode (RaC 1 only) #94

Merged
merged 38 commits into from
Jun 18, 2023

Conversation

MilchRatchet
Copy link
Contributor

@MilchRatchet MilchRatchet commented Jun 18, 2023

This PR includes:

  • Added interactive mode which hooks into a game running on RPCS3 and synchronizes all mobies. (Thanks to Clip and Bordplate for the base code)
  • Added animation renderer for interactive mode and model viewer. (Thanks to Clip for his old animation render code) Closes Animations #36
  • Propertyframe now supports arbitrary classes through recursion.
  • Model viewer camera can now also rotate vertically.
  • Modelobjects without a loaded model are now rendered using the billboard renderer.
  • Abstracted OpenGL calls to avoid redundant calls and improve performance.
  • Objects in model viewer are now sorted by their ID. Closes Model viewer's model list is not always sorted #31
  • Fixed compatibility issues introduced in the last PR. (Thanks to ChaoticGD for the report)

Also fixed the color layout of the ingame moby memory.
Still without animations :)
This was quite painful to get right and at the end it was pretty much as in the Collada exporter.
This seems to be more in line with what the game uses but I have no idea how exactly they do the smooth blending between animations.
This allows us to avoid OpenGL calls when they are not necessary. Some more work is still required though to keep overhead small.
This makes the animations a bit less choppy. But they are still quite bad especially on animation changes.
The standard library only supports Windows. If we ever switch to .Net 7 then this change would even have been necessary as the whole package is not even available anymore under anything but Windows.
Turns out OpenTK has a bug, possibly. Doing this by hand works. Previously, the rotations were not interpolated.
@MilchRatchet MilchRatchet added Feature Something new UI Replanetizer UI OpenGL OpenGL labels Jun 18, 2023
@MilchRatchet MilchRatchet merged commit fa13b5d into RatchetModding:master Jun 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Something new OpenGL OpenGL UI Replanetizer UI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Animations Model viewer's model list is not always sorted
1 participant