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. 3D Blocks
  4. Extrusion

Extrusion

Scheduled Pinned Locked Moved 3D Blocks
1 Posts 1 Posters 991 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

     

    Prerequisite

    • Initializing a 3D Scene

     

    Description

    Extrusion means converting a 2D image to a 3D object by giving it some thickness. For example, you can extrude this apple image into a 3D apple “board” with thickness:

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/b355362c-522d-4eb6-9abc-16519d7a1de6.gif" width="600" style="">

    To create an extruded object, you first need to add the image to the sprite’s costume. You can either select an image from the costume library, or draw the costume yourself, or upload an image file. Please make sure the costume is in the Vector format. That is, if you see the blue button at the bottom of the costume says “convert to vector”, you need to click on it.

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/8f068d13-18a1-417d-8c03-ac1a3b51974b.png" width="250" style="">

    Once the costume image is ready, you can run the following block to extrude it into a 3D object:

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/7e6190b2-40c7-4b25-aba4-129264b759b7.png" width="700" style="filter: drop-shadow(0.35rem 0.35rem 0.4rem rgba(0, 0, 0, 0.5));">

     

    Costume Name

    The first input is a dropdown for you to select the name of the costume that contains the image you want to extrude.

     

    Thickness and Side Color

    The extruded 3D object will have a flat side face around its contour. These 2 inputs allow you to control how thick the object is, and the color of the side face. Here are some examples with different thicknesses and colors:

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/ee8f7bdd-71dc-45bd-a84d-08900b72f87d.gif" width="480" style="border-radius: 5px; border: 1px solid #29622d;">

     

    Granularity

    When we extrude an image, the contour of the image is first converted to many small line segments. The granularity value controls the length of these line segments, it can be any value greater than 0, such as 0.1 or 50. The larger the value, the longer lines are used, which simplifies the 3D object, but also makes the curves less smooth. Here are some examples with a granularity of 30, 10 and 1:

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/f4804f36-210c-461e-ac39-abf37bda6966.gif" width="500" style="border-radius: 5px; border: 1px solid #29622d;">

     

    Notes on Extruded Objects

    The extruded object will be facing the same direction as the Y axis, which is also called the “Positive Y” direction.

    In addition, the center of the costume image will be located at the center of the 3D world. In other words, you can shift the position of the image in the costume editor, and it will not affect the extrusion result:

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/7f366f1b-01be-4178-9964-940b03e3404f.gif" width="1000" style="border-radius: 5px; border: 1px solid #29622d;">

     

    Demo: 3D Text with Thickness

    You can use extrusion to create 3D text that has some thickness. You just need to write the text in the costume editor, then extrude it with the desired thickness. Note that to retain the special fonts of your text costume, you need to convert it to the bitmap format then convert it back to the vector format:

    https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/fbae703a-67b9-4dc8-9704-15079d34fa0c.gif" width="1000" style="border-radius: 5px; border: 1px solid #29622d;">

    https://play.creaticode.com/projects/fd767ae1db92bb63b909ca57

    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