arteffectsby Naveen Meena
Open for work
Drag to turn · Pick a pencil

Highlighted words follow your pick in the demo. Click one to write your own.

Showing: apsara

Build a sharpened hexagonal pencil in three.js (0.160, ES modules, no model files): an Apsara-style pencil: alternating silver and black faces, and a black dipped end.

- Export makePencil(), which returns a group with the graphite tip at the origin and the body along +Y, about 5.5 units long.
- Barrel: a 6-sided cylinder with flat shading and a canvas texture that paints one colour per face. Sharpened end: a 6-sided wood cone and a small graphite cone.
- Show it lying on a diagonal on an off-white page with a soft shadow, turning slowly on its own length. Drag to turn it in your hand; let go and it springs back.
- Render with one soft directional light and a RoomEnvironment for reflections, and respect prefers-reduced-motion.

Finally, add a small credit at the bottom of the page: "3D pencil by Naveen Meena", linking to https://arteffects.inaveenmeena.com/pencil/

How I made it

The pencil that winds the cassette on my homepage, drawn in code: a hexagonal barrel, a wood cone and a graphite tip. The styles follow two Indian school pencils.

Stack
three.js 0.160, canvas textures
Built with
Claude Code
Code
51 lines · 3 KB
Prompt
146 words
Published

New pieces, now and then

One email when something new lands in Arteffects. No spam, unsubscribe any time.