Navigation

    CreatiCode Scratch Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • CreatiCode

    3D - A Spinning Earth (Difficulty: 1)

    Tutorials
    1
    1
    11424
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • info-creaticode
      CreatiCode last edited by admin

       

      Key Topics Covered

      • Initializing 3D scenes
      • Using spheres
      • Updating textures
      • Setting object speeds
      • Highlighting objects

       
       

      Introduction

      In this tutorial, you will learn to create a spinning Earth:

      alt text

       
       

      Step 1 - Initialize An Empty Scene

      First, create a new project, and load an empty scene using the “initialize 3D scene” block.

      By default, it will create an empty scene with nothing but a blue background:

       
       

      Step 2 - Set the Background Starfield

      Next, use the “set sky” block to create a better-looking backdrop:

      You should get a starfield with the Sun on the right.

      alt text

       
       

      Step 3 - Add a Big Sphere

      Next, add a sphere with a large diameter of 10000 to the scene. Don’t worry about its color yet.

      The sphere would look brighter on the side that faces the Sun.

      alt text

       
       

      Step 4 - Add Earth Texture

      Now we need to update the sphere’s texture with the Earth. Add the “update texture” block, click the “Please select” input box, then search for “Earth” in the library window.

      alt text

       
       

      Step 5 - Flip the Earth Texture

      You might have noticed an issue with the texture: the continents are upside-down. We need to flip the texture vertically to correct this issue. This can be done by changing the vertical repeat count from 1 to -1.

      alt text

       
       

      Step 6 - Make the Earth Spin

      To make the Earth object spin, we can use the “set speed” block. Note that the Earth needs to be spinning from “left” to "right, so the “Z-rotation” speed needs to be negative.

      Now your Earth object should be spinning slowly.

      alt text

       
       

      Step 7 - Highlight Around the Earth

      Lastly, to make the Earth object glow in blue lights, we can create a new highlight layer, then add the sphere to that layer.

      Now your Earth object should carry a blue light around it.

      alt text

       

      Next Steps

      You can try to use a similar method to build other projects. Here are some example ideas:

      • A Different Planet: You can change Earth to other planets like Mars;
      • A Spinning Trophy: You can try to make a trophy object spin and shine.
      1 Reply Last reply Reply Quote 2
      • Pinned by  info-creaticode info-creaticode 
      • First post
        Last post