Hi. I’m wondering how I could get the blue square shown floating within the image to instead lay horrizontally across the center of the skybox sphere rather than vertically as it is now. Any help?
Essentially say rotateX(radians(90)); before image () command
Combining translate and rotate is a bit tricky
You might want to use noStroke(); before the sky sphere
Thanks a bunch! Would there be any way to lower the position of the image towards the bottom of the sphere? Also, where would the noStroke(); need to go? Before the background draws in void Draw() or in void Setup()?
Sure! Say translate (0,330,0); before rotate and image()
In draw() directly before you draw the sky sphere
Like this? It currently still seems to draw the lines
Ah, oh, it’s a shape!!
Did you try backgroundOB.setStroke(false); in setup ((
Or backgroundOB.noStroke(); or whatever the command is?
Yea I used a Sphere and made it larger than what the camera shows so it shows from the inside. And I’ll give that a try!
I always wonder how a skysphere might work.
How did you make the shape for the sky sphere?
How big is it?
I created a sphere primative using PShape and set it to size 6000 (which seems to be the limit before it gets a bit glitchy) and then textured it with my skybox texture. Then I made sure that the PeasyCam I was using was within that sphere at the center (which it should defaultly be)
Hello,
I encourage you to peruse the resources available here:
- The Processing website has references, examples, tutorials, etc.
https://processing.org/ - Processing has lots to offer!
An exploration of the tabs will reveal what is available; libraries, tools, examples and more.
- The Coding Train
https://www.youtube.com/channel/UCvjgXvBlbQiydffZU7m1_aw
https://thecodingtrain.com/ - Happy Coding
Processing Tutorials - Happy Coding
:)
Thanks a ton for your explanation!