Truncated Cube with Textures #790
vsquared
started this conversation in
Show and tell
Replies: 1 comment
|
This looks great! Good example of a complex use of textures in a shape. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
This is a py5 port of code initially posted in the Processing forum: https://discourse.processing.org/t/truncated-cube-p3d/49216 .
It demonstrates applying textures to the octagonal faces of a truncated cube with the aid of texture_mode(NORMAL). The images used for the textures are shown below and should be copy/pasted into the sketch folder. The cube is rotated by mouse movement.
Images:






one.png
two.png
three.png
four.png
five.png
six.png
Output:

All reactions