-
-
Notifications
You must be signed in to change notification settings - Fork 60
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
Overhauled EOTech Holographics #482
Conversation
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthroughThe pull request introduces significant updates to the tooltip system in Modern Warfare Cubed Version 0.2, enhancing the information provided for weapons, attachments, and melee weapons. It includes new translations in German and Ukrainian, a new sound effect for shooting snow, and visual enhancements like overhauled textures and models for specific holographic sights. Functionality changes include adjustments to fire mode hints and magazine visibility. The Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant TooltipSystem
participant Holographic
participant Holographic2
User->>TooltipSystem: Request Weapon Info
TooltipSystem->>User: Display Enhanced Tooltip
User->>Holographic: Initialize Holographic Model
Holographic->>Holographic: Set texture dimensions
Holographic->>Holographic: Define cube geometry
Holographic->>User: Render Model
User->>Holographic2: Initialize Holographic2 Model
Holographic2->>Holographic2: Set texture dimensions
Holographic2->>Holographic2: Define geometry using ModelBox
Holographic2->>User: Render Model
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files ignored due to path filters (2)
src/main/resources/assets/mwc/textures/models/holographic.png
is excluded by!**/*.png
,!**/*.png
src/main/resources/assets/mwc/textures/models/holographic2.png
is excluded by!**/*.png
,!**/*.png
Files selected for processing (2)
- src/main/java/com/paneedah/mwc/models/Holographic.java (1 hunks)
- src/main/java/com/paneedah/mwc/models/Holographic2.java (1 hunks)
Additional comments not posted (2)
src/main/java/com/paneedah/mwc/models/Holographic2.java (1)
50-352
: Comprehensive Refactoring of Holographic2 ClassThe
Holographic2
class has undergone a significant refactoring, introducing a more streamlined and maintainable structure. The introduction of a singleModelRenderer
instance namedholo
which encapsulates all components is a positive change, enhancing the organization and potentially improving rendering performance.Key Observations:
- Texture Dimensions: The change from
256x128
to64x64
is notable. While this reduction could potentially decrease the texture quality, it may also be part of an optimization strategy to improve performance. It's crucial to ensure that this change aligns with the PR's goals of enhancing texture quality.- ModelRenderer Additions: Each new
ModelRenderer
instance added as a child toholo
is well-defined with specific rotation points and cube additions. This hierarchical model organization facilitates easier modifications and debugging.- Method Renaming: The renaming of
setRotation
tosetRotationAngle
improves readability and conforms to Java naming conventions.Recommendations:
- Verify Texture Quality: Ensure that the reduced texture dimensions do not adversely affect the visual quality, especially given the PR's focus on texture enhancements.
- Optimization Checks: Conduct performance tests to verify that the new model structure and reduced texture dimensions contribute positively to rendering efficiency.
- Documentation: Update any developer documentation to reflect these structural changes and provide guidelines on how to modify or extend the
Holographic2
model effectively.Overall, the changes are well-executed and align with best practices for maintainability and performance optimization. However, careful attention should be paid to the impact of texture dimension changes on the final rendered product.
src/main/java/com/paneedah/mwc/models/Holographic.java (1)
52-338
: Comprehensive Refactoring of Holographic ClassThe
Holographic
class has undergone a significant refactoring, introducing a more streamlined and maintainable structure. The introduction of newModelRenderer
instances with updated naming conventions is a positive change, enhancing the organization and potentially improving rendering performance.Key Observations:
- Texture Dimensions: The change from
100 to 80
is notable. While this reduction could potentially decrease the texture quality, it may also be part of an optimization strategy to improve performance. It's crucial to ensure that this change aligns with the PR's goals of enhancing texture quality.- ModelRenderer Additions: Each new
ModelRenderer
instance added is well-defined with specific rotation points and cube additions. This hierarchical model organization facilitates easier modifications and debugging.- Method Retention: The retention of the
setRotationAngle
method with its original functionality ensures that existing customizations and extensions to the model will continue to function without modification.Recommendations:
- Verify Texture Quality: Ensure that the reduced texture dimensions do not adversely affect the visual quality, especially given the PR's focus on texture enhancements.
- Optimization Checks: Conduct performance tests to verify that the new model structure and reduced texture dimensions contribute positively to rendering efficiency.
- Documentation: Update any developer documentation to reflect these structural changes and provide guidelines on how to modify or extend the
Holographic
model effectively.Overall, the changes are well-executed and align with best practices for maintainability and performance optimization. However, careful attention should be paid to the impact of texture dimension changes on the final rendered product.
By the way, I will not put this change in the Changelog because it is not fundamental, it does not drastically change the mod, it is just a small improvement. |
You are already lead designer
Changelog is here to log changes, no matter how small it may be, anyway I will do it myself I guess. Thanks for the PR |
Qodana for JVM21679 new problems were found
☁️ View the detailed Qodana report Detected 18 dependenciesThird-party software listThis page lists the third-party software dependencies used in Modern Warfare Cubed
Contact Qodana teamContact us at [email protected]
|
371cd04
to
3460d2f
Compare
This reverts commit 1b2dce2.
This reverts commit 1b2dce2.
📝 Description
This PR contains improved textures for the holographic sights, and also improves the models I try to replicate to real-life models. What differentiates it from other PRs is that the non-visible parts of the models do not have textures, making it only focus on the visible parts.
🎯 Goals
❌ Non Goals
Breaking holographic sight textures in-game
🚦 Testing
It works correctly...
⏮️ Backwards Compatibility
Fully compatible with older versions
📚 Related Issues & Documents
N/A
🖼️ Screenshots/Recordings
📖 Added to documentation?
😄 [optional] What gif best describes this PR or how it makes you feel?
N/A
By the way, if you have no idea what to do with the mod, let the designers' work revive the mod or let me manage the project for a few days XD.
Now if you don't accept the PR I don't know how I can help you with the mod either.