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

[Feature Request] Cloned Mesh, A Node That Reuses The Textures In Another Mesh Node #381

Open
2 tasks done
mechPenSketch opened this issue Aug 3, 2024 · 3 comments
Open
2 tasks done
Labels
Enhancement New feature or request Triage PR/Issue needs to be triaged.

Comments

@mechPenSketch
Copy link

Validations

  • I have checked for similar feature requests and could not find any.
  • I have made sure this is not an already-existing feature.

Description

There are some nodes I want to duplicate. For example, for parts that comes in pairs. A further example would be the eyes, where I can import all part of the left eye, then duplicate them to create the right eye.

Suggested solution

A new type of node with a unique variable that stores a mesh (node). It will then have all same parts of data (such as Albedo) as the referred mesh.

Alternative solution

No response

Additional Context

  • With this suggestion, users won't even have to duplicate + flip for their pair of parts on their .psd or .kra files. They only have to draw half of the pair.
    • Also, in the future, if they were to update their model, they only have to work on that half. The other half would be automatically updated upon merging.
  • Reusing textures help reduce space in Atlas.
@mechPenSketch mechPenSketch added Enhancement New feature or request Triage PR/Issue needs to be triaged. labels Aug 3, 2024
@mechPenSketch
Copy link
Author

According to discord, one of the to-do items is Resource-Handling for Texture. Does that mean texture are treated as a resource (Like Resource in Godot) separated from a node, and then another node's albedo can link to the texture?

@r888800009
Copy link
Contributor

If you are interested in contributing, I suggest you go to discord to discuss, because the specifications of inochi2d 0.8 and 0.9 are different.

For 0.8, you can view the code at https://github.com/Inochi2D/inochi2d/tree/v0_8 to find implementations of drawables, nodes, etc.

@r888800009
Copy link
Contributor

for this issue, I think this feature can be implemented by extending a transformation matrix for drawables.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request Triage PR/Issue needs to be triaged.
Projects
None yet
Development

No branches or pull requests

2 participants