I actually thought a flatshaded mesh was easier to render. Because as you can clearly see the vertices, I assumed you didn’t have to “smooth” them and that this “smoothing” will mean more vertices.
Seems like this is quite the opposite. I you can explain me why exactly, I would love to read it!
We need to add lighting normals (and re-aim the old smooth-shaded normals)… to get flat-shaded. Unfortunately, only one normal per vertex is allowed, so we must add more vertices… in order to get more normals.
Those added flat-shaded vertices… are ALWAYS added in the same positions as previous smooth-shaded vertices. Some/many vertices get “doubled-up” and “tripled-up”, etc.
“Flatties are Fatties” Fascinating, huh? All invented by famous rendering couple… Phil Phong and Betty Blinn. (not)
Impressive how fast the number of vertices can grow just for a flat shaded cube!
It’s been almost three years now that I start using babylonjs for the first time. It was for a strategic game I didn’t know where it would go (and I still don’t know). And since I continue to use Babylonjs in my daily life for a new project I will soon share with you all.
But this is awesome to realise that when you think you know the library/technology/algorythm,… Well indeed you don’t! So many things to learn again, this is exciting!
Yeah, I agree. What is cool about JS and BJS… and maybe all things in life… is that simple things can be beautiful, fascinating, and fun. Nice scenes don’t always require being knowledgeable. More times, great scenes require being creative.
I remember one playground from long-ago… mostly stolen code… but it was one of my first “holy crap… I DID THAT?” self-esteem-boosting moments.
I love that puppy. Not because it is a work of art or tech… but because of the feelings it brings me. I sort of re-live that “holy crap, BJS IS SO COOL!” -moment… every time I see it. The scene becomes… not a “show’n’tell” scene (even though I just did a show’n’tell for you), but… a best friend and confidant.
It is like a trinket that hangs on my key chain, and if I had a 3D printer, it might become a REAL key-chain trinket. heh. [shrug]
I don’t know how old you are, P… but… did you do any “time” with VRML? It was a coal-powered steam-driven 3D library… from the 1940’s. Still precious to me and some of us old geezers.
My point is… simple is sometimes wonderful. Being a noob… is a time to be cherished and not rushed-to-exit. A different “flavor” of creativity happens… when the scene programmer is mostly lost. I will ALWAYS be a “noob” because… I like it. Love it. Possibly addicted to it. Likely unrecoverable / incurable.
Old old projects… yeah, maybe they never impressed others or made big money, but they can have TONS of self-meaning and self-warmth. Pretty cool phenomenon. Visual stimuli… mixed with reminiscing. It is as-delicious as ANY ice cream treat.