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

Yet some more fixes #170

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

Conversation

pattakosn
Copy link
Contributor

@pattakosn pattakosn commented Feb 17, 2025

  • forgotten redundant ifdef
  • capitalization issues (linux is case sensitive)
  • header path fixes
  • replace nullptr with VK_NULL_HANDLE
  • unused variables
  • rename local variables that are hiding outer scope variables
  • passing redundant function parameters of variables that are already in the namespace

Copy link
Owner

Choose a reason for hiding this comment

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

Is there a reason for this? It deviates from the norm, which is third_party/name.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the reason was that as it was, `#include <meshoptimizer/meshoptimizer.h> was needed which (AFAIK) is not the upstreamm way to include it and i couldnt use the meshoptimizer package i have on my linux system (installed with my package manager) the other solution is the one i just pushed: mv the header one dir up

Copy link
Owner

Choose a reason for hiding this comment

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

My understanding is that the package wants it this way, if that's the case then do what you think is best, we can live with one library deviating a bit for now.

Copy link
Owner

Choose a reason for hiding this comment

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

Is this needed?

Copy link
Contributor Author

@pattakosn pattakosn Feb 19, 2025

Choose a reason for hiding this comment

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

removing the dots?
my understanding is that to get from runtime/Geometry to runtime/RHI/RHI_Vertex.h you need to go up one level.
This matches the behavior on my system(compile error).

I am really surprised and curious how it compiled on yours (i will test master on a windows machine tomorrow and confirm that)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@PanosK92
Copy link
Owner

Is there a reason for that library path change?

@pattakosn pattakosn force-pushed the yet-some-fixes branch 3 times, most recently from 7ad849c to 57e82d7 Compare February 19, 2025 13:35
@@ -636,8 +636,8 @@ namespace spartan
renderable->SetInstances(instances);

// make the bark collidable
shared_ptr<PhysicsBody> physics_body = bark->AddComponent<PhysicsBody>();
physics_body->SetShapeType(PhysicsShape::Mesh);
shared_ptr<PhysicsBody> physics_body_bark = bark->AddComponent<PhysicsBody>();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Could this be that you are mistakenly redeclaring this here and you are actually hiding the outer one?
Could it be that this physics_body is supposed to be the same as in line 576 for example?

Copy link
Owner

Choose a reason for hiding this comment

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

They will still affect the same memory but the double declaration is a mistake, you can remove physics_body_bark if you want.

@pattakosn pattakosn force-pushed the yet-some-fixes branch 4 times, most recently from 9522a65 to b46d5e3 Compare February 21, 2025 20:07
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.

2 participants