Loading...
Logo
Processing Forum
     
Hello all,

I am very new to shaders and just read the tutorial.
http://processing.org/tutorials/pshader/

How can I use an image to place on a 3D sphere please?
I want to wrap the complete sphere into one image.

I looked at the textured sphere example
http://processing.org/examples/texturesphere.html
but I feel it must be much easier with Shaders.

Thank you!

Greetings, Chrisir    

Replies(4)

Have you seen the tutorial I wrote recently?

http://www.creativeapplications.net/processing/geometry-textures-shaders-processing-tutorial/

It covers a lot of stuff and all the code examples for both 1.5.1 and 2.0 are in my github.


thanks

that's still amazingly complicate

https://github.com/AmnonOwed/P5_CanTut_GeometryTexturesShaders2B8/tree/master/TexturedSphereGLSL

I was just hoping to get a fast simple water ball-ish texture for my marbles
http://www.openprocessing.org/sketch/84284




Greetings, Chrisir


shaders are complex. well worth reading amnons examples and walkthrough.
i personally would stick with 1.5.1 and use glgraphics as more control than the new pshader in 2.0


in fact, I thought the same: I had a version of my sketch (probably in 1.51) which had a pretty short code for a sphere.

Can't I use glgraphics in 2.01?

Besides, probably I rather need textures than shaders, I guess


Greetings, Chrisir