Uploaded October 2025 | Updated September 2026, 2 weeks ago
Today’s video is a little different—it’s a mystery! We’re coding an optical illusion, but I won’t reveal how it looks until the end, hoping to catch you by surprise.
This project will teach you how to use JavaScript and the HTML canvas element, work with multiple canvases, apply rotations, and draw patterns in creative ways. It’s a fun and beginner-friendly coding challenge that introduces concepts you can apply to many visual projects.
Join me as we solve this coding mystery together—because we’re about to unlock some serious creativity (and a surprise)! Let’s dive in!
Today’s video is a little different—it’s a mystery! We’re coding an optical illusion, but I won’t reveal how it looks until the end, hoping to catch you by surprise.
This project will teach you how to use JavaScript and the HTML canvas element, work with multiple canvases, apply rotations, and draw patterns in creative ways. It’s a fun and beginner-friendly coding challenge that introduces concepts you can apply to many visual projects.
Join me as we solve this coding mystery together—because we’re about to unlock some serious creativity (and a surprise)! Let’s dive in!
![A Virtual World - JavaScript Course: Lesson 6 / 11 [Pseudo 3D with JavaScript]
Welcome to the course where we build a self-driving car simulation in a virtual world.
In this video, we learn a way to make our items 3D. While you could certainly add some sprites to your existing 2D interface, creating a 3D look is a whole different experience.
Ive previously demonstrated how to use images for adding cars, and even offered tips for recoloring sprites in previous tutorials. But what if youre aiming for a genuine 3D appearance? You could completely refactor your application to utilize a 3D rendering engine. Like:
⭐ Bretto ported the code from Phase 1 to ThreeJS:
https://github.com/Bretto/evolution
⭐ @davidmurphy563 ported the code from Phase 1 to Godot:
https://youtu.be/FJFrSCEWqLU?si=toU4O43h2oaJmKUy
I want to teach you a way to get the 3D look without using a 3D engine because I find this effect visually appealing, and its surprisingly straightforward to implement.
Beyond the visual aspect, you may also find the underlying mathematics intriguing. While 3D renderers primarily employ triangles or voxels, our focus wont involve these elements. Nonetheless, this exploration touches upon fundamental principles of 3D rendering, providing insights into how these complex systems function.
Have Fun! :-)
⭐PLAYLIST⭐
https://www.youtube.com/playlist?list=PLB0Tybl0UNfZtY5IQl1aNwcoOPJNtnPEO
⭐FINAL APP⭐
https://radufromfinland.com/projects/virtualworld
💻CODE💻
https://github.com/gniziemazity/virtual-world
5. Buildings And Trees = follow along
6. Fake 3D = code after this lesson (including the part for channel members)
⭐ALL PREREQUISITES⭐
https://www.youtube.com/playlist?list=PLB0Tybl0UNfZ3nnHVg8SJ4uK3R4QD6R0H
⭐My Video on the Euclidean Distance⭐
https://youtu.be/3rPwfmrCwVw
☕Buy me a Coffee?☕
https://www.buymeacoffee.com/radum
⚡️Join this Channel⚡️
https://youtube.com/@radu/join
⭐Timestamps⭐
00:00 Introduction
01:29 Creating the Tree Object
05:08 Explaining the 3D approach
10:47 Styling the 3D Trees
16:02 Random number generation
20:35 Creating the Building Object A Virtual World - JavaScript Course: Lesson 6 / 11 [Pseudo 3D with JavaScript]](https://i.ytimg.com/vi/aKzlooeJNM8/mqdefault.jpg)
![🕯️Magic Candle🕯️JavaScript Project [With Device Orientation sensor]
Ill be coding a simple candle simulation where the flame always points up (even if you rotate the device). 🕯️Magic Candle🕯️JavaScript Project [With Device Orientation sensor]](https://i.ytimg.com/vi/avxStAp0mco/mqdefault.jpg)








