codrops – Code Guilds https://codeguilds.com Sat, 25 Jul 2026 10:41:42 +0000 en-US hourly 1 https://wordpress.org/?v=7.1.5 Building Ridgeline: Engineering a Real-Time 3D Experience in Webflow | Codrops https://codeguilds.com/building-ridgeline-engineering-a-real-time-3d-experience-in-webflow-codrops/ https://codeguilds.com/building-ridgeline-engineering-a-real-time-3d-experience-in-webflow-codrops/#respond Sat, 25 Jul 2026 10:41:42 +0000 https://codeguilds.com/building-ridgeline-engineering-a-real-time-3d-experience-in-webflow-codrops/ The genesis of Ridgeline stemmed from a fundamental question: could a Webflow site host truly real 3D terrain, incorporating actual elevation data (Digital Elevation Models or DEMs) draped as a survey-contour mesh and rendered live using Three.js, without resorting to pre-recorded video loops or static sprite sheets, all while preserving Webflow’s inherent editability? This ambitious inquiry laid the groundwork for an architectural journey, guided by a singular, non-negotiable principle: "I don’t care if it’s a built-in component or external JS, I want to SEE it." This rule ultimately dictated the entire technical architecture, emphasizing visual output and user experience above all else.

The Vision: A Cinematic Alpine Journey

Ridgeline invites users on a virtual expedition through three distinct "condition" scenes, each meticulously crafted from real-world geographical data. These include "Dawn," depicting a stormy Tre Cime; "Sunrise," capturing the serene blue-hour transition to pink over Mont Blanc; and "Snow," showcasing a night-blue Annapurna under falling snow. The experience is further enriched by scroll-driven photography, ambient soundscapes tailored to each environment, and an interactive atlas homepage that allows users to "fly through" the terrain with clickable scene previews. Every element, from the towering peaks to the winding paths, is represented by real geometry, all built and maintained programmatically through the Webflow Model Context Protocol (MCP), yet remaining fully editable within a standard Webflow project interface.

The authenticity of the experience is paramount. For instance, the "Dawn" trek is based on the developer’s personal hike above Cortina in the Tre Cime. The activity was recorded via Strava as a GPS track (GPX), meticulously cleaned of usual GPS spikes, and then accurately draped onto the true SRTM (Shuttle Radar Topography Mission) slope data. To ensure privacy and maintain a curated experience, only a normalized, coordinate-free version of the track is shipped, making the terrain recognizable without exposing the exact route. The "Sunrise" and "Snow" scenes, lacking personal recorded tracks, utilize plausible synthesized routes that maintain geographical accuracy.

Remarkably, the entire Ridgeline site was developed with significant assistance from artificial intelligence. Utilizing Claude (specifically Opus 4.8 and Fable 5) as an agent driving the Webflow MCP, the project came to fruition in approximately one week. This rapid development timeline, coupled with a meticulously kept build log documenting decisions, successes, and missteps, underscores the potential of AI-assisted development in complex web projects.

Architectural Decisions: Integrating Real-Time 3D into Webflow

A critical early decision involved selecting the optimal method for embedding React components, which housed the Three.js 3D rendering engine, into Webflow. Two primary routes were considered: Webflow’s native Code Component (deployed via DevLink or a shared library) or a self-hosted JavaScript embed.

Webflow’s Code Component offers a first-class element experience within the Designer, making it ideal for standard UI-shaped components. However, Ridgeline’s core requirement—a single, heavy WebGL bundle encompassing its own build step, Three.js, a Blender-baked asset pipeline, and R2-hosted GLBs—presented a formidable challenge for any component system. The sheer machinery involved led the developer to favor a self-hosted JS embed. While this approach meant sacrificing the drag-and-drop convenience of a Designer element, it provided the necessary control and flexibility for such an intensive 3D application. This trade-off was mitigated by implementing an attribute-driven mounting system, where the embed actively sought host elements (e.g., [data-terrain-scene] or [data-terrain-card]) placed by the designer, thereby allowing the designer to retain layout control while the code managed the 3D content. This method exemplifies a pragmatic balance between designer autonomy and complex technical requirements.

Building Ridgeline: Engineering a Real-Time 3D Experience in Webflow | Codrops

Automated Site Building with Webflow MCP and AI

One of the most surprising and impactful aspects of the Ridgeline project was the utilization of the Webflow Model Context Protocol (MCP) server, entirely driven by an AI agent (Claude). This allowed the entire site—including pages, components, classes, CSS, variables, custom code, SEO settings, and publishing—to be built and maintained programmatically. Crucially, the output remained a completely normal Webflow project, fully editable by a human designer.

The governing principle established for this workflow was clear: markup and CSS reside within the Webflow Designer as named components and classes, while behavior, 3D rendering, and animation logic are housed in versioned JavaScript hosted on Cloudflare R2. This separation of concerns ensured that the Designer focused on structural and aesthetic elements, with the CDN handling dynamic behavior.

The implementation also highlighted a key distinction in Webflow’s custom code capabilities. Registered scripts (via the Scripts API for injected JS) are suitable for code that runs after initial page load. However, anything requiring execution at "first paint" – such as preventing a visual flash – necessitated placing raw HTML/CSS directly into the head/footer custom code section. This granular understanding of Webflow’s execution pipeline was vital for achieving a polished user experience.

The 3D Pipeline: From Real-World Data to WebGL

The project’s commitment to "real" geometry was non-negotiable. Each terrain within Ridgeline is derived from genuine DEMs, specifically SRTM elevation datasets corresponding to actual massifs. This data is then meticulously modeled in Blender, a powerful 3D creation suite, before being exported to glTF (GL Transmission Format) – an efficient, open-standard format for 3D scenes and models – and subsequently loaded into Three.js for real-time rendering in the browser.

The pipeline is a testament to careful engineering:

  1. Data Acquisition: Real-world DEMs (e.g., GeoTIFFs from sources like USGS or local geological surveys) are the foundation.
  2. Blender Integration: The DEMs are imported into Blender, where they are cleaned, refined, and sculpted to create the desired aesthetic and optimize for web performance. The process includes baking modifiers to simplify geometry.
  3. glTF Export and Compression: From Blender, the models are exported to glTF. A crucial step here is the application of Draco compression, which significantly reduces file sizes (e.g., from 11 MB to approximately 1 MB for static meshes), addressing potential download bottlenecks. Parameters like export_yup (for Blender’s Z-up to Three.js’s Y-up conversion) and export_draco_mesh_compression_level are carefully tuned.
  4. Cloudflare R2 Hosting: The compressed glTF files are hosted on Cloudflare R2, ensuring fast global content delivery.
  5. Three.js Loading: Three.js then loads and renders these optimized GLBs in the browser.

Notably, even the Blender workflow was integrated into the agentic setup, with Claude assisting in model tweaks directly within Blender, eliminating manual UI round-trips. The resulting glTF files, ranging from 540-580 KB each after Draco compression, proved small enough that download speed was never a performance constraint. The true challenges lay in GPU and main thread optimization, which became the focus of subsequent development phases.

The Art of the Survey-Map Aesthetic: Shader Magic

Building Ridgeline: Engineering a Real-Time 3D Experience in Webflow | Codrops

A standout visual feature of Ridgeline is its distinctive survey-map aesthetic, achieved entirely through a single fragment shader rather than relying on multiple textures. This shader dynamically reads the mesh’s world-space height to generate contour lines, hillshading, and snow lines. The key to maintaining crisp contour lines at any camera distance lies in the fwidth() GLSL function, which calculates the anti-aliasing width in screen space based on the rate of change of the band index. This ensures lines remain a consistent one pixel wide regardless of zoom level.

The shader also implements "index" contours, where every Nth line is bolder, mimicking classic topographical maps. Hillshading is derived from the surface normal, and elevation tints dynamically color the terrain, transitioning to a distinct snow color above a specified snow line. The beauty of this approach is that all three scenes—Dawn, Sunrise, and Snow—share the same shader, differentiated only by a distinct set of uniform variables (ground and contour colors, snow strength, light direction). A subtle but effective touch is a per-pixel dither, which eliminates 8-bit banding artifacts that can appear in subtle gradients, particularly in darker scenes like "Dawn."

Fluid Motion: Scroll-Driven Animation Without Re-renders

Animation in Ridgeline is entirely scroll-driven, adhering to a strict performance rule: React never re-renders on scroll. Instead, scroll progress is stored in a mutable ref and accessed within the Three.js render loop, decoupling animation updates from React’s rendering cycle. This architecture, leveraging libraries like Lenis for smooth scrolling and GSAP (GreenSock Animation Platform) with ScrollTrigger for intricate timeline control, ensures buttery-smooth animations.

One specific animation challenge involved a "frame-collapse" section, where a full-screen image transitions into a smaller 4:5 plate. The pitfall here was animating width and height, which would force object-fit to re-crop every frame, leading to visible jumps. The elegant solution involved fixing the element to a 4:5 aspect ratio, sized once to cover the viewport, and animating it purely through transform: scale. This approach eliminates per-frame layout calculations and re-cropping, ensuring a fluid visual transformation. Another lesson learned was the importance of ensuring any mid-scroll CSS animation starts from the element’s resting (identity) state to prevent abrupt visual "pops."

Seamless User Experience: Addressing the "Seams"

While the 3D rendering and animations form the core of Ridgeline, the developer found that most development time was consumed by perfecting the "seams"—the transitional moments between states—which are crucial for a polished user experience.

A common challenge is the "first-paint flash" on hard reloads, where a plain background momentarily appears before the preloader. This is a timing issue: injected JavaScript runs after the browser has already painted the raw HTML. The fix involved placing synchronous CSS in Webflow’s head custom code, specifically an #topo-fp-guard style that sets a dark background and hides all body content until the JavaScript takes over. A failsafe timeout ensures the page doesn’t remain blank indefinitely if JS fails to load.

Another critical "seam" is the audio gate. Modern browsers block autoplaying audio until a user gesture. Ridgeline gracefully handles this by ending its preloader with an explicit "Enter" or "Enter-muted" choice, which serves as the necessary user gesture to unlock the ambient audio bus. This prevents console errors and ensures audio integrates seamlessly into the experience. The ambient sound design itself is subtle, designed to be missed if absent rather than overtly noticed, enriching the atmosphere without distracting the user.

Building Ridgeline: Engineering a Real-Time 3D Experience in Webflow | Codrops

Fluid Navigation: Page Transitions Without Frame Drops

Navigating between the different alpine scenes in Ridgeline is a masterclass in seamless transitions, utilizing a PJAX (pushState AJAX) swap beneath a WebGL "flood" cover—a topographic-contour reveal that sweeps in, holds, and then drains. The architectural linchpin here is the use of a single, persistent WebGL context. Navigation swaps only the scene data (setScene), critically avoiding the costly tear-down and re-creation of the canvas, which often leads to evicted contexts and jarring black flashes.

A more subtle performance issue arose when the "flood" cover drained prematurely upon a new mesh being parsed, but before its material’s shader had fully compiled. This caused the shader compilation to stall the main thread during the visible reveal. The solution involved compileAsync, a Three.js feature that leverages the parallel-shader-compile WebGL extension. This offloads the heavy shader compilation work to a separate thread, allowing the reveal to draw an already "warm" scene. A fallback timeout ensures the transition never hangs indefinitely. This same technique is applied to pre-warm the summit-cairn scene before it scrolls into view, eliminating a noticeable one-second freeze.

The Pursuit of 60 FPS: Performance Through Omission

Achieving a locked 60 frames per second (fps) across the Ridgeline experience was a journey of relentless optimization, largely guided by the principle of "stop doing work that doesn’t change a pixel." The developer built a custom in-page FPS profiler, activated by a keypress, which bucketted frame rates by scroll depth and labeled sections (e.g., min 34 @ 46% (Frames)). This precise feedback allowed for targeted performance improvements.

Key performance wins, all achieved without compromising visual quality, included:

  • Off-screen Culling: Critically, the site avoids animating anything that is not currently visible on screen.
  • Web Workers for Heavy Lifting: Complex JavaScript tasks, such as GLB parsing, were offloaded to web workers, freeing up the main thread.
  • GPU-Driven Effects: Snowfall, for example, is entirely GPU-driven. Particle positions are uploaded once, and the shader handles the falling and wrapping logic, minimizing CPU overhead.
  • DOM Optimization: Redundant CSS transforms on DOM elements were identified and removed, reducing layout thrashing.
  • Renderer Pre-warming: The Three.js renderer was pre-warmed to avoid initial jitters.

These optimizations yielded significant improvements: homepage intro canvas performance jumped from 46fps (min 33) to a stable 60fps (min 56); the Snow scene’s snowfall went from 37fps to 60fps; a ~1000ms freeze on the Summit reveal was eliminated; and footer entrance frame rates dramatically improved from a minimum of 7fps to 57fps. The overarching lesson was clear: the fastest frame is the one that doesn’t do work, emphasizing removal and efficiency over clever but heavy implementations.

Content Management and SEO: Bridging Code and Creativity

Despite its technical sophistication, Ridgeline maintains a practical approach to content management. While the core scene pages are static, the site incorporates a Webflow CMS Collection for its gallery, ensuring editorial content remains easily editable within Webflow’s familiar interface, rather than being hard-coded. The integration pattern involves the designer placing data-cms-host elements, which the embed then queries via the CMS API to populate dynamically.

Building Ridgeline: Engineering a Real-Time 3D Experience in Webflow | Codrops

This approach pays dividends in discoverability. By prioritizing clean semantic markup, unique per-page titles and meta descriptions, and the fast Core Web Vitals achieved through rigorous performance optimization, Ridgeline is designed to be highly appealing to search crawlers and AI answer engines (AEO). The combination of real content in real HTML, delivered at high speed, ensures optimal readability for both human users and automated systems.

Reflections and Future Implications

The Ridgeline project serves as a compelling case study in pushing the boundaries of web development. The developer’s reflections offer valuable insights: for simpler projects, Webflow’s native Code Component might be preferred. However, for complex 3D scenes, establishing a robust asset pipeline from the outset is crucial. The early integration of an in-page profiler is also highlighted as a critical tool for iterative performance optimization.

The overarching lesson, reiterated throughout the development process, is that "it compiles" is not "it’s done." The true test of any web experience lies in its actual rendered performance on screen. The jumps, flashes, and frame drops that were invisible in the code became glaringly obvious during real-world testing, emphasizing the importance of user-centric observation and continuous refinement.

Ridgeline stands as a testament to the evolving landscape of web design, demonstrating that even sophisticated real-time 3D experiences, traditionally confined to specialized game engines or custom frameworks, can be built and managed within a low-code platform like Webflow, especially when augmented by AI and a deep understanding of web performance principles. It signals a future where immersive, interactive web experiences become more accessible to designers and developers, blurring the lines between traditional web design and high-fidelity interactive media. This project not only showcases technical prowess but also charts a potential course for the next generation of web development, where creativity, performance, and accessibility converge to deliver truly captivating digital journeys.

]]>
https://codeguilds.com/building-ridgeline-engineering-a-real-time-3d-experience-in-webflow-codrops/feed/ 0
They Call Me Giulio: The Making of a Cinematic Cyberpunk Portfolio | Codrops https://codeguilds.com/they-call-me-giulio-the-making-of-a-cinematic-cyberpunk-portfolio-codrops/ https://codeguilds.com/they-call-me-giulio-the-making-of-a-cinematic-cyberpunk-portfolio-codrops/#respond Thu, 27 Nov 2025 13:35:26 +0000 http://codeguilds.com/?p=5363 Unleashing Unconventional Creativity: The Vision Behind "They Call Me Giulio"

Giulio’s project stands as a testament to the power of creative freedom, born from a conscious decision to set aside conventional briefs, KPIs, and established rules. In a digital realm often saturated with fleeting trends—from cursor followers to oversized typography—Giulio recognized that true creativity lies not in replication but in constructing a coherent, compelling narrative. This philosophical approach transforms every animation and interactive element from mere decoration into an integral storytelling tool. The objective was clear: to craft an experience so memorable that it lingers with visitors long after they close their browsers, challenging the norms of textbook UX and safe design choices.

This endeavor was more than just a technical exercise; it was a deeply personal undertaking. Unlike a conventional resume, the portfolio aims to reveal the human element behind the developer—a candid portrayal of interests and inspirations that extend beyond professional confines. Rejecting a sterile list of projects and a standard "contact me" button, Giulio infused his site with facets of his personal life, drawing inspiration from cult classic films that he can rewatch endlessly. This candid approach, coupled with the permanent presence of his custom-designed 3D avatar (initially a Blender learning experiment), forms a distinctive personal brand that is instantly recognizable and deeply integrated into the site’s identity.

A Cinematic Journey: Deconstructing the Portfolio’s Narrative Arcs

The portfolio unfolds as a meticulously choreographed sequence of scenes, each drawing direct inspiration from beloved cinematic masterpieces, transforming the user’s navigation into an interactive film experience.

They Call Me Giulio: The Making of a Cinematic Cyberpunk Portfolio | Codrops

Scene One: Echoes of Blade Runner in "About Me"
The journey commences with a profound homage to Ridley Scott’s 1982 neo-noir masterpiece, Blade Runner. Upon entering the site, visitors are immediately immersed in a scene inspired by the film’s iconic "Tears in Rain" monologue. Rain streaks down, neon lights reflect on slick surfaces, and Giulio’s android avatar sits in a melancholic tableau reminiscent of Roy Batty’s final moments. This atmospheric introduction, foregoing a typical hero section or prominent headline, establishes a thick, wet, electric cyberpunk mood that captivates and resonates deeply with fans of the genre.

The avatar, a sentient android, is designed for interactivity. A hover action over the "About" button prompts a curious head lift, simulating a video game character’s reaction. A subsequent click smoothly transitions the camera, dissolving the surrounding world to spotlight the avatar, revealing the About page. A subtle yet charming detail: a rusty yellow sign on a distant building bears the Japanese translation of "Giulio," further embedding personal touches into the cinematic fabric.

Scene Two: The Power Unleashed in "Works"
A dramatic shift in tone marks the second scene, where the android avatar reclaims its strength and capabilities. Inspired by the explosive "Super Saiyan" transformations from the classic Japanese anime Dragon Ball, this segment depicts the avatar unleashing a powerful, glowing energy blast across the screen. This visual metaphor perfectly encapsulates the developer’s accumulated skills and experiences. As the energy explodes, a curated selection of projects materializes—showcasing diverse works that challenged, taught, or held significant meaning for Giulio. This dynamic reveal acts as a declaration: "This is what I can do."

Scene Three: The Matrix’s Infinite Void in the "Room of Memories"
Drawing inspiration from the early 2000s web, Giulio revives the concept of the guestbook, transforming it into the "Room of Memories." This immersive space, suspended in darkness, allows visitors’ messages to drift through infinite space like ethereal fragments of light. The design is a reimagining of The Matrix‘s iconic weapons program scene, where Neo and Trinity enter a vast, sterile white warehouse with endless, materializing racks. Giulio inverted this concept, replacing stark white with deep darkness, punctuated by soft neon glows and thousands of slowly drifting messages.

This "cyberpunk guestbook" directly links back to the Blade Runner inspiration, with its name echoing Roy Batty’s poignant last words: "All those moments will be lost in time, like tears in rain." It serves as a digital repository of transient thoughts, giving them a physical, albeit virtual, presence.

Scene Four: A Back to the Future Farewell in "Contact"
The portfolio concludes with a return to the melancholic, neo-noir atmosphere of the opening scene. Soft neon rain falls, accompanied by a subtle soundtrack. The avatar stands with its back turned, breathing slowly, poised for new adventures. Then, a legendary icon descends from the sky: the DeLorean, with a distinctive blue glow, landing softly. The opening door signals the mission’s end and the time to return home, a nostalgic nod to Back to the Future and a poignant conclusion to the cinematic journey.

They Call Me Giulio: The Making of a Cinematic Cyberpunk Portfolio | Codrops

The Architect’s Toolkit: Blending Art and Advanced Web Technologies

This ambitious project served as a playground for experimentation, allowing Giulio to push the boundaries of modern web development. The chosen technology stack reflects a meticulous balance between cutting-edge performance and creative control.

3D Modeling and Animation: Blender
As the world’s leading open-source 3D software, Blender was indispensable for creating and preparing all the 3D models and scenes. From the avatar to the cyberpunk buildings and the DeLorean, Blender facilitated modeling, texturing, rigging, and rendering. While some models were sourced from platforms like Sketchfab (e.g., the avatar, buildings, and DeLorean), Blender was crucial for their integration and customization.

Real-time Rendering Prowess: WebGPU
A significant technical leap for this project was the adoption of WebGPU. This next-generation web graphics API dramatically reduces the overhead between JavaScript and the GPU, leading to more stable framerates and enhanced shader performance. Giulio explored Three.js’s Shader Language (TSL), which compiles to both WGSL (WebGPU Shading Language) and GLSL (OpenGL Shading Language), ensuring compatibility and a WebGL fallback. This choice represents a commitment to leveraging the most advanced rendering capabilities available on the web.

Dynamic Frontend Development: React
Despite the visually dominant canvas element, the underlying Document Object Model (DOM) plays a crucial role. React, paired with React Router, manages all sections, text positioning, and scroll behavior, providing a robust and declarative foundation for the interactive frontend.

Seamless Motion and Interaction: Three.js and GSAP
For precise control over the rendering pipeline and complex operations involving THREE.RenderTarget, Giulio opted for pure Three.js instead of React Three Fiber (R3F). This decision ensured greater consistency and granular control, critical for the project’s intricate visual effects. GSAP (GreenSock Animation Platform) proved irreplaceable for all scroll-based animations, including audio synchronization, and for crafting precise timelines on material uniforms, delivering the smooth, cinematic transitions.

They Call Me Giulio: The Making of a Cinematic Cyberpunk Portfolio | Codrops

Optimized Scrolling: Lenis + Custom Logic
While Lenis provided the foundation for smooth and performant scrolling, Giulio implemented custom logic for section snapping. Instead of relying on standard Lenis Snap or CSS Snap, which often use a 50% viewport height threshold, a custom 30% threshold was developed. This subtle adjustment significantly improved the natural feel and intuitiveness of scene transitions.

Monorepo for Scalable Development: Turborepo
Given the single-page application’s architecture with four distinct Three.js scenes, optimization was paramount. Turborepo was used to organize the project as a monorepo, allowing independent development and rendering of each scene. This modular approach prevented unnecessary asset loading and facilitated efficient sharing of classes and assets across the entire project.

AI in Sound Design: Suno’s Emerging Role
To complement the melancholic, neo-noir aesthetic, a Vangelis-inspired soundtrack was envisioned, echoing the "Tears in Rain" synth atmosphere. Lacking professional sound design skills, Giulio turned to AI, specifically Suno, to generate the background audio. While the experience was described as "quite limited and repetitive," requiring dozens of prompts and iterations, a track emerged that successfully captures the desired deep, atmospheric, retro-futuristic mood, perfectly aligning with the android’s contemplative nature. This highlights both the potential and current limitations of AI in bespoke creative endeavors.

Navigating the Digital Frontier: Overcoming Technical Hurdles

The development of "They Call Me Giulio" involved navigating several complex technical challenges, each requiring innovative solutions to achieve the desired cinematic quality and performance.

The Integrated Rendering Pipeline
The entire interactive experience is encapsulated within a THREE.Scene, managed by a SectionTransition class. This class orchestrates an THREE.OrthographicCamera and a THREE.PostProcessing object, dynamically updating one or two scenes based on transition states. Each Section object houses its specific elements (avatar, DeLorean, buildings) and instantiates its own TextScene, ensuring all 2D elements are affected by global transitions. The TextScene also incorporates a WatercolorBrush object using a ping/pong accumulator to record mouse movement, which then distorts text UVs and adjusts brightness, integrating text seamlessly into the 3D environment. Ultimately, SectionTransition blends the output textures from active sections to create smooth, cinematic transitions.

They Call Me Giulio: The Making of a Cinematic Cyberpunk Portfolio | Codrops

Dynamic Section Transitions: Inspired by The Matrix
Developing the ideal transition between sections proved to be a significant undertaking. The final effect, reminiscent of the helicopter crash shockwave in The Matrix that reveals the virtual nature of its world, uses a shader-based image transition technique. Inspired by Yuri Artiukh’s work, this shader manipulates two textures (A and B) using moving masks and multiplier bands. Perlin noise introduces irregularity to the mask, creating a dynamic, organic progression. A "bounce effect" and UV distortion (lens-like effect) further enhance the visual impact, making areas near the transition edge deform more intensely. Additional UV displacement, velocity-based zoom-out, and a subtle RGB split (chromatic aberration) contribute to a "glitchy/chromatic" look, reinforcing the cyberpunk aesthetic.

Optimized Asset Management: Upfront Loading and KTX2
To simplify loading logic and prevent missing asset side effects, all assets are loaded upfront. Despite this, the entire experience, including 3D models and textures, is optimized to a lean 12.5 MB. A custom gltf-transform pipeline processes GLTF models, simplifying geometry and downsizing textures to a maximum of 1024px. Crucially, 3D models are converted to KTX2 format, leveraging hardware compression (Basis Universal) for significantly reduced VRAM usage. Textures and other images are further compressed using the AVIF format, maximizing bandwidth efficiency.

The Cinematic Entry: Dolly Zoom Animation
The initial entry into the portfolio is a powerful cinematic "punch" delivered via a Dolly Zoom, also known as the Vertigo Effect. When a visitor presses Enter, the camera smoothly moves towards the subject while the field of view simultaneously widens. This creates the illusion of the background "breathing" and expanding, with the subject remaining constant in the foreground. This visually impactful technique, though technically straightforward in a 3D environment, serves as a compelling and immersive portal into the experience.

Bringing the Avatar to Life: Rigging and AnimationMixer
The avatar’s varied poses and reactions throughout the site are achieved through a detailed animation pipeline. This involves rigging the 3D model with an armature (bones) and using Blender’s Weight Painting tool to map bone influence to specific vertices for fluid deformation. Animations are created as Animation Actions on Blender’s Dope Sheet, then pushed to the NLA Editor for compatibility with Three.js. The exported .glb model is then controlled by THREE.AnimationMixer, allowing for precise playback, fading between animations, and programmatic management of each AnimationAction‘s progress.

Populating the Cyberpunk Sky: InstancedMesh for Flying Cars
No cyberpunk scene is complete without flying vehicles. The cars soaring between skyscrapers in the opening scene are efficiently managed as a THREE.InstancedMesh with only 100 instances. Given the post-processing bokeh effect blurring them, the geometry of these cars is kept basic to conserve polygons. Their flight paths are defined by a THREE.CatmullRomCurve3 parametric curve, derived from a Blender-generated list of curve points. A function returns coordinates and tangents along the curve, allowing cars to be offset and spread across the path, looping back to the beginning upon reaching the end. This technique is also applied to the flying police car, adding depth and motion to the cityscape.

Performance and Precision: A Deep Dive into Optimizations

They Call Me Giulio: The Making of a Cinematic Cyberpunk Portfolio | Codrops

In a single-page application featuring multiple complex 3D scenes, aggressive optimization was paramount to ensure a smooth, high-performance user experience.

Assets Compression and Formats: Beyond initial optimization, all GLTF models undergo a custom gltf-transform pipeline for geometry simplification and texture downsizing to a maximum of 1024px. The conversion to KTX2 format for 3D model textures leverages hardware compression (Basis Universal), significantly reducing VRAM usage by keeping textures compressed even in memory. Additionally, all other textures and images are compressed using the AVIF format, known for its superior compression ratios.

Selective Scene Updates: A core optimization strategy involves updating and rendering only the visible scenes. The site’s scroll position dictates which scene(s) are active, ensuring that the render loop and post-processing effects are not unnecessarily executed for off-screen content. This significantly conserves computational resources.

Shaders and Draw Calls: To prevent shader overload, noise functions are "baked" into textures and sampled at runtime, rather than being computationally generated. By scaling and offsetting UVs, this technique closely mimics true noise functions while being far more efficient. In this project, all runtime noise calculations were eliminated by utilizing only three pre-baked textures: Perlin noise, Fractional Brownian Motion (fBm), and Random noise. Furthermore, draw calls were heavily optimized. Elements such as rain, cars, and buildings are implemented as InstancedMesh objects, allowing the GPU to handle their transformations and translations in a single draw call, drastically reducing the CPU-GPU communication overhead.

Impact and Implications: A New Benchmark for Digital Portfolios

The "They Call Me Giulio" portfolio is more than just a personal project; it represents a significant benchmark for immersive web experiences and creative development. Its success underscores a growing trend in web design where functionality and aesthetics converge to create deeply engaging digital narratives.

They Call Me Giulio: The Making of a Cinematic Cyberpunk Portfolio | Codrops

Resounding User Feedback: The project’s success is powerfully validated by the overwhelmingly positive feedback received in the "Room of Memories." Hundreds of messages, ranging from simple greetings to profound expressions of inspiration, highlight the site’s impact. Comments like "This is the best site I’ve seen till today. I have no words to explain how this site has inspired me to do more creative work" and "Thanks for proving humans were worth designing" demonstrate the emotional connection and motivational influence the portfolio has on its visitors. Other comments such as "Amazing Website man, never ever thought off – highly creative and everything matches – even the sound. Kudos man really 🙏🙏🙌🙌" and "This makes me believe that I can create what I’m currently struggling to make it simply takes patience and practice because this is amazing man" confirm the project’s success in achieving its goal of being memorable and inspiring. The unique "side quest" feeling evoked by the Room of Memories, as one user noted, "Is this the coolest feature I’ve seen on a portfolio? YES. Who doesn’t like side quests," further reinforces its innovative appeal.

Setting a New Standard: Giulio’s project demonstrates the immense potential when a developer embraces a designer’s mindset, focusing on narrative and emotional impact over conventional metrics. It suggests a future where personal branding for creative professionals involves crafting interactive digital worlds rather than just static online resumes. The strategic use of advanced technologies like WebGPU, Three.js, and sophisticated optimization techniques provides a blueprint for delivering high-fidelity, cinematic experiences directly in the browser. This portfolio not only showcases Giulio’s technical prowess but also his unique artistic vision, setting a new standard for how individuals can present their skills and personality in the digital age. The anticipation of revisiting the "Room of Memories" in twenty years speaks to the enduring legacy such a thoughtful and creatively executed project can cultivate.

]]>
https://codeguilds.com/they-call-me-giulio-the-making-of-a-cinematic-cyberpunk-portfolio-codrops/feed/ 0