THREE.MeshLine
THREE.MeshLine copied to clipboard
Two additional demo files
@spite
I'm enjoying MeshLine. Thanks for this effort.
I have built two simple demos that could help new users start incorporating MeshLines into their code
MeshLine Basic Demo R1
- Simple demo with quite minimal code just to get a most basic MeshLine up and running in your browser
MeshLine Experiments R1
- Exploring the possibilities of MeshLine in more detail
- Every example is a simple short function you could copy and paste into your own code
- There's a ton more fun things that could be added...
The code in the second demo has a quirky/highly personal style. If there is interest in adding this file then I can 'normalize' the code.
Theo
Thanks, @theo-armour! looking into these, after all this time ☹️ They look awesome, specially the Experiments one! Would it be possible to update the resolution uniform on window resize? It looks like it's fixed to 1:1 aspect ratio and the lines look all distorted without it.
@spite Thank you for the kind words.
Would it be possible to update the resolution uniform on window resize?
Sure. I will do this later today. I will follow the viewport setting you are using in recent experiments.
BTW, if there is a 'house style' you feel that I should follow, then point me in the right direction and I will update the code.
Alternatively, I am updating the way I code these days. My new favorite style is based on
https://www.w3schools.com/howto/
It's all plain vanilla, beginner JavaScript. Of course, must also follow Mr.doob Coding Style.
I will be happy to update to follow what you feel appropriate,
BTW2, clickToRlease gets better and better. Don't stop!
Theo
@spite
Well, I double-clicked a bit and found lots of fun new ways of doing things. Details in a day or two.
@theo-armour Hey man, very cool examples! I'm looking into MeshLine as well and was wondering if I could use it for adding in segments as well. You mentioned "double clicking a bit" and got me wondering what you had on your mind? :)