Blender (software): Difference between revisions

 
(5 intermediate revisions by the same user not shown)
Line 30: Line 30:
* [https://www.youtube.com/watch?v=TjGL4RjR13Q Making a raspberry by Bad Normals]
* [https://www.youtube.com/watch?v=TjGL4RjR13Q Making a raspberry by Bad Normals]
* [https://www.youtube.com/watch?v=52UYqe3zdxQ Making a gumdrop by Blender Guru]
* [https://www.youtube.com/watch?v=52UYqe3zdxQ Making a gumdrop by Blender Guru]
==Materials and Shaders==
Blender uses a node system for shader which let you composite different textures and BSDFS.
===Bypass BSDF===
If you wish to use a raw colors from a texture, bypassing materials altogether, you can directly attach a image texture node output to the material output.<br>
For transparent textures, you will need a transparent BSDF node and a mix node with alpha connected to <code>mix.outputs["Fac"]</code> to achieve transparency.


==Animations==
==Animations==


==Rendering and Compositing==
==Rendering and Compositing==
Press <key>F12</key> to render.
Press {{key press|F12}} to render.


===Denoising===
===Denoising===
Line 120: Line 127:
===MVP matrices===
===MVP matrices===
[https://github.com/blender/blender/blob/v2.93.0/doc/python_api/examples/gpu.9.py Example python code]
[https://github.com/blender/blender/blob/v2.93.0/doc/python_api/examples/gpu.9.py Example python code]
<pre>
<syntaxhighlight lang="python">
# Model matrix
# Model matrix
my_object.matrix_world
my_object.matrix_world
Line 130: Line 137:
projection_matrix = bpy.context.scene.camera.calc_matrix_camera(
projection_matrix = bpy.context.scene.camera.calc_matrix_camera(
     bpy.context.evaluated_depsgraph_get(), x=WIDTH, y=HEIGHT)
     bpy.context.evaluated_depsgraph_get(), x=WIDTH, y=HEIGHT)
</pre>
</syntaxhighlight>


===Python Modules===
===Python Modules===