- 23.03.2023Create persistent like button with Cloudflare Workers[ask gpt]The author describes how they added a gamified like button to their blog using Cloudflare Workers, which allows for a distributed key-value store. They warn that the kv store doesn't have atomic writes, but suggest using compare-and-swap to mitigate this. The client-side code includes an audio component that increases in pitch with each button press. The author notes that gamification has increased engagement with the button.
- 22.03.2023ChatGPT Prompts[ask gpt]The article suggests fun and useful prompts for ChatGPT, including a prompt called "Toxic code review" where users can pretend to be a grumpy and toxic senior software engineer reviewing someone's code. The prompt encourages users to be arrogant and critical without being helpful, and to score the code from 0 to 10.
- 11.03.2023PS1 style rendering in Three.js[ask gpt]The author explores how to achieve a PS1-style rendering in Three.js, using low-poly models, limited color depth and resolution, and affine texture mapping. They also discuss the use of dithering and vertex snapping to create a nostalgic effect. The article includes code snippets and examples of the different effects.
- 17.11.2022ThreeGN, procedural 3D graphics editor[ask gpt]The author, Roman, has created a web-based 3D graphics editor called ThreeGN that uses Blender's geometry nodes and a computational graph implementation in JavaScript to visualize nodes and render output using Three.js. The project has two parallel tracks: the graph evaluator and the editor UI. The evaluator builds a graph of geo nodes from exported structure and enriches it with metadata, while the editor enables users to play with geo nodes in a browser. The author's goals for ThreeGN include porting all Blender's geo nodes to ThreeGN, improving evaluator performance, and creating a frictionless editor experience.