User Tools

Site Tools


tutorials:startup-model

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
tutorials:startup-model [2025/06/17 10:01] barley1965tutorials:startup-model [2025/06/17 15:14] (current) barley1965
Line 39: Line 39:
 Let's have a short look around: Let's have a short look around:
  
-  - The RGG toolbar provides a button for each public function in the RGG code (the code can be seen in the code editor(4)) if you wish you can click on run and see the changes in the 3D view. Additionally, it comes with a reset button, which brings the simulation back to the starting point (defined in the init function).+  - The RGG toolbar provides a button for each public function in the RGG code (the code can be seen in the code editor(4))if you wish you can click on run and see the changes in the 3D view. Additionally, it comes with a reset button, which brings the simulation back to the starting point (defined in the init function).
   - The 3D view shows the current state of the model. It is possible to navigate through the model using either mouse control or the navigation button on the top right. With the menu it is possible to customize the view and the camera and to render the view with different renderers. Additionally, in the menu under View /export you can export the 3d scene in several formats. The 3D view is also used to select and edit objects in the scene as shown on the right. When selected the attribute editor (7) is opened.   - The 3D view shows the current state of the model. It is possible to navigate through the model using either mouse control or the navigation button on the top right. With the menu it is possible to customize the view and the camera and to render the view with different renderers. Additionally, in the menu under View /export you can export the 3d scene in several formats. The 3D view is also used to select and edit objects in the scene as shown on the right. When selected the attribute editor (7) is opened.
   - A GroIMP model is coded in the RGG programming language, and the code is stored in files with the extension rgg. To manage the files the File Explorer is used, here you can add, create and delete files and folders. To create a file you have to add a not yet existing file. If you select a file it is opened in the code editor (4) you can try this with the parameters.rgg file in the folder param.   - A GroIMP model is coded in the RGG programming language, and the code is stored in files with the extension rgg. To manage the files the File Explorer is used, here you can add, create and delete files and folders. To create a file you have to add a not yet existing file. If you select a file it is opened in the code editor (4) you can try this with the parameters.rgg file in the folder param.
-  - GroIMP includes the code editor JEdit to edit the source files of the simulation. If not changed in the preferences, pressing Ctrl-s will save the code and recompile and reset your simulation. Try this by changing setShader(GREEN) to setShader(BLUE) in the file Model.rgg and save. This should turn our little sphere blue.+  - GroIMP includes the code editor jEdit to edit the source files of the simulation. If not changed in the preferences, pressing Ctrl-s will save the code and recompile and reset your simulation. Try this by changing setShader(GREEN) to setShader(BLUE) in the file Model.rgg and save. This should turn our little sphere blue.
   - If, for example, you mis-type setShader(BLUH) (instead of BLUE) you will see an error message in the messages panel. This panel will give you information about most events and issues in your project.   - If, for example, you mis-type setShader(BLUH) (instead of BLUE) you will see an error message in the messages panel. This panel will give you information about most events and issues in your project.
   - Each file you create in your model is compiled and added to the Meta Objects explorer. If you select one here it opens the attribute editor (7) for the model.   - Each file you create in your model is compiled and added to the Meta Objects explorer. If you select one here it opens the attribute editor (7) for the model.
tutorials/startup-model.1750147311.txt.gz · Last modified: 2025/06/17 10:01 by barley1965