ScratchData LogoScratchData
Back to CodeNoey's profile

3D jibanyan

COCodeNoey•Created October 17, 2024
3D jibanyan
1
0
5 views
View on Scratch

Instructions

←→↑↓(Arowkey):perspective change 0-9key:change action https://scratch.mit.edu/projects/717645005 This is a self remix of the above project. For those who want to change the 3D model or edit the action Almost anything that can be expressed with spheres and lines can be drawn. lstLinkModel: This is the list of 3D models. lstModelAction: This is the list of action data. Go to program edit mode (see inside) and right-click on each of the above two lists to "export". Open the exported text file with notepad etc., edit it as you like, then right-click the list on the program edit screen again and select "import". and run the project to reflect the edited contents. ☆lstLinkModel: 3D model First two lines: These first two lines are used inside the actual program, so do not change them. These two lines are the settings corresponding to the viewpoint change. The definition of the 3D model starts from the third line below. Each line is a unit named object. Definitions on each line are separated by one or more space characters. Do not use tab characters. 1st column item: row number of the parent object. The line number of the object from which the object defined in this line hangs. 0 means there is no parent object. This concept of hanging is important. For example, if the parent object moves 30 degrees, all the coordinates of the child objects hanging from it will move 30 degrees. For example, the elbow hanging on the shoulder hits this. 2nd column item: Object type. Defines what kind of object this object is. It can be roughly divided into the origin system and the substance system. ・origin system Roll: Specifies a joint that rotates in the Z-axis direction. Pitch: Specifies a joint that rotates in the x-axis direction. Yaw: Specifies a joint that rotates in the y-axis direction. ・entity system Stamp: Stamp the sprite. Line: Draw a straight line. Line2: Be sure to write on the next line as a set with Line. Draws a straight line at the coordinates specified by Line and Line2. 3rd column item: X coordinate relative to the parent object. 4th column item: y-coordinate relative to the parent object. 5th column item: z-coordinate relative to the parent object. 6th and subsequent columns (origin system): Not used. Please use it for comments, etc. 6th column (for Stamp): Specifies the ratio of the sprite. 1.0 is normal size, 2.0 is double size, 0.5 is half size. 7th column (for Stamp): Specify the number of the costume to be stamped. The costume uses the costume of the View sprite in the program. Please change this to your favorite image. (However, I think that it will probably be strange if it is not a sphere image.) 6th column (for Line): Line thickness. Please specify 1 or more. 7th column (for Line): Line color. 0-100 corresponds to the color in Scratch as it is. Specifying a value less than 0, such as -1, will result in black. Also, if you specify a value greater than 100, it becomes white. 6th column (for Line2): Not used. The thickness and color of the line will be those defined in the previous Line. Later: Do not use. Please use it for comments, etc. *Note: When defining objects, be sure to define the origin system first. If you define the body system first or define the body system inside the origin system, it will not work properly. Other than that, there are no order restrictions for specifying objects. This is the explanation of lstLinkModel: 3D model. ☆lstModelAction: action data Each line is the angle data of each joint for each action step. However, the line whose first character is "/" defines the beginning of the action definition and the name of the action. Even if the joint angle is defined here, it will not be reflected. 1st column item: The position of the next line to be executed when the angle specified in this line is reached. For example, if this value is 1, execute the line: -3 will go back 3 lines. This makes it repeatable. If set to 0, return to the 0th defined action. 2nd column item: Maximum rotation speed of the joint. Smaller values mean slower action, higher values mean faster action. Do not enter a value less than 0 in this field. 3rd and subsequent columns: Set the angle of each joint defined in lstLinkModel. Set the number of all origin systems minus 2 axes. (The first two axes are used in the program and cannot be set in this list.) The setting order of this item follows the order of the origin system specified in lstLinkModel. If you have any questions, please let us know in the comments section.

Project Details

Project ID1083056951
CreatedOctober 17, 2024
Last ModifiedOctober 17, 2024
SharedOctober 17, 2024
Visibilityvisible
CommentsAllowed

Remix Information

Parent ProjectView Parent
Root ProjectView Root