Hi, just in case, I used version 1.4.0 of p5.js (I should have mentioned it in the video😅) Also, make sure that the pointLight() is outside of the push() and pop(), which makes the sun very far away from the planet by translate(). function theSolar(){ push(); translate(0, 0, -3000); image(solar, 0, 0, 6400*6, 3556*6); pop(); pointLight( 0, 0, 100, 0, 0, 0 ); }
That's is so great. Thank you!
Oh woooow! Nice!
Thank you very much Kazuki for pushing p5 boundaries :D
Yeah, that's very fun! Even though we usually hit the wall of "frame rate"🤣.
Great Tutorial!
Espectacular!
Thanks a lot Kazuki for this amazing tutorial.
Thank you for the compliment, I'll keep going:)
u deserve more views
Thank you for this comment, I'm genuinely happy to hear that
Amazing tutorial🙏from Bali Island
素晴らしい教えです!
お気に入り!
ありがとうございます,これからもいっしょに頑張りましょう😉
this is awesome
Thank you😋
Could use the code somewhere, p5 keeps crashing for me as I'm typing in code and I lose it and have to restart
The pointLight() command doesn’t make any difference when I implement it, no shadow is created. Any ideas what the bug might be? Thanks!
Hi, just in case, I used version 1.4.0 of p5.js (I should have mentioned it in the video😅)
Also, make sure that the pointLight() is outside of the push() and pop(), which makes the sun very far away from the planet by translate().
function theSolar(){
push();
translate(0, 0, -3000);
image(solar, 0, 0, 6400*6, 3556*6);
pop();
pointLight(
0, 0, 100,
0, 0, 0
);
}
Thanks for the quick reply. It seems the error was that I was calling theSolar after planet, it needed to be before!