Commit Graph

32 Commits

Author SHA1 Message Date
e8da6131fd License headers: use SPDX-FileCopyrightText for all addons
Move copyright text to SPDX-FileCopyrightText or set to the
Blender Foundation so "make check_licenses" now runs without warnings.
2023-06-15 16:54:05 +10:00
016430de4b Cleanup: remove <pep8 compliant> comment
This is no longer necessary, see: T98554.
2022-06-03 11:50:32 +10:00
d1b824f3c2 POV: fix some nested code and further files structure cleanup
* FIX: wrongly nested pov braces made the default outpout file fail
* FIX: use agnostic metallic property rather than create a duplicate
* FIX: some 2.8 deprecated properties rewired in spec;diff; emit;ambient
* FIX: clean up, hierarchize and redesign Global Settings ui panel
* FIX: re-wire world background alpha to agnostic prop and redo its ui
* FIX: wrong nested pov braces making the default outpout file fail
* FIX: use agnostic metallic property rather than create a duplicate
* FIX: reduced arguments numbers by imports and relocating variables
* FIX: use more list comprehesions to reduce nested conditions levels
* FIX: use more consistent class names but cleanup still not finished
* FIX: use single quotes for enums preferably to distinguish strings
* FIX: basic level of nodes based material (diffuse color) broken API
* FIX: blurry reflection corner case caused output file to fail
* FIX: added context managing ("with") syntaxes reducing crash cases
___________________________________________________________

* ADD: model_all.py file to extract mostly object level loop and utils
* ADD: model_meta_topology.py file to extract metaballs export
* ADD: object_primitives_topology.py to extract pov compound primitives
* ADD: nodes_fn.py file to extract main node exporting function
* ADD: nodes_gui.py file to extract node operators and menus
* ADD: nodes_properties.py file to extract nodes sub parameters
* ADD: particles_properties.py to extract particles and fx parameters
* ADD: render_core.py to extract main RenderEngine inheriting class(es)
* ADD: shading_ray_properties.py to extract pathtraced shader parameters
* ADD: texturing_procedural.py to extract algorithmic texture influences
___________________________________________________________

* UPDATE: workspace tools icons and a couple of other icons choices
* RENAME: pov.add.polygontocircle.dat macro workspace tool icon
* RENAME: base_ui.py to ui_core.py
* RENAME: shading_nodes.py to nodes.py
* RENAME: df3_library.py to voxel_lib.py to make dot lookup inform more
* RENAME: object_mesh_topology.py to model_poly_topology.py
* RENAME: object_curve_topology.py to model_curve_topology.py
* RENAME: object_gui.py to model_gui.py
* RENAME: object_primitives.py to model_primitives.py
* RENAME: object_properties.py to model_properties.py
* RENAME: object_particles.py to particles.py
2022-04-25 14:38:30 +02:00
b8d86ccc0a File headers: use SPDX license identifiers
See T95597
2022-02-11 16:05:07 +11:00
692611358a POV: Add primitives workspace tools icons, blurry reflections, equation based isourface ; various fixes
* fix tiny formatting of quotes, docstrings, parenthesis
* fix pov centered worspaces
* fix (revert) bad default for text block insertion
* fix primitive exports sorted by most frequent for (slight) speed up
* fix some uninitialized hairstrand root diameter variable
* fix extracted function for CSG inside vector
* fix too big size of proxy mesh for ininite plane caused it to blink
* fix end of render speach error handling
* fix max specular value to better map out under a texture influence
* fix emit, ambient, translucency shading properties UI broken post 2.8
* add workspace tools icons for pov primitives
* add a user input equation based isosurface primitive
* add micro normals based blurry reflections (glossy UI slider)
2022-01-26 01:02:18 +01:00
f86f25e622 POV: Code formatting and bugfixes
* fix: more imports cleanup and formatting
* add: hair shape (from old MaterialStrand for now)
* add: pixel / Non Blender units strand width
* fix: an exception handling of df3_library
* fix: gas flow_type typo
2021-06-09 03:13:10 +02:00
fad5186bb6 Formatting and fixes
* Moved: some existing functions into new separate files to improve code
readability (detailed in __init__.py docstring)

* Remove: max_intersections deprecated in pov 3.8

* Add: Validate utf-8 characters with specific API function at session's
first script init

* Add : Icons to some text fields and inviting labels

* Change default camera normal perturbation value to non zero since its
use is first driven by a boolean toggle

* Change: lists (vectors and indices) are now exported in one line by
default for better manual scene overview and debugging

* Change: a couple of tooltips corrections

* Change : renamed many variables and functions to snake_case according
to recommanded style guides

* Fix : Heightfield primitive (forward slashes were expected for
displacement texture path)

* Fix : Text nippet insertion operator

* Fix : added console print tip to check executable path on failure to
process

* Fix : tweaked finished render say command for Linux

* Fix : interface of some shader nodes broken since 2.8 api changes

* Fix : export hair particles
2021-05-26 01:34:50 +02:00
e44e5845ee fix: Texture slots for world and materials
fix: Orthographic and perspective camera view angle thanks to Iari Marino
add: some numpy functions to export mesh possibly faster in next version
fix: parametric surfaces much accelerated and now actually usable (max gradient defaults were wrong from the time of their implementation in most pov literature. Thanks to William F. Pokorny for finding this out!
add: very basic "blurry reflection" hack for when using plain official POV
add: push of (as of yet badly formatted) feedback to interactive console
add: POV centric workspace, default when addon is left activated from previous session.
add: Sound signal support on finished render (set from addon preferences)
add: support for pov 3.8 and decremented in a few areas, waiting for the release
add: freestyle interface with convoluted workflow currently but preparing for next release.
fix: commented out Charset feature because POV 3.8 auto detects encoding
fix: a few dot notation look ups aliased and removed
fix: restored some more removed properties from 2.79 ( a few remain to do)
fix: texture mapped specular max value increased
fix: faster defaults for radiosity
fix: many default texture influences switched to 1 because boolean enabling is required anyway so 0 was a bad default
fix: some icons were missing since 2.8
fix: some formatting improvement was started
2020-08-02 00:07:39 +02:00
2e7e07389f POV: fix colored specular
pre 2.8 property was still used. Now in the .pov. wrapper.
2019-12-24 08:07:33 +01:00
0046ef0652 POV: Improve Line endings and general formatting
used black on some files to dust up old formatting
2019-12-22 00:27:59 +01:00
56dfa8c8b4 POV: added doc strings
Hoping it will help the code to be less repulsive to new developers.
2019-12-20 10:45:08 +01:00
865d54f155 POV: added doc strings
Hoping it will help the code to be less repulsive to new  new developers.
2019-12-08 21:42:14 +01:00
90d3e69f65 pov: more api fix
texture slot steps further
2019-12-08 21:42:14 +01:00
249288e02a POV: more post 2.8 API fixing and class renaming
fixed some more POV primitives: Rainbow ; PolygonTocirle ; Parametric
2019-11-20 19:06:11 +01:00
9780527eee render_povray: fixed material alpha transparency broken by 2.8 changes 2019-09-01 00:09:26 +02:00
53e11f6552 pre 2.8 API changes Pass 7 2019-05-19 21:22:57 +02:00
063caacf6e pre 2.8 API changes Pass 6 2019-05-08 21:30:06 +02:00
1df44726b0 Added Lamp , Radiosity, and World presets 2018-01-28 13:47:02 +01:00
c075629c95 Cleanup: redundant texture lookup 2017-11-02 17:05:44 +11:00
1d9d466de8 *Fixed texture normal_factor regression
*Fixed lighting attenuation for a closer match with Blender Internal
2017-09-08 21:38:19 +02:00
57f376e946 Cleanup: trailing space 2017-03-19 12:49:18 +11:00
6f40579d5b Added Basic Nodes support by Lanuhum 2017-01-29 21:28:41 +01:00
8ffc527b58 texture Normal_factor divided further 2016-09-11 21:41:08 +02:00
68f8f21897 Fix: Normal factor corrected 2016-09-11 19:11:00 +02:00
52916b8315 *Added dupli objects (groups,particles,verts, faces but no frames for now)
*Added basic halo for lights
2016-08-30 22:49:33 +02:00
d20975b809 *added: write pov console to a log read by Blender console
*fix: area_illumination syntax updated to fix bug in area lights
*fix:sphere sweep was buggy (bezier curve would'nt export)
*several curves in one blender object can now export Thanks Lanuhum
*fix:hair with no material slot would'nt export
*fixemodifier like subsurf or mirror over curves wouldn't export, now trying to convert to mesh
*fix:meshes with 0 vertices wrote a bad file,  now create a dummy 0 radius sphere
*fix: export visible layer only was broken
2016-08-23 19:39:13 +02:00
84b69e64ea Fixed typo mistakes from previous commit 2016-07-22 19:13:08 +02:00
be03a24dc5 fixed : BI texture Scale support for procedurals 2016-07-21 21:59:30 +02:00
1eecd9602f Added: IMPORTER in an operator (primitives.py) from Main import menu or special povray add menu to import povray primitives and mesh objects from several *.POV/*.INC files at once. confirmed to work with avogadro files and some other test scenes. 2016-07-02 19:42:09 +02:00
7e05091168 *converted all calls to file.write of .shading.py to tabWrite function to no longer pass the file variable
*added a conversion of all image paths to forward slashes, preferred by POV, sending less warning.

*repaired basic handling of packed textures

*rearranged Material UI
2016-05-23 21:20:39 +02:00
59ea4fc9f1 fixed:
*transmit value removed from ambient light to avoid parse warning
How do we generate a transparent background now ?

*name 'using_uberpov' was not defined in shading.py

added:
*moved exportPattern(texture) from render.py to shading.py
*moved texture influences from render.py to a function in shading.py
2016-04-29 18:11:48 +02:00
9d7cb8d537 Separated writeMaterial() function to its own python file 2015-12-29 16:54:44 +01:00