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

Texture backface flip #8

Closed
andrewtheone opened this issue Jan 16, 2016 · 6 comments
Closed

Texture backface flip #8

andrewtheone opened this issue Jan 16, 2016 · 6 comments

Comments

@andrewtheone
Copy link

Hey!

Me again, I tried to solve this one on my own, but just cant figure it out.
Problem:

I give only 1 texture to a voxel. It displays perfectly. (I'm only interested in the side-faces (front, left, right, back, .... bottom and top doesnt matter). 3 out of 4 faces displays correctly but the back one is fliped vertically, any idea how to get rid of this?

@fenomas
Copy link
Owner

fenomas commented Jan 18, 2016

Weird, I haven't touched that code in a looong time. Is this with the vanilla engine, or did you tweak anything in the rendering or chunking code? If it's the standard engine, can it be minimally reproduced?

@andrewtheone
Copy link
Author

its fully vanilla part

reproduction:
take a image, with some text on it (so it'll be easier to ditinquish if its flipped and if so in which direction)

register material, pass image as texture

place a block with the texted texture, walk around and up and down

@fenomas
Copy link
Owner

fenomas commented Jan 19, 2016

Hmm.. I see stuff horizontally flipped (2/4 sides) but not vertically.

Does this happen in the testbed? E.g. for the "grassy dirt" blocks, is one of the sides rendering for you with the grass on the bottom? If so, can I have OS/browser/version details?

@andrewtheone
Copy link
Author

No, i does not happen in the testbed

@andrewtheone
Copy link
Author

I meant to say "on Y axis" when i said vertically, so yeah, if you stand in front of a block, whats on the right side on the front, that goes onto that left side on the backside of the block.. -if it makes any sense-

@fenomas
Copy link
Owner

fenomas commented Feb 2, 2016

I get you know, and this is fixed by 26b5ba6.

Thanks!

@fenomas fenomas closed this as completed Feb 2, 2016
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

No branches or pull requests

2 participants