spite / THREE.MeshLine

Mesh replacement for THREE.Line
MIT License
2.14k stars 381 forks source link

Two additional demo files #38

Open theo-armour opened 7 years ago

theo-armour commented 7 years ago

@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

MeshLine Experiments R1

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

spite commented 7 years ago

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.

theo-armour commented 7 years ago

@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

theo-armour commented 7 years ago

@spite

Well, I double-clicked a bit and found lots of fun new ways of doing things. Details in a day or two.

mkarnicki commented 6 years ago

@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? :)