test new 1
-
A 3D “scene” is similar to a 2D “stage” in Scratch. It is a pre-built virtual world with some background, objects, lighting, and cameras, so you just need to add new objects/characters specific to your project into this world. For example, a “city” scene may contain buildings and roads.
Key Block 1
-
Scene Name: By default, an “Empty” scene will be loaded with no objects in it. You can select a different scene by clicking the “Empty” input field, which will pop up a library window for you to browse and select a new scene.
-
Hidden Mode: By default, the scene is not hidden when it is created. You can set it to be hidden instead by selecting “yes”. To reveal the scene later, you can use the show 3D scene block.
Behavior
When running this block, the 3D scene will be downloaded into your browser and then drawn on the stage window. For larger scenes, such as the “city”, it will take longer to download and draw it.
Program execution will pause at this block, and continue to the next block when the scene is ready.
Example
Program:
Output:
Key Block 2
- Visible Mode: If “yes”, then the 3D scene will become visible; if “no”, then the 3D scene will be hidden.
Behavior
When running this block, the 3D scene will become visible or hidden immediately. This is useful if you want to hide the 3D scene initially and reveal it later. You may also use this block to switch from 3D mode to 2D mode, such as displaying a 2D splash screen or animation.
Example
Program:
Output:
Run it yourself:
https://play.creaticode.com/projects/a288e7d0063ff84a45e66da5
Demos
Build and run your first 3D program:
Change the size of the 3D window:
See Also
-
-
@info-creaticode
What tutorial was this used for? -
@luna teaching?
-
@jeffreyrb03-gmail
No, I mean what tutorial in the Tutorials subcategory. -
Ill see.
-