Lumon-Industries / Macrodata-Refinement

Marcrodata Refinement
http://lumon-industries.com/
93 stars 12 forks source link

100% moment #5

Open shiffman opened 2 years ago

shiffman commented 2 years ago

Reference: https://twitter.com/mradamscott/status/1509698150830813192

kfahn22 commented 2 years ago

I have added some color to the terrain, but I am not completely happy with the results. (The peaks are darker than the rest of the mountains- I think it should be the reverse but not sure how to do that). If we could get the vertices into the frag shader (like you did with the blobs), I think I could do a better job. I tried to figure it out yesterday, but didn't manage. I am also working on creating the terrain directly in a shader. I did get one, but rather jagged and scary looking.https://editor.p5js.org/kfahn/sketches/E1yK-1yb2

shiffman commented 2 years ago

Oooh, i like this a lot! I think it looks better and runs faster with noStroke() added to the terrain. What do you think? I might also make it sillier and more rainbow-y :)

kfahn22 commented 2 years ago

It does look a lot better with noStroke()! ( I added it initially but must have put it in the wrong place b/c it took away the terrain, but I just added it again and much better.) Rainbow and clouds definitely a good idea. I still think the gradients are wrong and I can probably create a shader that will do a better job. Big learning curve, but there is a lot more color control in a shader, so I am becoming a fun.

kfahn22 commented 2 years ago
kfahn22 commented 2 years ago

I figure you have everything all set now, but I finally finished a semi-decent version of mountains in a shader. (It was a crazy day -- starting when my 16 year old cocker spaniel woke me up after being sprayed with a skunk!) https://editor.p5js.org/kfahn/sketches/bBjspsB-T

shiffman commented 2 years ago

This is incredible!!!! I don't think I will ever be done with this. Plan on working on it all the way until season 2 🔢 🧇

If you want to figure out how to incorporate it feel free otherwise I hope to take a crack at is as well!

kfahn22 commented 2 years ago

FYI, I have made a very slight modification so that the clouds are a bit more defined.

kfahn22 commented 2 years ago

Inigo Quilez released a new YouTube video on Sunday explaining his terrain generation process. I have been playing around with his code--trying to simplify without breaking it and changing it so it doesn't violate his copyright. (He did link to it in the description saying the viewer could edit the code, so I think it is OK. I try to be very careful with copyrights.). At any rate, here is a first pass -- what do you think? I still need to figure out how to do the clouds and rainbow.

https://editor.p5js.org/kfahn/sketches/eOLluG6sU