[{"data":1,"prerenderedAt":463},["ShallowReactive",2],{"navigation":3,"/experiments/coffee-smoke":150,"authors":329},[4],{"title":5,"path":6,"stem":7,"children":8,"page":149},"Experiments","/experiments","experiments",[9,13,17,21,25,29,33,37,41,45,49,53,57,61,65,69,73,77,81,85,89,93,97,101,105,109,113,117,121,125,129,133,137,141,145],{"title":10,"path":11,"stem":12},"Array of cameras","/experiments/array-cameras","experiments/array-cameras",{"title":14,"path":15,"stem":16},"Brickelangelo David","/experiments/brickelangelo-david","experiments/brickelangelo-david",{"title":18,"path":19,"stem":20},"Basic Brownian distribution","/experiments/brownian-distribution","experiments/brownian-distribution",{"title":22,"path":23,"stem":24},"Porsche 911 Car Showcase","/experiments/car-showcase","experiments/car-showcase",{"title":26,"path":27,"stem":28},"Coffee Smoke","/experiments/coffee-smoke","experiments/coffee-smoke",{"title":30,"path":31,"stem":32},"Cube Boy Dancefloor","/experiments/cube-boy-dancefloor","experiments/cube-boy-dancefloor",{"title":34,"path":35,"stem":36},"Cult of the lamb 🐑","/experiments/cult-of-the-lamb","experiments/cult-of-the-lamb",{"title":38,"path":39,"stem":40},"Dancing blob","/experiments/dancing-blob","experiments/dancing-blob",{"title":42,"path":43,"stem":44},"Fireworks Shader","/experiments/fireworks-shader","experiments/fireworks-shader",{"title":46,"path":47,"stem":48},"Galaxy Generator 🪐","/experiments/galaxy-generator","experiments/galaxy-generator",{"title":50,"path":51,"stem":52},"Gelatinous Cube","/experiments/gelatinous-cube","experiments/gelatinous-cube",{"title":54,"path":55,"stem":56},"Glass/Plastic Material","/experiments/glass-material","experiments/glass-material",{"title":58,"path":59,"stem":60},"Grainy Liquid Blobs","/experiments/grainy-liquid","experiments/grainy-liquid",{"title":62,"path":63,"stem":64},"Haunted House","/experiments/haunted-house","experiments/haunted-house",{"title":66,"path":67,"stem":68},"Phone with HTML inside","/experiments/html-phone","experiments/html-phone",{"title":70,"path":71,"stem":72},"Low Poly Planet","/experiments/lowpoly-planet","experiments/lowpoly-planet",{"title":74,"path":75,"stem":76},"Magical Marbles","/experiments/magical-marbles","experiments/magical-marbles",{"title":78,"path":79,"stem":80},"Nuxt Stones","/experiments/nuxt-stones","experiments/nuxt-stones",{"title":82,"path":83,"stem":84},"Particle Pumpkin Shader","/experiments/particle-pumpkin","experiments/particle-pumpkin",{"title":86,"path":87,"stem":88},"Particles Morphing","/experiments/particles-morphing","experiments/particles-morphing",{"title":90,"path":91,"stem":92},"Plexus Particles","/experiments/plexus-particles","experiments/plexus-particles",{"title":94,"path":95,"stem":96},"Portal Journey","/experiments/portal-journey","experiments/portal-journey",{"title":98,"path":99,"stem":100},"Wizard's Potion Classroom","/experiments/potions-classroom","experiments/potions-classroom",{"title":102,"path":103,"stem":104},"Rapier Basketball","/experiments/rapier-basketball","experiments/rapier-basketball",{"title":106,"path":107,"stem":108},"Rapier Vehicle","/experiments/rapier-car","experiments/rapier-car",{"title":110,"path":111,"stem":112},"Rapier Object Clump","/experiments/rapier-object-clump","experiments/rapier-object-clump",{"title":114,"path":115,"stem":116},"Rapier Wrecking Ball","/experiments/rapier-wrecking-ball","experiments/rapier-wrecking-ball",{"title":118,"path":119,"stem":120},"Repulsion Effect","/experiments/repulsion-effect","experiments/repulsion-effect",{"title":122,"path":123,"stem":124},"Shadertoy Museum","/experiments/shadertoy-museum","experiments/shadertoy-museum",{"title":126,"path":127,"stem":128},"Space Game","/experiments/space-game","experiments/space-game",{"title":130,"path":131,"stem":132},"Halloween Spooky-saur 🎃","/experiments/spooky-saur","experiments/spooky-saur",{"title":134,"path":135,"stem":136},"Synthwave Landscape","/experiments/synthwave-landscape","experiments/synthwave-landscape",{"title":138,"path":139,"stem":140},"Texture Particle Cursor","/experiments/texture-particle-cursor","experiments/texture-particle-cursor",{"title":142,"path":143,"stem":144},"Vue Fes Japan 2025","/experiments/vuefes-japan-2025","experiments/vuefes-japan-2025",{"title":146,"path":147,"stem":148},"WebGPU","/experiments/webgpu","experiments/webgpu",false,{"id":151,"title":26,"author":152,"body":153,"date":316,"description":317,"extension":318,"featured":149,"lastUpdated":319,"meta":320,"navigation":321,"path":27,"seo":322,"stem":28,"tags":323,"thumbnail":327,"__hash__":328},"experiments/experiments/coffee-smoke.md","alvarosabu",{"type":154,"value":155,"toc":308},"minimark",[156,173,178,181,215,219,222,265,269,305],[157,158,159,160,164,165,172],"p",{},"This experiment creates a ",[161,162,163],"strong",{},"realistic smoke simulation"," rising from a coffee mug, based on ",[166,167,171],"a",{"href":168,"rel":169},"https://threejs-journey.com/",[170],"nofollow","Bruno Simon's excellent Three.js Journey course"," and implemented in TresJS. The effect uses custom vertex shaders with Perlin noise to create natural-looking smoke with twisting motion and wind effects.",[174,175,177],"h3",{"id":176},"what-youll-see","What You'll See",[157,179,180],{},"An atmospheric coffee scene featuring:",[182,183,184,191,197,203,209],"ul",{},[185,186,187,190],"li",{},[161,188,189],{},"Rising Smoke Particles",": Volumetric smoke effect using a single plane geometry",[185,192,193,196],{},[161,194,195],{},"Twisting Motion",": Rotation-based distortion creating realistic smoke spirals",[185,198,199,202],{},[161,200,201],{},"Wind Simulation",": Horizontal drift using multi-layered Perlin noise",[185,204,205,208],{},[161,206,207],{},"Baked 3D Scene",": Coffee mug and table with pre-computed lighting",[185,210,211,214],{},[161,212,213],{},"Shader-Based Animation",": Custom GLSL shaders for natural smoke movement",[174,216,218],{"id":217},"technical-implementation","Technical Implementation",[157,220,221],{},"This experiment demonstrates advanced shader techniques:",[182,223,224,230,236,242,253,259],{},[185,225,226,229],{},[161,227,228],{},"Custom Vertex Shader",": GLSL code handling position transformations",[185,231,232,235],{},[161,233,234],{},"Perlin Noise Texture",": Used for both twist angle and wind offset calculations",[185,237,238,241],{},[161,239,240],{},"2D Rotation Function",": Modular GLSL function for rotating smoke around vertical axis",[185,243,244,247,248,252],{},[161,245,246],{},"Shader Includes",": Reusable shader chunks using ",[249,250,251],"code",{},"vite-plugin-glsl"," preprocessing",[185,254,255,258],{},[161,256,257],{},"Time-Based Animation",": Continuous movement driven by elapsed time uniforms",[185,260,261,264],{},[161,262,263],{},"Vertical Scaling",": Transform origin manipulation for proper smoke rising effect",[174,266,268],{"id":267},"shader-features","Shader Features",[182,270,271,277,283,293,299],{},[185,272,273,276],{},[161,274,275],{},"Twist Effect",": Noise-driven rotation creating natural smoke spirals",[185,278,279,282],{},[161,280,281],{},"Wind Offset",": Multi-channel Perlin noise for realistic horizontal drift",[185,284,285,288,289,292],{},[161,286,287],{},"Power Curve",": ",[249,290,291],{},"pow(uv.y, 3.0)"," for stronger effects at smoke top",[185,294,295,298],{},[161,296,297],{},"Texture Wrapping",": Repeating Perlin texture for continuous noise patterns",[185,300,301,304],{},[161,302,303],{},"Double-Sided Rendering",": Visible from all angles for volumetric appearance",[157,306,307],{},"This experiment showcases how custom shaders and noise functions can create organic, natural-looking effects, making it perfect for learning about procedural animation and GLSL shader development.",{"title":309,"searchDepth":310,"depth":310,"links":311},"",2,[312,314,315],{"id":176,"depth":313,"text":177},3,{"id":217,"depth":313,"text":218},{"id":267,"depth":313,"text":268},"2025-11-27","Realistic smoke simulation rising from a coffee mug using custom GLSL shaders and Perlin noise.","md","2025-12-03",{},true,{"title":26,"description":317},[324,325,326],"particles","shader","smoke","/experiments/coffee-smoke.webp","pwKzFs4jyLVCLjgqVjkEo4p-XPHzVRXRAxkUnqLGAr0",[330,345,360,377,393,411,428,446],{"id":331,"title":332,"avatar":333,"body":334,"description":309,"email":338,"extension":318,"github":152,"meta":339,"name":152,"navigation":321,"path":340,"seo":341,"slug":152,"stem":342,"twitter":152,"website":343,"__hash__":344},"authors/authors/alvarosabu.md","Alvarosabu","/avatars/alvarosabu.jpeg",{"type":154,"value":335,"toc":336},[],{"title":309,"searchDepth":310,"depth":310,"links":337},[],"hola@alvarosaburido.dev",{},"/authors/alvarosabu",{"description":309},"authors/alvarosabu","https://alvarosabu.dev","kfjqjiPxKR64avAeoJeNF40fMr5laisoEnPnfgFGN_U",{"id":346,"title":347,"avatar":348,"body":349,"description":309,"email":353,"extension":318,"github":354,"meta":355,"name":354,"navigation":321,"path":356,"seo":357,"slug":354,"stem":358,"twitter":353,"website":353,"__hash__":359},"authors/authors/andretchen0.md","Andretchen0","/avatars/andretchen0.jpg",{"type":154,"value":350,"toc":351},[],{"title":309,"searchDepth":310,"depth":310,"links":352},[],null,"andretchen0",{},"/authors/andretchen0",{"description":309},"authors/andretchen0","rztGS5YNlU7jYv1laE9f863gZy-WUFK5r3uuycyiMLY",{"id":361,"title":362,"avatar":363,"body":364,"description":309,"email":368,"extension":318,"github":369,"meta":370,"name":371,"navigation":321,"path":372,"seo":373,"slug":369,"stem":374,"twitter":375,"website":353,"__hash__":376},"authors/authors/damienmontastier.md","Damienmontastier","/avatars/damienmontastier.jpg",{"type":154,"value":365,"toc":366},[],{"title":309,"searchDepth":310,"depth":310,"links":367},[],"montastier.damien@gmail.com","damienmontastier",{},"Damien Montastier","/authors/damienmontastier",{"description":309},"authors/damienmontastier","dammontastier","FqtKh6r8pBEM29DE6GhT098-LIpM3BL7RXSxFjrcwwY",{"id":378,"title":379,"avatar":380,"body":381,"description":309,"email":353,"extension":318,"github":385,"meta":386,"name":387,"navigation":321,"path":388,"seo":389,"slug":385,"stem":390,"twitter":391,"website":353,"__hash__":392},"authors/authors/franciscohermida.md","Franciscohermida","/avatars/franciscohermida.jpg",{"type":154,"value":382,"toc":383},[],{"title":309,"searchDepth":310,"depth":310,"links":384},[],"franciscohermida",{},"Francisco Hermida","/authors/franciscohermida",{"description":309},"authors/franciscohermida","chicohermida","2dGmaA2uS0w2CaErMR8BexRzx0pCgoEowV5tZcITkus",{"id":394,"title":395,"avatar":396,"body":397,"description":309,"email":401,"extension":318,"github":402,"meta":403,"name":395,"navigation":321,"path":404,"seo":405,"slug":406,"stem":407,"twitter":408,"website":409,"__hash__":410},"authors/authors/jaime-torrealba.md","Jaime Torrealba","/avatars/jaime-torrealba.jpg",{"type":154,"value":398,"toc":399},[],{"title":309,"searchDepth":310,"depth":310,"links":400},[],"solucionesinformaticasjtc@gmail.com","JaimeTorrealba",{},"/authors/jaime-torrealba",{"description":309},"jaime-bboyjt","authors/jaime-torrealba","jaimebboyjt","https://jaimetorrealba.com/","WhkdXnej1NkT__thyZfYEil3qYn8wi7qVoQSMzyfrs4",{"id":412,"title":413,"avatar":414,"body":415,"description":309,"email":419,"extension":318,"github":420,"meta":421,"name":422,"navigation":321,"path":423,"seo":424,"slug":422,"stem":425,"twitter":419,"website":426,"__hash__":427},"authors/authors/luckystriike.md","Luckystriike","/avatars/luckystriike.jpg",{"type":154,"value":416,"toc":417},[],{"title":309,"searchDepth":310,"depth":310,"links":418},[],"none","luckystriike22",{},"luckystriike","/authors/luckystriike",{"description":309},"authors/luckystriike","https://github.com/luckystriike22","vmVaU8HAY_jbVnlvpUQiwh3uPcKxGGr6B5PF9xo17X8",{"id":429,"title":430,"avatar":431,"body":432,"description":309,"email":436,"extension":318,"github":437,"meta":438,"name":439,"navigation":321,"path":440,"seo":441,"slug":437,"stem":442,"twitter":443,"website":444,"__hash__":445},"authors/authors/neoprint3d.md","Neoprint3d","/avatars/neoprint3d.jpg",{"type":154,"value":433,"toc":434},[],{"title":309,"searchDepth":310,"depth":310,"links":435},[],"drew@neoprint3d.dev","neoprint3d",{},"Drew Ronsman","/authors/neoprint3d",{"description":309},"authors/neoprint3d","drew_ronsman","https://dronsman.com","w-8rauWEJDRmX_QOi4s2PI7n9EABybGURQ-R_ss9tzo",{"id":447,"title":448,"avatar":449,"body":450,"description":309,"email":454,"extension":318,"github":455,"meta":456,"name":448,"navigation":321,"path":457,"seo":458,"slug":455,"stem":459,"twitter":460,"website":461,"__hash__":462},"authors/authors/neosoulink.md","Neosoulink","/avatars/neosoulink.jpg",{"type":154,"value":451,"toc":452},[],{"title":309,"searchDepth":310,"depth":310,"links":453},[],"neodarksoulink@gmail.com","neosoulink",{},"/authors/neosoulink",{"description":309},"authors/neosoulink","nsl_nathan","https://github.com/Neosoulink","69eGfzorl4NNNe56pFRh6qK3AhnfjnKUvCHO-_9Pa1Y",1785417194858]