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

Add the ability to assign textures to a model randomly #269

Open
Jin-Jiyunsun opened this issue Nov 4, 2023 · 1 comment
Open

Add the ability to assign textures to a model randomly #269

Jin-Jiyunsun opened this issue Nov 4, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@Jin-Jiyunsun
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Textures on for example trees, can get a bit repetitive when Jagex place the same tree over and over in certain areas.

Describe the solution you'd like
The ability to vary the texture so trees leaves texture with the same model can be lighter, darker or different in some other way.

Describe alternatives you've considered
n/a

Additional context
n/a

@aHooder aHooder added the enhancement New feature or request label Nov 23, 2023
@aHooder
Copy link
Member

aHooder commented Nov 23, 2023

This will ultimately require the ability to upload separate vertex data for the same Model instance drawn in different locations. The issue currently is that the model instance RuneLite instructs us to draw holds info about offsets into vertex buffers on the GPU side, so we would have to either add some indirection or potentially reserve space for more than one model, then upload different variants to predictable offsets relative to the buffer offset stored in the Model instance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants