Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • CreatiCode
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

CreatiCode Scratch Forum

  1. CreatiCode Forum
  2. Knowledge Base
  3. Tutorials
  4. 3D - A Spinning Earth (Difficulty: 1)

3D - A Spinning Earth (Difficulty: 1)

Scheduled Pinned Locked Moved Tutorials
1 Posts 1 Posters 13.0k Views
  • 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.
  • CreatiCodeI Offline
    CreatiCodeI Offline
    CreatiCode
    wrote on last edited by admin
    #1

     

    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
    1
    • CreatiCodeI CreatiCode pinned this topic on

    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

    With your input, this post could be even better 💗

    Register Login
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • CreatiCode