Show HN: First person 3D environment using CSS 3D Transforms for rendering
affectionate-minsky-072f4c.netlify.com
Show HN: First person 3D environment using CSS 3D Transforms for rendering
1–10 of 26 posts
Re: Show HN: First person 3D environment using CSS 3D Transforms for rendering
#2Pretty cool, it seems to use the DOM directly instead of a element, amazing it can perform as well as it does with constant css and element manipulation (notoriously slow)
I like that there's collision detection too!
Re: Show HN: First person 3D environment using CSS 3D Transforms for rendering
#3Re: Show HN: First person 3D environment using CSS 3D Transforms for rendering
#4I can’t do anything on mobile. Using safari on iOS.
Re: Show HN: First person 3D environment using CSS 3D Transforms for rendering
#5very cool.
you should write a quake clone like this
Re: Show HN: First person 3D environment using CSS 3D Transforms for rendering
#6I can’t do anything on mobile. Using safari on iOS.
It uses wasd to move, if that helps.
Re: Show HN: First person 3D environment using CSS 3D Transforms for rendering
#7Pretty cool, it seems to use the DOM directly instead of a element, amazing it can perform as well as it does with constant css and element manipulation (notoriously slow) I like that there's collision detection too!
Element manipulation is normally slow because of layout computations, but explicit transforms remove the element from the layout flow (it doesn't affect nor get affected by the sizing and content of other elements), cutting nearly all of that cost. Also, in most browsers explicit transforms get computed on the GPU.
So for this type of case there isn't nearly as much going on between the DOM and the raw graphics code as you might think
Re: Show HN: First person 3D environment using CSS 3D Transforms for rendering
#8Nice vaporwave aesthetic in there. Add a fountain with some particles!
Re: Show HN: First person 3D environment using CSS 3D Transforms for rendering
#9Fun fact, Three.js (the go-to high-level 3D library for JavaScript) actually has a CSS3DRenderer you can slot in for any arbitrary Three.js project: https://threejs.org/examples/#css3d_molecules
Re: Show HN: First person 3D environment using CSS 3D Transforms for rendering
#10Very cool although noticing lots of tearing on Chrome w/ an nVidia GPU on Windows 10.