Changeset View
Changeset View
Standalone View
Standalone View
render_povray/render.py
| Context not available. | |||||
| matrix = global_matrix * ob.matrix_world | matrix = global_matrix * ob.matrix_world | ||||
| # Color is modified by energy #muiltiplie by 2 for a better match --Maurice | # Color is modified by energy #multiplied by 2 for a better match --Maurice | ||||
| color = tuple([c * (lamp.energy) for c in lamp.color]) | color = tuple([c * (lamp.energy) for c in lamp.color]) | ||||
| tabWrite("light_source {\n") | tabWrite("light_source {\n") | ||||
| Context not available. | |||||
| tabWrite("radius %.6f\n" % \ | tabWrite("radius %.6f\n" % \ | ||||
| ((degrees(lamp.spot_size) / 2.0) * (1.0 - lamp.spot_blend))) | ((degrees(lamp.spot_size) / 2.0) * (1.0 - lamp.spot_blend))) | ||||
| # Blender does not have a tightness equivilent, 0 is most like blender default. | # Blender does not have a tightness equivalent, 0 is most like blender default. | ||||
| tabWrite("tightness 0\n") # 0:10f | tabWrite("tightness 0\n") # 0:10f | ||||
| tabWrite("point_at <0, 0, -1>\n") | tabWrite("point_at <0, 0, -1>\n") | ||||
| Context not available. | |||||
| print("This is an instance of " + name) | print("This is an instance of " + name) | ||||
| continue | continue | ||||
| print("Writing Down First Occurence of " + name) | print("Writing Down First Occurrence of " + name) | ||||
| ############################################Povray Primitives | ############################################Povray Primitives | ||||
| # special exportCurves() function takes care of writing | # special exportCurves() function takes care of writing | ||||
| Context not available. | |||||
| #if world.light_settings.use_indirect_light: | #if world.light_settings.use_indirect_light: | ||||
| # scene.pov.radio_enable=1 | # scene.pov.radio_enable=1 | ||||
| # Maybe change the above to a funtion copyInternalRenderer settings when | # Maybe change the above to a function copyInternalRenderer settings when | ||||
| # user pushes a button, then: | # user pushes a button, then: | ||||
| #scene.pov.radio_enable = world.light_settings.use_indirect_light | #scene.pov.radio_enable = world.light_settings.use_indirect_light | ||||
| # and other such translations but maybe this would not be allowed either? | # and other such translations but maybe this would not be allowed either? | ||||
| Context not available. | |||||