Commit Graph

236 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
2f6c21617e Fix povray rendering metaballs with materials 2023-04-04 19:45:13 +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
fbfa11df47 Cleanup: trailing space 2022-02-16 15:30:11 +11: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
d68dca98ce Cleanup: fix typos in source code
Contributed by luzpaz.

Differential Revision: https://developer.blender.org/D5801
2022-01-05 15:46:41 +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
e25068ef47 Revert "POV : fix registering"
This reverts commit a885950276.
2021-05-27 18:41:55 +02:00
a885950276 POV : fix registering
Fix : Removed some duplicate class that caused addon register /
unregister to fail after previous commit
2021-05-27 18:36:18 +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
a65fb17335 Cleanup: Remove trailing period in descriptions.
Reduces warnings while running tests.
Also fix some descriptions with strings concatenated but without a
space in between.

Reviewed by campbellbarton
Differential Revision: https://developer.blender.org/D9655
2021-02-12 10:31:55 +05:30
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
a6a0a94c36 POV: Add camera types
orthographic and cylindrical modes. best match for ortho.
2020-04-04 15:01:30 +02:00
f05763b347 render_povray
* removed charset : The `charset` global setting has been deprecated in pov 3.8. Input files conforming to ASCII, UTF-8, Latin-1 or Windows-1252 encoding will instead be auto-detected, while other encodings are currently unsupported.
2020-03-26 20:52:56 +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
c14db94c41 render_povray: 2.8 material related API changes
three small updates
2019-10-23 13:55:31 +02:00
ed161459d1 Fix typos in source comments and descriptions
Patch contributed by luzpaz.

Differential Revision: https://developer.blender.org/D5800
2019-10-01 20:13:26 +02:00
63bf304511 render_povray: Rune Morling patch 2019-09-09 21:34:39 +02:00
cc015d5889 render_povray: more transparency fixing 2019-09-08 00:00:37 +02:00
734f7eb12b render_povray: post 2.8 API ior fix 2019-09-04 23:57:56 +02:00
86d2637065 render_povray :
First try at fixing hair and strand for 2.8 render API: failed but improved
2019-09-02 00:26:53 +02:00
cbb11b1a59 +Better (faster) Radiosity Nearest Count default value
+render emitter for particles theoretically updated to 2.8 API
2019-09-01 17:25:23 +02:00
9780527eee render_povray: fixed material alpha transparency broken by 2.8 changes 2019-09-01 00:09:26 +02:00
c96b4dbbe8 render_povray: Removed light "energy" multiplier which might no longer be necessary with 2.8 default light values and gave overexposed default scenes. 2019-08-27 07:52:24 +02:00
aa71fb1f16 Rune Morling patch to finish fixing (dupli) instances post 2.8 THANKS! 2019-08-25 11:57:40 +02:00
4262eb5403 post 2.8 fix light samples 2019-08-23 23:55:32 +02:00
9152da178b Some instantiation 2.8 API update fixing 2019-08-21 08:39:09 +02:00
a673f8cbfd fixed some depth of field 2.8 API changes thanks to Rune Morling feedback (step 1 for fixing car demo scene) 2019-08-20 00:04:02 +02:00
5209139cc7 dummy commit test with simple comment edit: Set my old machine back up with mesa opengl32.DLL as it no longer ran blender 2.8 for lack of opengl 3. 2019-07-30 02:24:07 +02:00
d54e4e25bd 2.8 changes 8 (raytrace_transparency) 2019-05-20 21:05:38 +02:00
53e11f6552 pre 2.8 API changes Pass 7 2019-05-19 21:22:57 +02:00
901868a4b2 Update for Depsgraph API changes
Addresses new behavior of object.to_mesh().

This is corresponding part for D4875.

Reviewers: brecht

Reviewed By: brecht

Differential Revision: https://developer.blender.org/D4876
2019-05-16 16:43:14 +02:00
e5c3ae3118 Addons: Adopt for Dependency Graph API changes
Mainly search-and-replace approach.

Tested the enabled-by-default export/import addons. Seems to work with
an exception of X3D which is still referencing Blender Internal material
properties.

Reviewers: brecht

Reviewed By: brecht

Differential Revision: https://developer.blender.org/D4866
2019-05-16 10:34:11 +02:00
063caacf6e pre 2.8 API changes Pass 6 2019-05-08 21:30:06 +02:00
1b3bbeea01 Fourth pass at 2.8 API related updates 2019-04-22 20:41:27 +02:00
e47cb9ed5b Fix lots of various issues failing automated test load/unload/reload. 2019-04-18 17:13:44 +02:00
ad393383b7 Pass 3 of 2.8 syntax update... 2019-04-15 23:12:29 +02:00
7340921481 Second pass to update properties for 2.8... To be continued 2019-04-14 22:10:50 +02:00
31c05651d7 First debug pass from 2.8 API changes
*new icon names, some were removed
*register system changed
*All properties from blender internal were removed
...To be continued (not all props recreated yet)
2019-03-25 22:36:50 +01:00
0457976a87 Rename user_preferences -> preferences 2018-12-21 12:56:42 +11:00
1860441ee7 Use collection and instance terminology in Python API
This follows naming convention agreed on in T56648.
2018-11-28 18:23:31 +01:00
1c75533d9c Merge branch 'master' into blender2.8 2018-10-19 18:13:31 +02:00
d7d3233715 Spelling fixes in comments and descriptions, patch by luzpaz.
Differential Revision: https://developer.blender.org/D3746
2018-10-19 18:12:29 +02:00
227fafdfcf Update for removal of tessfaces.
This ports the already working addons. The disabled x3d, psk, lwo, 3ds,
raw, dxf addons still need to be converted.
2018-10-10 17:25:48 +02:00
4c132dc503 Merge branch 'master' into blender2.8 2018-09-08 06:19:10 +10:00
f1c55295b0 Cleanup: trailing space 2018-09-08 06:13:37 +10:00