Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Texture coordinates for Plane primitive object not correct #1561
Currently using the most recent master build(306).
I think #1306 on plane facing problem has been solved but resulted in a bug related to #1533. lin1987www points out that his material is reversed. The posted image on the issue suggests that it's the same problem that I am having. The issuer got around the problem by making the plane double sided and rotating along the y axis 180 degrees. However, I don't think that is supposed to be intended.
After doing some testing, I found out that the texture appears as I intend it to when upAxis for the plane is Axis.Y. But when upAxis is Axis.X or Axis.Z, the texture is flipped horizontally.
I didn't go through any detailed analysis but from my observations I believe that there must be some appropriate changes made to the texture coordinates constructing sequence in init() of Plane class.
My guess is that
Can anyone confirm on this phenomenon? I'm quite surprised that there aren't many people who encountered this problem.
@kmare I suspected that somebody had noticed about it and that is probably why I didn't attempt a pull request. I thought something was probably going on and I didn't want to complicate the issue by throwing pull requests at the maintainers.
Anyway, what's the debate about @jwoolston ? Does it have anything to do with how rajawali handles rotation? Because I found out that rajawali uses right handed coordinate system by default(z axis pointing out of the screen), but the rotation seems like its following the rule for left handed coordinate system(when rotating along z axis it rotates clockwise).