No video

How I Made The World with SINE

  Рет қаралды 183,168

Coder Space

Coder Space

Күн бұрын

Procedural Terrain Generation using Sine as noise function. Sphere Tracing technique (raymarching) was applied using OpenGL. Python and GLSL were used for this project (modules Pygame, ModernGL)
------------------------------------------------------------------------------
I have no monetization on the channel, but if you wish to support the channel:
BTC:
bc1qpmpk4swlwtj8kvwva5j7zlth6c33vzp8epx8w9
Any crypto on ETH or BNB:
0x855a59b4c926b96206e492774cd93d81287490ef
Any crypto on TON:
UQCnBXmaYswK9chnjw_KDPbf9uYGd6ZChexNc_iyLKllVKxd
Email me ( coderstandalone@gmail.com ) that you supported the channel and I will thank you in the next video!
------------------------------------------------------------------------------
Code:
github.com/Sta...
#coderspace #opengl #raymarching

Пікірлер: 234
@user-ni7sp1cp2b
@user-ni7sp1cp2b Жыл бұрын
Next video: Making minecraft in python
@TheLatrax
@TheLatrax Жыл бұрын
Yes please!
@LocalBurglar
@LocalBurglar Жыл бұрын
It should have been in java
@user-ni7sp1cp2b
@user-ni7sp1cp2b Жыл бұрын
This is can made with ursina
@FXUNDPLXGG
@FXUNDPLXGG Жыл бұрын
@@user-ni7sp1cp2b PyOpenGL никто не отменял, будет сложнее, но зато работать будет быстрее
@bingusiswatching6335
@bingusiswatching6335 Жыл бұрын
oh God it'll be even slower
@christopherquigley5468
@christopherquigley5468 Жыл бұрын
Given that everything we see around us is because of light, which travels as a wave, it doesn’t surprise me. But, the fact you decided to create a world out of sine waves is amazing. Really cool stuff!
@CapaneusoftheGnosticLegion
@CapaneusoftheGnosticLegion Жыл бұрын
Matter is light/mind/sinusoids. Light has and will synthesize matter via the fourier transform. Breit-wheeler synthesis. Look into ontological mathematics.
@TheTruthIsGonnaHurt
@TheTruthIsGonnaHurt Жыл бұрын
*Great Work!* I once heard that the very foundation of our entire universe / multiverse is built by frequency. That everything is created by the harmonics.
@pimposki6232
@pimposki6232 Жыл бұрын
this is true i suppose. i mean, fourier's theorem breaks all complex sound waves as a sum of sine waves and i see no reason for that not to extend to things like radio waves and even the complex movements of matter itself, like the excitation of particles themselves. do note though that i am just an audio engineer and my education in physics at university was mostly regarding acoustics and electronics, and was only a part of the coursework
@jarvis612
@jarvis612 Жыл бұрын
Good job is done! For me, the main reason water looks unusual lies in fact it ignores terrain. Waves do not change direction colliding with obstacles, which makes them look totally unrealistic. I ask author to try to consider some solution (of course, not to make physical simulation of water, but to investigate some trick to add water natural look), if it is interesting for them. Anyway, thank's author for what is already done!
@redredrxd8451
@redredrxd8451 Жыл бұрын
this is terrifyingly beautiful
@jeffcummings3842
@jeffcummings3842 Жыл бұрын
Beautiful, and yes some kind of TTS or voice filter, haha, love the videos, keep em coming! I'm definitely going to try something like this with terrain generation soon.
@simondev758
@simondev758 Жыл бұрын
I love the overall atmosphere here.
@cybernit3
@cybernit3 8 ай бұрын
I believe when the VOID (SPACE) was first created the Tone "OH" was used before the big bang. If you look at the formula for volume of a spheroid (V = 4/3 * pi * r^3); pi = irrational constant which shows KAOS exist from that alone. I guess it is like GOD breath the Tone "OH" and the radii of the void space got larger (like blowing up a balloon)... then eventually there was a big bang. I sound crazy and it is metaphysical; but I feel satisfied with this answer to understand the universe. Thanks for the video showing the power of GPUs... and for teaching me about Vertex and Fragment shaders. take care...
@lyte69
@lyte69 Жыл бұрын
great video, I've always liked to create different worlds using generative techniques by random choice and see the exciting results and play with it, would love to see more.
@Alannnn14
@Alannnn14 Жыл бұрын
Astronaut: Wait, its all sine? Astronaut with a gun: It always has been.
@nextwave319
@nextwave319 Жыл бұрын
hey man, just checked your github, your coding style is Genius! - clarity and organisation.
@thedreamingtraveller8550
@thedreamingtraveller8550 Жыл бұрын
I really love your videos. You do a great job everytime. However, I happen to prefer the procedural graphics videos quite a lot. Do you think you could do something similar for your next video
@CoderSpaceChannel
@CoderSpaceChannel Жыл бұрын
Yes, from time to time I will release a video on this topic
@thedreamingtraveller8550
@thedreamingtraveller8550 Жыл бұрын
@@CoderSpaceChannel Thanks a lot. Looking forward to it
@marcoantonioalonso482
@marcoantonioalonso482 Жыл бұрын
@@CoderSpaceChannel I've seen a video showing a procedural 2D water animation, but the person only shared the source file and didn't explain anything. Could you make a video about it?
@CoderSpaceChannel
@CoderSpaceChannel Жыл бұрын
@@marcoantonioalonso482 yes it is an interesting topic
@darkabstergo5838
@darkabstergo5838 Жыл бұрын
Super nice implementation of the concept of the Fourier series!
@o-manthehuman7867
@o-manthehuman7867 Жыл бұрын
You could probably add in some smoothing, and maybe layer in some cosine with smoothmin to make the terrain less noisy and a bit more realistic
@o-manthehuman7867
@o-manthehuman7867 Жыл бұрын
Or even just blur the heightmap
@walidslimani
@walidslimani Жыл бұрын
AS a math student this is just a little use of the vaste mysterious world of mathematics , there A lot of secrets in this math world , good vid keep up
@slavsquatsuperstar
@slavsquatsuperstar Жыл бұрын
“It’s all sine?” “Always has been.”
@APotatoWT
@APotatoWT Жыл бұрын
That's pretty insane
@kech-agmaio8620
@kech-agmaio8620 Жыл бұрын
Hauntingly beautiful
@Auios
@Auios Жыл бұрын
Awesome work! Off topic but I have been interested in map generation using Wave Function Collapse. I like your video format and I think it could be a cool topic for your channel!
@viniciusleandrodeloi1582
@viniciusleandrodeloi1582 Жыл бұрын
-Wait it's all sine? - Always has been
@0x4849
@0x4849 Жыл бұрын
*laughs in fourier transform* (great vid though ;))
@aiksi5605
@aiksi5605 Жыл бұрын
This channel was like, hand-picked specifically for me lol. Thanks for your work!
@bitpilot79
@bitpilot79 Жыл бұрын
Really nice result. Thanks for sharing!
@electrictrojan6719
@electrictrojan6719 Жыл бұрын
I can't believe you give this away for free
@CoderSpaceChannel
@CoderSpaceChannel Жыл бұрын
it's my hobby to share knowledge for free
@stcpimus
@stcpimus 5 ай бұрын
Hi from colombia: Tnx for this you are awesome.
@LowLevelLemmy
@LowLevelLemmy Жыл бұрын
Wait, it’s all sine function? 🔫 Always has been
@kittel-dev
@kittel-dev Жыл бұрын
Awesome Work!!!!
@ThankYouESM
@ThankYouESM 5 ай бұрын
There's also a way to use PIL filter blend (plus Image rotate) to get any such results incredibly fast.
@blitzwolf4052
@blitzwolf4052 Жыл бұрын
I’ve never realized how much python looks like c++. Thankful I could understand this at all, great work!
@CoderSpaceChannel
@CoderSpaceChannel Жыл бұрын
Python was used to initialize the OpenGL context, but the rest is C-like language GLSL
@XENON2028
@XENON2028 Жыл бұрын
most of the code was in GLSL not in python
@wzafar7099
@wzafar7099 Жыл бұрын
Good video about Law of creativity. Sine wave with Random Noise. Same wave can generate Living beings. Also add distance function to generate more planets, stars and galaxies.
@user-yx5wd5yy6h
@user-yx5wd5yy6h Жыл бұрын
Beautiful!
@abd-yq2up
@abd-yq2up Жыл бұрын
very cool brother !!
@SA-so7jah
@SA-so7jah Ай бұрын
Це дуже круто і цікаво ❤
@dineshvyas
@dineshvyas Жыл бұрын
Subscribed instantly.
@suicraft8395
@suicraft8395 Жыл бұрын
What a great video, really interesting
@cheersqweate4232
@cheersqweate4232 Жыл бұрын
You're cool You can tell you how to make mountains colored (using a gradient). PLEASE
@AJ-et3vf
@AJ-et3vf Жыл бұрын
Awesome video! Thank you!
@meetpatel7683
@meetpatel7683 Жыл бұрын
You are underrated!!
@kylebarvel
@kylebarvel Жыл бұрын
You made planet 9. Good job on this one this inspired me
@md.mizanurrahmanxendpdc.369
@md.mizanurrahmanxendpdc.369 Жыл бұрын
I want to see this 100 times after my exam
@user-zb5ey8qy8o
@user-zb5ey8qy8o Жыл бұрын
Круто! Продолжай ❤
@NetanyahooWarCriminal
@NetanyahooWarCriminal Жыл бұрын
I mean all of reality is wave functions, so it should be possible. but holy cow what a great job, looks amazing
@rupajchowdhury1877
@rupajchowdhury1877 Жыл бұрын
Minecraft: Hold my cubes
@asenvelkov301
@asenvelkov301 Жыл бұрын
I saw your github, uhm, any chance you're bulgarian? After seeing most of ur vids i believe you're some sort of a genius, like how u just know when to apply all algorithmic logic and math, im mindblown
@WeyardWiz
@WeyardWiz Жыл бұрын
It's not immediate. He actually solves these and researched prior to recording. It actually may have taken him a month
@user-xv6ig2yp3z
@user-xv6ig2yp3z Жыл бұрын
Next episode of "trigger your imposter syndrome in less than 10 minutes"
@ciyrotix6240
@ciyrotix6240 Жыл бұрын
Wait, it's all sine? Always has been.
@McSwey
@McSwey Жыл бұрын
And you can actually shape it to your liking with the Fourier transform
@vayunandanakishore6652
@vayunandanakishore6652 Жыл бұрын
Wow.....awesome.....
@CapaneusoftheGnosticLegion
@CapaneusoftheGnosticLegion Жыл бұрын
When you accidently uncover the secrets of pythagorean illuminism and demonstrate the fourier transform as a generative of space and time values.
@Jera2271
@Jera2271 Жыл бұрын
This is a very interesting video to watch even if I don't know anything about coding Out of curiousity, is it possible to build a planet using cosecant, arcsine, and hyperbolic sine?
@engineeredarmy1152
@engineeredarmy1152 Жыл бұрын
Awesome work!
@halite4116
@halite4116 Жыл бұрын
Nice video, very impressive ! Really like your videos.
@astrah982
@astrah982 Жыл бұрын
I would generate and hold the values on the CPU side as then you have access to physics. If you have a shader do it you’re only displaying graphics.
@pvic6959
@pvic6959 Жыл бұрын
If you make a planet based the Sine function, is it a Sin?
@CoderSpaceChannel
@CoderSpaceChannel Жыл бұрын
To the music: Pet Shop Boys - It's A Sin
@SENTRY456123
@SENTRY456123 Жыл бұрын
@@CoderSpaceChannel everywhere I'm going to, it's a sin
@mohamedhamdi366
@mohamedhamdi366 Жыл бұрын
man you are cool
@7guitarlover
@7guitarlover Жыл бұрын
This is awesome ! Subscribed ! Can you suggest some resources / books to read more about such stuff. Looking fwd for more such videos.
@CoderSpaceChannel
@CoderSpaceChannel Жыл бұрын
I guess this is the best resource: iquilezles.org/
@7guitarlover
@7guitarlover Жыл бұрын
@@CoderSpaceChannel Thankyou !
@NighthawkRPL
@NighthawkRPL Жыл бұрын
how to scare a pre calc or trignometry student:
@Veptis
@Veptis Жыл бұрын
I am learning shadercode by working in language model evaluation for shader code. And I have seen various implementations for noise. But never reall understood the real semantics behind it. Evaluating if the model can generate the fitting type of noise for a specific program might be a good benchmark task.
@BombasticTom492
@BombasticTom492 Жыл бұрын
planet cos next
@skahrnunend9232
@skahrnunend9232 Жыл бұрын
Could u do it in the Godot engine with the python-like GDscript :), I could donate a little bit for it, I really don’t know what to do with it yet, and I am a poor game dev student now. But would be really exiting and thrilling to learn from your tutorial in Godot and see the result and be able to populate this SINE planet with Npcs and so on. You are the John Avon of python. Best regards :)
@CoderSpaceChannel
@CoderSpaceChannel Жыл бұрын
I'm not a Godot expert but try just applying this fragment shader to the Viewport (and don't forget the uniform variables)
@algodude8713
@algodude8713 Жыл бұрын
Godot currently does not support using GLSL shaders so you would have to rewrite it in the Godot shader language. It's very similar to GLSL so it shouldn't be too difficult.
@nocturne6320
@nocturne6320 Жыл бұрын
The entire terrain is rendered in a shader, you shouldn't need to write a single line with GDScript, only port the shader over to Godot's shading language
@skyneon-8500
@skyneon-8500 Жыл бұрын
I like you videos
@Gangstar-nd9fm
@Gangstar-nd9fm Жыл бұрын
Hello. Can you please tell me how to master moderngl as well? I usually use it for my game. With grief in half I learned to draw textures in 2D. Now I want to learn how to do 3D and draw graphics. Before that, there were no cases with OpenGL. Maybe i need to start somewhere else. Can you provide links to sources on your subjects?
@CoderSpaceChannel
@CoderSpaceChannel Жыл бұрын
maybe this will help: kzfaq.info/get/bejne/m7B0fNZ3r7SYf4U.html
@Gangstar-nd9fm
@Gangstar-nd9fm Жыл бұрын
@@CoderSpaceChannel Thanks for the quick response! Yes, I think that's what i need! Thanks a lot!
@alexandrohdez3982
@alexandrohdez3982 Жыл бұрын
what a great video congrat 👏👏👏
@ENRGguy
@ENRGguy Жыл бұрын
Who didn't understand: he made the sea waves from sine wave, and rocks generation with sine wave.
@Clepy
@Clepy 9 ай бұрын
Man u deserve a sub
@linux_devs
@linux_devs Жыл бұрын
Next video making sinecraft
@fench1234567
@fench1234567 Жыл бұрын
So is using sine in modern imagery and tech just a "sine of the times"?
@DarryanDhanpat
@DarryanDhanpat Жыл бұрын
Fourier is quaking
@c14662
@c14662 Жыл бұрын
if you press 1,2,3 or 4 on your keyboard he always initializes those timestamps with the word "function"
@diegohiroshiysusvideos2909
@diegohiroshiysusvideos2909 Жыл бұрын
These Pipeline rendering GPU system are beautiful. uwu Currently, I'm working in the Lumen illumination system.
@JustAPokemonCommentingOnVideos
@JustAPokemonCommentingOnVideos Жыл бұрын
good job 👍
@quinnsine1650
@quinnsine1650 Жыл бұрын
Nice!
@CaptianTitan
@CaptianTitan Жыл бұрын
If the terrain was a bit smooth you could navigate it easily In-game
@markusmiekk-oja3717
@markusmiekk-oja3717 Жыл бұрын
One thing I wonder about with the use of octaves in terrain generation: wouldn't using a stretched or compressed octave (something like 2.01 or 1.997 somesuch) give a slightly less predictable "waveform"? How about adding a second, stretched harmonic beyond that? (3.02 or somesuch)? Everywhere I've seen this, it's always been octaves, but ... from a world-generating perspective, it seems to me that just fudging that factor of two a bit would improve the outcome. Is there any particular reason exactly 2 is favored?
@vialomur__vialomur5682
@vialomur__vialomur5682 Жыл бұрын
wow! love it
@jennycotan7080
@jennycotan7080 Жыл бұрын
Just like some mad modern Taoist (and maybe some of those Lady Gaga's Chromatica fans) thinks, a world where Sine is the god-dess which made up everything! Maybe on the water, we can have travelling sinusoids, on different freq's and travelling in their different speed? And, I think that the textures of the "rolling hills" seem to be a bit too... unnatural. Can we use just 2-4 rather low freq's of sinusoids, and a bit more rather high freq's, with no annoying, less important middle-freq ones? Maybe that'll be throretically easy, for splitting the terrain wave function (Pun intended!) into two of them, one for the basic terrain shape, the another one makes the texture? (Fun fact: Weierstrass function, that fractal-like one, is also based on sinusoids and resembles mountains better than those you displayed here! ) Maybe that can help you create a more realistic and wild sinusoidal land! Sadly I'm not an experienced programmer who can just do some impractical simple programming on Python and Mathematica scripts.
@Bizarro69
@Bizarro69 Жыл бұрын
So we're living in a sinelation 😏
@WeyardWiz
@WeyardWiz Жыл бұрын
4:04 not hashicorp terraforming of course 😉
@rustamtermenusmack7165
@rustamtermenusmack7165 Жыл бұрын
Voxel Cone Tracing + Ray Marching in python
@yxngboypolo
@yxngboypolo Жыл бұрын
What would happen if you collectively switched every sine function to tangent?
@suhadayunus2965
@suhadayunus2965 9 ай бұрын
ask for the script, min🙏🙏
@theokenric
@theokenric Жыл бұрын
Born in Sine
@luminance69
@luminance69 Жыл бұрын
I genuinely cannot tell if you use TTS or just have a really weird mic
@WeyardWiz
@WeyardWiz Жыл бұрын
Its TTS, hes Bulgarian
@SkyFly19853
@SkyFly19853 Жыл бұрын
New video! Nice!
@dickheadrecs
@dickheadrecs Жыл бұрын
reminds me of that bonus mode in microsoft excel
@samriddhsinha6492
@samriddhsinha6492 Жыл бұрын
When a coder gets a Math Project ..
@tonym5857
@tonym5857 Жыл бұрын
👏👏👏👏👏
@LeiffNathanAMendoza
@LeiffNathanAMendoza 7 ай бұрын
GREAT 🫣🥳
@doltramir
@doltramir Жыл бұрын
Why not also use noise to shift coordinates a bit, so that the pattern would be even less visible, or just disappear entirely?
@kungfooman
@kungfooman Жыл бұрын
"How I Wrote This Comment with SINE"... somewhere in some computer system
@swag_designs5470
@swag_designs5470 Жыл бұрын
Amazing
@yolamontalvan9502
@yolamontalvan9502 8 ай бұрын
The Planet Of The Sines.
@coolbrotherf127
@coolbrotherf127 Жыл бұрын
What kind of real time performance does this project get? Does it only render screen space geometry or culling hidden polygons?
@CoderSpaceChannel
@CoderSpaceChannel Жыл бұрын
170 fps rtx 3070 mobile. Only two triangles are used for rendering (4 vertices)
@cookiepolice2086
@cookiepolice2086 Жыл бұрын
Where do you find how to use moderngl I tried to google but none of the results were helpful
@BurrritoYT
@BurrritoYT Жыл бұрын
Wait, it's all a sine? Always has been.
@basicallybrand
@basicallybrand Жыл бұрын
how does it run so smooth for you? python is so slow for me
@Alexander-lg2yo
@Alexander-lg2yo Жыл бұрын
Damn Ezreal
@Raoul1808.
@Raoul1808. Жыл бұрын
Sine is overrated, let’s use cosine instead. Jokes aside, it’s pretty impressive what you can do with just a simple sine function
@Jachii9
@Jachii9 Жыл бұрын
omg this guy made the world?
@yeetsarjn3293
@yeetsarjn3293 Жыл бұрын
Wait, it’s all a sin function?
@Kapcpa
@Kapcpa Жыл бұрын
Idea for next video: 2d line of sight using py opengl?
What is Mode 7? Let's code it!
8:03
Coder Space
Рет қаралды 41 М.
Naming Things in Code
7:25
CodeAesthetic
Рет қаралды 2,1 МЛН
Matching Picture Challenge with Alfredo Larin's family! 👍
00:37
BigSchool
Рет қаралды 47 МЛН
🩷🩵VS👿
00:38
ISSEI / いっせい
Рет қаралды 27 МЛН
Unveiling my winning secret to defeating Maxim!😎| Free Fire Official
00:14
Garena Free Fire Global
Рет қаралды 10 МЛН
How to Make a First Person Shooter like Wolfenstein 3D
28:35
Coder Space
Рет қаралды 43 М.
How do Video Game Graphics Work?
21:00
Branch Education
Рет қаралды 3,5 МЛН
I Made a Graphics Engine (again)
8:27
Zyger
Рет қаралды 168 М.
I made this 3D game with ONLY code
9:06
Carter Semrad
Рет қаралды 437 М.
Giving Personality to Procedural Animations using Math
15:30
t3ssel8r
Рет қаралды 2,5 МЛН
ASMR Programming - Spinning Cube - No Talking
20:45
Servet Gulnaroglu
Рет қаралды 3,8 МЛН
Making FPS Games in Python
8:52
Sacko
Рет қаралды 296 М.
I Made A Blob Shooting Game With Ray Marching
13:33
Visionary 3D
Рет қаралды 39 М.
How do non-euclidean games work? | Bitwise
14:19
DigiDigger
Рет қаралды 2,4 МЛН
Matching Picture Challenge with Alfredo Larin's family! 👍
00:37
BigSchool
Рет қаралды 47 МЛН