5 ms·
https://www.reddit.com/r/sveltejs/comments/11y8flg/i_made_a_3d_chess_board_integrated_with_lichess/ https://www.reddit.com/r/sveltejs/comments/11y8flg/i_made_a_
by andoando 2y ago
https://www.reddit.com/r/sveltejs/comments/11y8flg/i_made_a_3d_chess_board_integrated_with_lichess/ https://www.reddit.com/r/sveltejs/comments/11y8flg/i_made_a_...
https://github.com/ando818/chess2 https://github.com/ando818/chess2
Codes probably bit messy but you can see the rendering of the board and pieces here.
https://github.com/ando818/chess2/blob/main/src/routes/BoardScene.svelte https://github.com/ando818/chess2/blob/main/src/routes/Board...
I found some 3D model files that came with the board and pieces in one gltf file, which threlte makes easy to extract out the nodes. Svelte reactivity also makes it super easy to move/position/scale/animate things, its just plain JS!
I was going to make a "Chess lounge" in the next iteration where you could walk around and watch other people playing in a cafe, but my interests moved on.
- langcss 2y agoThe flat white (?) looks great. Looks exactly how I make it, and I even have a cup like that.