Awesome! Until now, I learned about topography, botanics, algebra, hydromechanic, and a lot of other subject just by watching you programming in Java... All of that without getting tired or bored! Thanks a lot!!!!
At the “epilogue” when he switched the sphere detail value to 5, it kind of looked like an object straight out of katamari (a Japanese game about rolling up things to create stars). The only difference is the color and texture. This is also made me realize just how important this code is for 3D games! Definitely saving this video.
I really like your videos. I personally use them for educational purposes in 3d math, because I struggle with understanding the equations from wikipedia, but with your explanations everything becomes more clear. Thank you!
it is basically the same thing but r is now a funcion that depends on phi and theta it can be a trigonometric function,perlin noise, whatever you want and instead of 20 lon and lat values can be as much as you want ...I would recommend to use a bounded function so it will have a "nice" shape instead of peaks all over the sphere if you work the maths you can make every shape you want even a planet earth...I mean if you want to make it "not random"
Between you and the Englishman, Javidx9, I have learned spherical geometry plus how to cook up some pseudo perlin noise, and I'm doing some low-res, low-poly, world-building
This is really awesome! Is nice to see how all things (vector calculus with the spherical coordinates thing and programming) come together. Congratulations!
Lol 10:36 looks nutty buddies. PD: Your videos are seriously awesome! You are a hero to anyone who stumbles upon them because of your brilliance in applying concepts that many would struggle with if it wasn't for your masterful teaching and friendly demeanor. You have my everlasting gratitude.
It would be neat to see the points of the sphere effected by the gravity of a moon in orbit around it, causing tides. Turn the points into particles that can be pulled this way and that by another object.
Excellent, thanks :-) Finally, an understandable explanation of how to do this. It was clear enough that I was able to implement this in python and Opengl quite quickly. Will take a look at more of your videos for more tips.
Simplest way to not confuse lat/long is longitude are LONG(itudnal) lines going all the way over the poles, while latitude are circles that change in size.
I´m at my third year studying computer science and also work as an visual artist at partys, and you´r teaching me everything i wanted to learn about this stuff i ever wanted. do you even now how much of your work is needed in this business? (PS: i know, fuck my english / and yes im drunk at this moment ^^) best regards from austria
Hey man. You're a newish poster. What type of Java is he using and in which ide? I haven't written Java since 1999 when I had to take it and applets ran horribly. Haha. I've been digging 3d coding lately and evaluating different ways to visualize the data from the lidar, mems and other sensors for a little bot I'm building. I'm leaning towards unreal using cpp but it doesn't have to be that complicated for a hobby project. I don't like unity, directx is way too much time to build a framework just to render 1 pixel, vpython was too slow and opengl was OK but I'm like the only programmer in the world who doesn't know js haha. I do know cool and pascal however. I'm old...43 haha
Excellent presentation. Do you have already done video about mapping pixels onto globe? I mean, some image - then render it over the globe, or part of the globe. I think this will be very usable to have. Thanks.
Thank you in advance. I subbed, and set notification. So, when you finish video - I (and others) will be notified. No rush, currently messing with radio communication, FFT optimization, and other similar things on Atmel chips. What a headache... :D
***** both, I am used to working only with the 8 bit ones, so my mind went to those, and I thought not really useful nor practical :D and later remembered there were 32bit ones too. just being a bit random :)
Thank you so much Daniel Shiffman . !!! I started exploring "backstage" technologies... on how meshes are formed in 3D softwares , Marching cubes and so on..... This video was real helpful.
The more of your video's I watch the more clear things I've coded in the past become. which is kind of weird, but makes sense since there is a lot of thing I coded that I didn't really understand :)
What ide are you using? In all my years of (trying...) coding I've never touched Java since writing applets over 20 years ago and hated how slow it ran on a pentium 3 350mhz. Haha
Could this code be compiled to a .exe? This seem like a very nice tool and language to make games with. Currently learning Love2D but it's pretty hard to get 3D to work, and I couldnt get Love3D to work
insidetheOS it's pretty good for simple games, they teach freshman in my university how to use processing and one of their assignments is to design a game, a friend of mine made a 3D version of snake really easily. It looks great! Obviously it's very limited but it's good for getting started
They are probably using it to teach programming which is absolutely fine. Also, with processing you can load objects, you can play sounds and it obviously is OOP since it's Java. I'm not sure where you got your information from.
***** like christian said, it's just used to teach them the concept of programming, gives them something interesting to learn how to program algorithmically. they move onto Java in semester 2 and then after first year they move onto other languages!
Mine is slow. Too slow for what I have planned. I made a second multidimensional array where I multiplied the lon and lat variables by n and do a sum. I put that sum into the fill in the second set of loops. fill(map(color[i][j],-((1/2)*sqrt(2)+1),(1/2)*sqrt(2)+1,0,255) ,255,255);. The sphere looks exactly how it should look. The problem is that it's too slow. Total has to go over 100 for the star pattern to look somewhat ok. Ideally it would go to 400+ to make it look smooth. I think I can do away with the color array. It would take more math to get the same result, but it's doable.
Hey Daniel, in the Processing reference website I realize at least three vertices are need to construct a triangle strip, however you only use two vertices in your code to construct full strip. How this is possible ?
@@TheCodingTrain it repeats the last two. ABC BCD CDE. you go from top left to bottom left to top right for one triangle. then to bottom right of the second triangle to form a rectangle
Thanks for another amazing video!! I always wanted to learn howto code the camera by myself. I conceptually understand projection and transformation matrices. Can you people point me out some good reading, videos or a keyword to search more eficiently? Thanks in advance!!
Would you mind asking at discourse.processing.org/! It's a better platform for Processing and p5.js related code questions. You can share code there easily! Feel free to link from here to your post.
you confused londitude and latitude in the x,y,z calculation z is supposed to only be cofntrolled by latitude bu in your equetion it is controlled by longitude
hi. i'm having issues with peasycam and processing 2.2.1. It gives a jave error. java.lang.UnsupportedClassVersionError: peasy/PeasyCam : Unsupported major.minor version 52.0
Hey there! You are doing excellent thing here...tons of appreciation! Does anybody have an idea how can I make the rainbowish ball at the end transparent? I am trying with tint(); function however with no result...
hello! first of all thank you you are an amazing teacher. I get this error " ArrayIndexOutOfBoundsException: 60" I don't really understand why. Is it because my index is outside the range, smaller than the length of the array?
Ian Simpson it would completely depend on your logic, practical and/or visual definition of 4th dimension, but as soon as you figure with aproach you want, you'd have to start from there on how to program it. Long story short it's up to what you define as dimension in order to do it.
"One noted that in the UK “phi” was always pronounced to rhyme with “pie” but that some Americans at conferences pronounced it “fee”. Another noted that in Greek the letter PHI is indeed pronounced PHEE. However, in Greek the letter we call PI is also pronounced PEE." I'm just gonna pronounce it FEE otherwise I'll have to start pronouncing pi as PEE, haha.
I like how to make everything easier to code you ignore the corner-cases all the time XD At the top and bottom of the sphere you have a punch of points all in the exact same spot. That also makes that you have an alternating pattern of a normal triangle and a triangle where 2 verticies are at the same spot. And because you flipped the way the strips are created, you also flipped some triangles around so that the back-face is showing. Those 2 together make for some strange patterns at the poles. And another thing: because you do not connect the triangle-strips back to the start but create new points at the same location the deformation you apply rip the sphere apart - as the start and end-point, while originally at the same position, are not the same points and get a different random deflection.
10:00 11:20 exactly what i needed to wrap a image around a "3d sphere" in logical sense of things thank you my guy... now lets turn the lights off for those Russians by trowing javascript 2d/3d spheres at them lol .... kidding i love russians suka ^_^
Quick question, how do we print a 2D line? A line consists of infinite points. Do we interpolate all the pixels between two distinct co-ordinates? How do we actually plot a continuous line with discrete points?
I got to the point of using my i and j variables and it says they cannot be resolved into a variable. declared them uptop,then i ran into the cam as not a variable damn
Watching these videos, I always wonder why more expressive variable names aren't used. Instead of saying "okay, let's make j represent longitude", why not just name the variable longitude?
Love the tutorial thanks Dan! DOes anyone know how to get and affect a single point in this shape? I just want to take a single point and move it inwards towards the center of the circle
Go to tools | add tools, then pick library tab, and pick PeasyCam from the list and pick install, there's a bunch of other stuff to add too, they have examples for usage.