All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

Building 3D Environments with HTML and CSS Transforms: Advanced Techniques for Lighting, Shadows and Collision Detection

By

razodactyl

9mo ago· 8 min readen

Summary

A developer documents their experimental project creating a 3D environment using HTML elements and CSS transforms, featuring advanced techniques like complex models, realistic lighting, shadows, and collision detection. The article serves as a technical guide showing how CSS 3D transforms can be pushed beyond basic demonstrations to create immersive 3D worlds.

Key quotes

· 3 pulled
The demo was a technical showcase of what could be achieved with CSS at the time but I wanted to see how far I could push things
over the past few months I’ve been working on a new version with more complex models, realistic lighting, shadows and collision detection
The geometry of a 3D object is stored as a collection of points (or vertices), each having an x, y and z property that defines its position
Snippet from the RSS feed
An experiment in creating a 3D environment using HTML elements and CSS transforms featuring lights, shadows and collision detection.

You might also wanna read