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 - Using Your UFO as a Model (Difficulty: 2)

3D - Using Your UFO as a Model (Difficulty: 2)

Scheduled Pinned Locked Moved Tutorials
1 Posts 1 Posters 1.8k 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

    • Parent-children relationship
    • Naming objects
    • Speeds of objects
    • Export object as a GLB file
    • Community models

     
     

    Introduction

    In an earlier tutorial, you learned how to build a UFO. In this tutorial, you will learn how to control it to fly around, and also how to allow others to use your UFO model as well.

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/649568bf-68dc-4cbd-b91b-e473f3abdf85.gif" width="470" style="border-radius: 5px; border: 1px solid #29622d;">

     
     

    Step 1 - Make a Copy of Your UFO Project

    First, go to the “My Stuff” page on the CreatiCode website, and search for the UFO project you created before. If you don’t have it yet, please complete this tutorial first.

    Save this project as a copy, and give it a new name, such as “Flying UFO”. It is often a good idea to make copies of your projects, so that if you delete any block or sprite by accident, you can recover it from the original project.

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/f4bfdd49-b9a1-4845-b057-fe142f06952a.gif" width="500" style="border-radius: 5px; border: 1px solid #29622d;">

     
     

    Step 2 - Name each component of the UFO

    Currently, our UFO has 3 components. To make them act like one, we need to link them up, using the parent-children relationship.

    To do that, we first need to give each component a name, such as “p” for the main body, and “c1” and “c2” for the other 2 components:

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/8eefe1fb-d537-4b43-b510-e790d9117c89.png" width="900" style="">

     
     

    Step 3 - Set up parent and children relations

    Now we can set “p” as the parent of the 2 child components.

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/0d439bf1-53d3-4eef-8a49-d71a93929edc.png" width="900" style="">
     
    Note that after this step, you still don’t see any difference when you run the project, but your UFO can now be treated as one object instead of 3.

     
     

    Step 4 - Make the UFO Fly and Spin

    For a simple test, let’s make the UFO fly and spin. To control the entire UFO, we need to select the parent object “p” as the sprite object. When we set the rotation and rising speeds of “p”, all its children will do so as well.

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/ce602caf-1ced-45b1-b0c6-2bf36f02481f.gif" width="950" style="border-radius: 5px; border: 1px solid #29622d;">

     
     

    Step 5 - Export the UFO As a Model File

    Suppose you love your UFO model so much that you want to use this UFO in other projects, and also allow others to use it. To do that, we need to export the UFO object as a GLB file.

    You only need to run this one block (place it anywhere in the code editor):

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/814bf11a-30ef-487a-82ee-7ff2ab068fc6.gif" width="600" style="border-radius: 5px; border: 1px solid #29622d;">

     

     

    Step 6 - Reduce the Model File Size

    The GLB model file may sometimes get really large. It will take longer to load large files, so people in general prefer smaller model files.

    To make the file smaller, we can reduce the number of “sides” of each sphere from 64 to 32 to 16. The visual quality would not change too much, but the file size will be much smaller.

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/15660b3e-471f-40e1-b150-f79a2e3c2083.png" width="900" style="">

     
     

    Step 7 - Upload and Share Your Community Model

    Now we have the GLB file, we can upload it as a new “community model”, so that you and any other user on the CreatiCode platform can use it for free.

    To do that, go to the “My Stuff” page, and click the “3D Models” category. Click “Share a New Model”, then select the GLB file you want to upload.

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/18f444d6-3965-4a43-be15-33b6038bbff0.gif" width="1000" style="border-radius: 5px; border: 1px solid #29622d;">
     
    Note that depending on the file size, sometimes it might take a few minutes to upload a model file.

     
     

    Step 8 - Use Your Community Model in a New Project

    To test out your new model, you can create a new project with an empty scene, then load the model using the “add community model” block:

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/89c49cac-cc4d-42e6-b7ff-edc76f5d6106.gif" width="1000" style="border-radius: 5px; border: 1px solid #29622d;">
     
    Now you can use this UFO object the same way as how you use any other model provided in the library.

     
     

    Creative Ideas

    You can use this method to build and share many different types of objects, such as a house or a smiley face.

    In addition, you can try to make the model file smaller by changing the geometry and material of your UFO. For example, try to change the number of sides from 64 to 32 or 16, and check if you can get a smaller file.

    1 Reply Last reply
    0
    • 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