Jan 30, 2024 Replies: 4 Have converted this Processing Github Project to B4J. Very interesting to watch this being drawn in real time. Just B4J default libs required. Have not used the default Processing PVector library for the project - have hard coded the Vector multiplication, subtraction, addition, dot product, magnitude, normalization, etc inside the B4J project. Enjoy! 50 rays 100 rays 1000 rays Attachments b4jCausticRaysCircle.zip b4jCausticRaysCircle.zip 2.6 KB · Views: 504 Last edited: Feb 2, 2024 Click to expand...
Have converted this Processing Github Project to B4J. Very interesting to watch this being drawn in real time. Just B4J default libs required. Have not used the default Processing PVector library for the project - have hard coded the Vector multiplication, subtraction, addition, dot product, magnitude, normalization, etc inside the B4J project. Enjoy! 50 rays 100 rays 1000 rays
Sandman Expert Licensed User Longtime User Jan 30, 2024 #2 Nice! ? Here's a channel with these kinds of animations https://youtube.com/@animations_ag Such as this one
Nice! ? Here's a channel with these kinds of animations https://youtube.com/@animations_ag Such as this one
Johan Schoeman Expert Licensed User Longtime User Feb 2, 2024 #3 Have update the sample in post #1 - it now works as what it should.
Johan Schoeman Expert Licensed User Longtime User Feb 18, 2024 #4 Sandman said: Nice! ? Here's a channel with these kinds of animations https://youtube.com/@animations_ag Such as this one Click to expand... A very rough draft of a ray bouncing inside an ellipse with equation 4x^2 + y^2 = 100 It is based on this web posting Starting point and first bounce: Expand Collapse Copy fromPoint.x = 0 fromPoint.y = 10.1 toPoint.x = 1.4 toPoint.y = -9.6 Attachments b4jEllipseNew.zip b4jEllipseNew.zip 3.8 KB · Views: 460
Sandman said: Nice! ? Here's a channel with these kinds of animations https://youtube.com/@animations_ag Such as this one Click to expand... A very rough draft of a ray bouncing inside an ellipse with equation 4x^2 + y^2 = 100 It is based on this web posting Starting point and first bounce: Expand Collapse Copy fromPoint.x = 0 fromPoint.y = 10.1 toPoint.x = 1.4 toPoint.y = -9.6
Johan Schoeman Expert Licensed User Longtime User Feb 18, 2024 #5 The attached B4J project will randomly select a ray starting point and then a randomly selected "first bounce" point and then continue to bounce the ray according to the "laws of reflection inside an ellipse". It draws some interesting patterns inside the ellipse baaed on the randomly selected start and first-bounce points. Makes me wonder why the Oval Office is an oval office....? Attachments b4jEllipseNew.zip b4jEllipseNew.zip 3.9 KB · Views: 434 Last edited: Feb 18, 2024
The attached B4J project will randomly select a ray starting point and then a randomly selected "first bounce" point and then continue to bounce the ray according to the "laws of reflection inside an ellipse". It draws some interesting patterns inside the ellipse baaed on the randomly selected start and first-bounce points. Makes me wonder why the Oval Office is an oval office....?