We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I have a sketch that generates an animated P3D image in draw(). How can I get this image to appear instead on the faces of an arbitrarily rotated cube?
Any demo of anything similar would be useful.
Thanks.
Answers
Download earth_lights.jpg from the following website:
http://visibleearth.nasa.gov/view.php?id=55167
and place it in your data folder. The following example is untested code. It will place a texture to a sphere. Try changing SPHERE with BOX and see if it dows the trick that you are looking for:
I hope it helps,
Kf
This is relevant to this post:
https://forum.processing.org/two/discussion/18690/skybox#latest
Kf
That just places a fixed JPG, rather than the animated P3D image.
Provide an example of an P3D image.
Kf
Here's a bunch: https://processing.org/tutorials/p3d/
Here I create a P3D image and place it in the side of the cube:
Kf