Editing Tutorial/Shaders
From BRL-CAD
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 14: | Line 14: | ||
3. A new window will open. Hit the button on the right of the Name zone, click “Select from all” and chose the region you want to edit. | 3. A new window will open. Hit the button on the right of the Name zone, click “Select from all” and chose the region you want to edit. | ||
− | [[image: ShadersShot3.png | Combination Editor | + | [[image: ShadersShot3.png | Combination Editor]] |
4. Hit the “Show Shader” button. | 4. Hit the “Show Shader” button. | ||
Line 26: | Line 26: | ||
(sph.r is the example model. Where sph.r is written you should write your models name.) | (sph.r is the example model. Where sph.r is written you should write your models name.) | ||
− | [[image: ShadersShot5.png | Raytracing in MGED | + | [[image: ShadersShot5.png | Raytracing in MGED]] |
− | + | Default: | |
− | [[image: ShadersShot6.png | Default Raytraced Sphere | + | [[image: ShadersShot6.png | Default Raytraced Sphere]] |
+ | |||
+ | [[image: ShadersShot7.png | Modifying Attributes]] [[image: ShadersShot8.png | Object Properties]] | ||
6. Change the Transparency, mirror reflectance, Specular reflectivity, Difuse reflectivity, Refractive index, Extinction, Shininess and Emission values, raytracing at the same time, so you can find the shader you want. | 6. Change the Transparency, mirror reflectance, Specular reflectivity, Difuse reflectivity, Refractive index, Extinction, Shininess and Emission values, raytracing at the same time, so you can find the shader you want. | ||
− | + | ||
+ | |||
+ | |||
+ | Blue mirror: | ||
[[image: ShadersShot9.png | Blue Mirror Attributes]] | [[image: ShadersShot9.png | Blue Mirror Attributes]] | ||
− | [[image: ShadersShot10.png | Blue Mirror | + | [[image: ShadersShot10.png | Blue Mirror]] |
7. If you want to apply more then one material property you can choose stack from the list. Use the “Add shader” button to add as many shaders you want. | 7. If you want to apply more then one material property you can choose stack from the list. Use the “Add shader” button to add as many shaders you want. | ||
Line 44: | Line 49: | ||
− | + | Example: | |
− | [[image: ShadersShot12.png | Set up Shader | + | [[image: ShadersShot12.png | Set up Shader]] [[image: ShadersShot13.png | New Settings Example]] |
You should note that the ordering of the shaders matter. | You should note that the ordering of the shaders matter. | ||
Line 52: | Line 57: | ||
If you change their order... | If you change their order... | ||
− | [[image: ShadersShot14.png | Different Order | + | [[image: ShadersShot14.png | Different Order]] |
− | + | ||
You get... | You get... | ||
− | [[image: ShadersShot15.png | New Example | + | [[image: ShadersShot15.png | New Example]] |
Here you can find an Introduction to MGED and Shaders presentation: [[Documentation]] | Here you can find an Introduction to MGED and Shaders presentation: [[Documentation]] |