<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Anirudh Girish on Medium]]></title>
        <description><![CDATA[Stories by Anirudh Girish on Medium]]></description>
        <link>https://medium.com/@anirudhgirish?source=rss-e6b161f688fd------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*KO-0zzYDGfY0OF2DSWAUeg.jpeg</url>
            <title>Stories by Anirudh Girish on Medium</title>
            <link>https://medium.com/@anirudhgirish?source=rss-e6b161f688fd------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 06:38:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@anirudhgirish/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Three.js Geometries: From Lines to Complex 3D Shapes]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@anirudhgirish/three-js-geometries-from-lines-to-complex-3d-shapes-d66a0279ad83?source=rss-e6b161f688fd------2"><img src="https://cdn-images-1.medium.com/max/1024/1*KjjgPncGSYEsIYg_CeHkyw.png" width="1024"></a></p><p class="medium-feed-snippet">Ready to mold your 3D creations? Let&#x2019;s explore Three.js geometries&#x200A;&#x2014;&#x200A;the building blocks of every 3D scene!</p><p class="medium-feed-link"><a href="https://medium.com/@anirudhgirish/three-js-geometries-from-lines-to-complex-3d-shapes-d66a0279ad83?source=rss-e6b161f688fd------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@anirudhgirish/three-js-geometries-from-lines-to-complex-3d-shapes-d66a0279ad83?source=rss-e6b161f688fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/d66a0279ad83</guid>
            <dc:creator><![CDATA[Anirudh Girish]]></dc:creator>
            <pubDate>Tue, 29 Apr 2025 13:05:55 GMT</pubDate>
            <atom:updated>2025-04-29T13:05:55.410Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Three.js Demystified: The Core of 3D Web Graphics]]></title>
            <link>https://medium.com/@anirudhgirish/three-js-demystified-the-core-of-3d-web-graphics-405a103148b3?source=rss-e6b161f688fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/405a103148b3</guid>
            <category><![CDATA[web-design]]></category>
            <category><![CDATA[threejs]]></category>
            <category><![CDATA[3d-animation]]></category>
            <category><![CDATA[ui-ux-design]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Anirudh Girish]]></dc:creator>
            <pubDate>Mon, 21 Apr 2025 12:52:44 GMT</pubDate>
            <atom:updated>2025-04-21T16:39:19.918Z</atom:updated>
            <content:encoded><![CDATA[<p>Ever wondered how 3D graphics light up your browser? Let’s decode Three.js and its core pieces to kickstart your 3D adventure!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m8IXwxk3zzk0lg-ImjHDHw.png" /></figure><p>Three.js, a JavaScript library, transforms the web into a 3D playground, powering everything from interactive visualizations to immersive portfolio effects. In this article of daily tech-learning, I’ll break down the <strong>essential components of Three.js</strong> — Scene, Camera, Renderer, and Objects — and show you the flow that brings 3D worlds to life. Whether you’re a beginner or a fellow geek, let’s dive into the blueprint of 3D magic!</p><p>You don’t need a gaming PC or plugin — just a modern browser and Three.js to render photorealistic scenes on desktops and smartphones alike</p><h3><strong>Why Three.js?</strong></h3><p>Three.js makes WebGL accessible, letting you craft 3D scenes without grappling with low-level graphics code. From e-commerce product viewers to creative animations, it’s a must-know for web developers. Today, we’ll explore the core parts and how they fit together — no code required yet, just the big picture.</p><h3>Getting Started: Prerequisites</h3><p>Before diving into code, ensure you’re comfortable with:</p><ul><li><strong>HTML &amp; CSS:</strong> Structuring your page and styling the canvas element.</li><li><strong>JavaScript Fundamentals:</strong> ES6 syntax, modules, and event handling.</li><li><strong>Basic Math Concepts:</strong> Vectors, matrices, and coordinate systems to position and transform objects.</li><li><strong>Browser Compatibility:</strong> A WebGL‑capable browser (virtually all modern browsers support it).</li></ul><p>Don’t worry — we’ll build things step by step, together.</p><h3><strong>Setting Up Your Environment</strong></h3><p>Before we start building stunning 3D scenes, let’s get your environment ready. The best part? You don’t need any heavy software or installations. All you need is:</p><ul><li>A <strong>modern browser</strong> (Chrome, Firefox, Edge, Safari — all work well)</li><li>A <strong>code editor</strong> (I recommend <a href="https://code.visualstudio.com/">VS Code</a> or Cursor)</li><li>Basic knowledge of <strong>HTML, CSS, and JavaScript</strong></li><li>A local file setup OR an online editor like CodePen, JSFiddle, or CodeSandbox</li></ul><p>Let’s go with a local setup, so you learn how to structure things for real-world projects.</p><p>Here’s the basic HTML structure that includes the Three.js library and links your CSS + JS files.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7_MiSowOnl_D-rR2CPw5yg.png" /></figure><p>Now in your script.js follow the below steps.</p><h3><strong>Anatomy of a Basic Three.js App</strong></h3><h4><strong>The Core Components: A Movie Set Analogy</strong></h4><p>Imagine Three.js as a movie production:</p><ul><li><strong>Scene</strong>: The stage where all 3D elements (objects, lights, cameras) come together.</li><li><strong>Camera</strong>: The lens choosing what part of the stage you see.</li><li><strong>Renderer</strong>: The projector splashing the scene onto the screen.</li><li><strong>Objects</strong>: The actors (shapes, lights) made of geometry and materials.</li></ul><p>Here’s how they work, step by step.</p><h3>1. Scene: The 3D Container</h3><p>The <strong>scene</strong> is your 3D world — a container holding everything: objects, lights, and cameras. Think of it as an empty stage waiting for props and actors. You create it once, and it’s the foundation of your project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/1*6T9fNhmSMUE_WtEyxWqHeA.png" /><figcaption>The “stage” or container for everything in your 3D world.</figcaption></figure><h3>2. Camera: Your Viewpoint</h3><p>The <strong>camera</strong> decides what you see in the scene. The most common type, PerspectiveCamera, mimics a real-world camera with a field of view (FOV), aspect ratio (based on screen size), and near/far clipping planes (what’s visible). Position it to frame your 3D world — like a director choosing the perfect shot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JDtxWvOAphzkcmeaO4i-Qw.png" /><figcaption>Defines the viewpoint. A common choice is perspective camera with FOV, aspect ratio, and clipping planes.</figcaption></figure><h3>3. Renderer: Drawing the Picture</h3><p>The <strong>renderer</strong> takes your scene and camera and paints them onto a canvas using WebGL. It’s the tool that makes your 3D world visible, handling tasks like resizing to fit the screen and smoothing edges (antialiasing).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Cy07Ul2OwzukmdngzNw2jg.png" /><figcaption>Draws your scene from the camera’s perspective onto the canvas via WebGL.</figcaption></figure><h3>4. Objects: The Stars of the Show</h3><p><strong>Objects</strong> are the 3D elements you add to the scene, like shapes, lights, or even extra cameras. The most common object is a <strong>mesh</strong>, which combines:</p><ul><li><strong>Geometry</strong>: The shape (e.g., cube, sphere, line).</li><li><strong>Material</strong>: The look (e.g., color, texture, shininess).</li></ul><p>For example, a cube needs a box-shaped geometry and a material for its appearance:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c-MtpiMv8Cmn7XaKKOBj-w.png" /><figcaption>Combine shapes (geometry) with visual properties (material) to form meshes.</figcaption></figure><h3>5. Add to Scene: Placing the Pieces</h3><p>Once you create an object, you <strong>add</strong> it to the scene to make it part of your 3D world. It’s like placing a prop on the stage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/570/1*6qe4CwTW1Rd62avTgnSmKQ.png" /><figcaption>Adding up everything to create a scene</figcaption></figure><h3>6. Render: Bringing It to Life</h3><p>The <strong>renderer</strong> draws the scene from the camera’s perspective. For static scenes, you render once. For animations (like moving objects), use an <strong>animation loop</strong> with requestAnimationFrame to render continuously.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/856/1*cZESyPrwh0pf4zbtXHU8lw.png" /><figcaption>Continuously draw the scene, updating objects as needed.</figcaption></figure><h3>The Flow: How It All Connects</h3><p>Here’s the <strong>structure and flow</strong> of a Three.js project:</p><ol><li><strong>Create Scene</strong>: Set up the empty 3D container.</li><li><strong>Add Camera</strong>: Position the viewpoint to frame the scene.</li><li><strong>Set Renderer</strong>: Configure the tool to draw the scene.</li><li><strong>Build Objects</strong>: Craft meshes with geometry and materials.</li><li><strong>Add to Scene</strong>: Place objects into the 3D world.</li><li><strong>Render</strong>: Draw the scene, looping for animations.</li></ol><p>This flow — <strong>Scene → Camera → Renderer → Objects → Add → Render</strong> — is the backbone of every Three.js project. It’s like assembling a puzzle: each piece has a role, and together, they create something magical.</p><h3><strong>TL;DR Summary</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/559/1*HWWm0vTOFNHg_wvK89FJJA.png" /></figure><p>Set up your first 3D-ready environment using just HTML, CSS, JavaScript, and the Three.js library — that’s your first step into the incredible world of 3D web graphics.</p><p>It might feel basic now, but trust me — this foundation is exactly what powers jaw-dropping visualizations, immersive product showcases, and even real-time simulations. Every amazing Three.js project out there began with these same steps.</p><p>Until then, play around and experiment! Also want you to visit Three.js official page. That’s how you learn best.</p><p>Thanks<br><strong>– Anirudh Girish</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=405a103148b3" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>