Timeline for glRotatef rotation never applied to 3d cube
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 30, 2013 at 23:52 | vote | accept | BotskoNet | ||
Nov 30, 2013 at 23:52 | comment | added | BotskoNet | I've finally worked it out. This method worked fine the trouble was that my block was rotating on the offset, meaning it was making a big circle around the map and not its own Y. I turned all blocks invisible to see it during debugging and realized. The final code required two translate commands to rotate on the proper axis. pste.me/QeRyi Thanks | |
Nov 30, 2013 at 22:44 | comment | added | BotskoNet | I've been reading a lot about the push/pop and rotation methods, I've looked at a ton of example code, and I even tried your example order but I either end up with nothing rendered, or a the block rendered without any rotation. pste.me/C9lTD | |
Nov 30, 2013 at 22:05 | history | answered | Maximus Minimus | CC BY-SA 3.0 |