Simple Grass Simulation
Vložit
- čas přidán 3. 07. 2020
- C++ grass simulation using SFML for Graphics. It is an experimental code which is not optimized nor beautiful, I just wanted my grass.
Github github.com/johnBuffer/GrassSi...
Music used freepd.com/music/Spring%20Chi... - Věda a technologie
The deterioration is pretty much my haircut after 3 months of quarantine.
What
@@victorrandall5088 THE DETERIORATION IS PRETTY MUCH MY HAIRCUT AFTER 3 MONTHS OF QUARANTINE
@@duffman7674 I can see what quarantine has done to your head
amazing! How long have you been programming with C++?
~7 years I would say
@@PezzzasWork holly c++
@@PezzzasWork hed dude can you show us how do you do this i learn c++ a little bit but i can not do this type of things
@@blackburnmichelson6189 well I would say that's what programming is about. You need to find solutions to the problems you want to solve. You simply need to train and at some point things such as this will be easily accessible to you.
@Animese7en holy fucker
I love the music - it somehow feels perfect for this
Your video showed up in my recomendations and i can't stop being amazed by your work
the deterioration part just seemed cruel :(. Very good looking tho
They seem to be a little bit too elastic (returning to their rest position). If you want to create a simulator I think you should make them a little bit less too elastic. Also in the part where you ake them mostly plastic, they should slowly return to the rest position, at least mostly. Don't get it wrong, I really like this kind of anime-like grass, but you called it "simulator" :)
Keep up the good work!
Yes that's true. I am currently trying to find the right parameters to better fit reality. The initial aim wasn't to create a very realistic result but I can't find a better word than "simulation" :/
@@PezzzasWork of you want to go further in the study I'd recommend you to observe a real grass. Otherwise, it's already a good result, from a stylistic point of view :)
@@PezzzasWork add another less elastic node in-between each existing node, this will simulate real grass better.
@@GiacomoFurlan bro told him to touch grass
That's really cool. More games need to have this.
Does the physics/morphology work like springs or something, where you would have the damping coefficient and stuff?
It's torque based, each join tries to maintain a certain angle :)
looks like the grass is made of rubber in my opinion..
@@iCore7Gaming Do you think it's too stiff?
Now that you mention it, maybe each strand might need more joints to let them have more degrees of freedom. But that might cost a lot of computational power.
@@johnlime1469 I think it would look better if the base of the stalks moved, since currently as It looks, the base is entirely stiff and you only have the top two segments moving. I think the Base should have alot less play than the other parts, but it not moving at all is something I noticed.
Games probably don't have it because it is way too expensive to be computing for these blades of grass vs a mesh that contains many stalks in one and doesn't majorly sacrifice the visual quality. It still is very cool.
I'm stoned rn and this is so entertaning right now xD
Btw: good job, that's incredible xD
Lol same here
That’s Mind blowing!
This is amazing!
Haha description makes it even better.
Any tips on starting with physics and simulation? A book you can reference or something?
I am convinced that this is actually the grass "on the other side".
boys playing with their little friend for the first time be like: 0:06
omg
ohhhhhh no no no no no no I hope this isn’t what I’m imagining
Its a visual treat.❤️
You alway have these amazing things wow
Does the deterioration correct itself eventually? Like through growth grass will eventually return to shape
Honestly the video's great but it's outshined by the music.
It's just so happy :)
this is really cool, i would love to see this being used on a game like zelda
Mr Krabs: So... You've brought an army of grass?
Nice simulation Great work!
Now that is some epic grass
This should work with fur as well!
finally i can touch some grass
It's soo fluffy!! ^-^
Ahahahaha, well chosen background music!
Lovely song
The grass correcting itself should be more like a pendulum under gravity, with the only difference being that the gravity is upwards.
Awesome, i love it !
@Pezzza's Work what kind of connection is between parts of the grass blade, I can't figure out way how to simulate something similar. Please someone help
Very cool, man
I just kept thinking "Crop circle!!!". Nice sim.
Absolutely glamorous!
I still wonder...how do you do graphics in C++? I can't find stuff past the console and I'm bored of it.
basic non-gui stuff is supported from standard library ("std") in c/c++ and other programming languages (printing to a console etc)
Other things that are varying on different operating systems is provided via libraries (.dll, .so)
If you're on windows you can draw simple stuff with "GDI api" or you need to learn hard stuff like "open gl" to draw 2D or 3D graphics. There's libraries that simplify complex "open gl" and provide easy to use functions.
@@SirusStarTV Thank you!
All the "Beginner to expert" C++ courses I took just went variables, arrays, OOP, pointers and stop. All of it was just black and white, and I just couldn't believe that all games were just very very detailed consoles.
@@andreiiaz2097
If you're interested in game development try an engine.
Engines will manage the rendering process for you so its less of a concern, and have lots of visual representations for things like what the player will see to make things easier.
If you just want to learn how things like rendering work, then yea OpenGL is fine but will be quite challenging if you're still learning the basics. Can also check the description for the library used in the video, which is much easier to use.
Amazing. Now you can make a Crop Circle Simulator :D
pretty cool. one thing i would do is add more joints and make it so the base can also move
Interesting and inspiring
thank you for sharing 🎊
Pure gold.
The only thing that bothered me is that the upper parts don't effect the parts below, but it looks really good
Programming power is amazing
A thousand green spider legs, the Arachnophobics worst nightmare!
that's a good music :)
pretty cool
Hi ur simulation is so cool! I’m wondering, and this is a noob question, how do u go about programming this? What libraries do u use for the visuals. Like colors. How do u display the image? I’m used to python and c# so forgive my question. Again awesome video!
you use math to define a single strands constraints
sfml used in c++, can be used to make games etc.
check description
very cool
Looks more like green blades of metal than grass, but still very cool
I like it.
impressive!
Finally, virtual grass so I can stay inside forever. Fuck real life, who needs that.
Splendid
I am watching Grass Grow and its quite entertaining. Next do wet paint on a white wall
Awesome!
Man , could you help with giving sources you read / got the formulas from , I really would like to make something similar with javaFX!
i like grass
Finally I can touch grass
An easy alternative would be to go touch some grass, but who does that?! This would be way more fun!!!
It’s so sick when people go bit by bit. I think the number of joints needs to equal to number of segments where each segment begins with a node. Then the bottom half can move and be all slick
Wow just wow
u just wanted ur grass and u get it. +respec
now they just need to interact with each other.
Uncontrollable urge to shave.
Awesome, but it looks a lot more like green hair than grass, the movement of the blades are very violent and the blades are kind of thin. It's a good simulation but that ain't no grass.
this episode of it's always sunny is a little confusing
You should have some rigidity in blades joints so that they don't just rotate infinitely while their joints stand still. It kinda takes away the effect
When's the last time you touched grass?
cool
POV: this is in your recommended
and you don't even know how to write Hello World
This is awesome but it feels more like hair than grass, especially when you let it go and it waves around, grass is more stiff
Wow 😮
make c++ tutorial and teach us how you do this simulations
noice
There they touched grass
"i just wanted my grass" xD
WOW
"touch some grass"
Me:
so one blade is just a springy triple penudlum?
Its nice, but don't you think that real grass moves less? Not so "bouncy"...
However its pretty cool !!
another thing i found that i'll never be good at
Hey admin, I would like to advice you a song. 'order from chaos' from max cooper. I wish I could watch the clip from your eyes.
The grass is too springy, increase the dampening and it'll look better.
“go touch some grass”
Why are my eyes hurting
maybe i can eat *blades of grass*
jelly grass
needs a bit of variation on blade length
reminds me of dan-bal
The grass is always greener on the other channel.
This is definitely gonna be recommended to everyone in 8 years
How the heck do you do this?
w
grass
Looks like a wool. Not a grass. But it's very nice
What C++ I have to learn to be able to do these graphical things lol
You can do this with Java Script in a browser!
@@SirusStarTV Wow that's cool
this is more like a toothbrush
sure but grass isnt that bouncy. pretty good tho, if the bounciness was toned down it'd be more realistic
Bro why don't we see these physics in games? How much ram does it need alone to work? If the load is laughable, this should be used universally in games.
maybe because it's too heavy for a computer running this (with more grass) with other stuff in a game
Grass look more like hair simulation
How am i supposed to touch this?
Maybe i could eat these