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

Support straight copy of vertex buffer without transformations #190

Open
uyjulian opened this issue May 28, 2021 · 1 comment
Open

Support straight copy of vertex buffer without transformations #190

uyjulian opened this issue May 28, 2021 · 1 comment
Labels
enhancement New feature or request import Import of glTF files

Comments

@uyjulian
Copy link

uyjulian commented May 28, 2021

Right now, transformations are done to the vertex data buffer:
For positions, the X position is negative
For UV, the V position is inverted (1-v). This may break mirror wrapping mode when the V position is at 0

May I suggest doing these transforms by setting the scale to negative on the Unity Transform component or the TexEnv parameter of Shader instead of the vertex buffer.

Implementing this may also make implementation of #191 easier.

@atteneder
Copy link
Owner

negative scales are IMO incorrect and IIRC some systems (physics?) do not work that way.

I'd like to look if this can be solved differently first. Do you have a test model you can share?

Probably related to #176

@atteneder atteneder added the enhancement New feature or request label Aug 31, 2021
@atteneder atteneder added the import Import of glTF files label Dec 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request import Import of glTF files
Projects
Status: Runtime Loading
Development

No branches or pull requests

2 participants