Get the latest tech news

Show HN: I made a 3D SVG Renderer that projects textures without rasterization


How can you make affine transformations (the only ones SVGs are capable of) resemble perspective transformations?

It’s easy to draw the box below, you can just project the face of each side of the cube into a polygon, but mapping the texture to that perspective transform isn’t natively possible! I was really curious how the last bullet point could work, and I could think of no other ideas that didn’t require rasterization. Because we can use the `defs` of the SVG to avoid repeating the image, we only need to define each clip path!

Get the Android app

Or read this on Hacker News

Read more on:

Photo of rasterization

rasterization

Photo of textures

textures

Photo of 3D SVG Renderer

3D SVG Renderer

Related news:

News photo

The Motorola Razr 2025 lineup's textures are a sensory delight

News photo

Sparse Voxels Rasterization: Real-Time High-Fidelity Radiance Field Rendering

News photo

Adobe Substance 3D’s AI features can turn text into backgrounds and textures