Age | Commit message (Collapse) | Author |
|
|
|
|
|
Reviewers: sergey
Differential Revision: https://developer.blender.org/D4883
|
|
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
|
|
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
|
|
exporting with Triangulate.
No point in splitting vertices over small differences in UVs or Color
values.
Note that there will still be splits when those UVs or colors actually
do not match, but this seems to be part of 'triangulated' export design
(otherwise we could use indexed values as with regular polygons export).
Based on investigation by Sebastian Ullrich (@souljedi), thanks.
|
|
|
|
That was a rather heavy work, since in 2.7 that add-on was still using
tessellated geometry API quiet extensively (and that one has been
removed from 2.8)...
Also updated some minor things on the road, like e.g. exporting
ColorRGBA for vertex colors, since ours now have some alpha.
Main remaining TODO is materials afaik (those need to be ported to the
new nodeshader wrapper), not very high priority for now.
Also note that the whole code has many sub-optimal handling, but that
whole format is not really designed for heavy geometries anyway I think,
so this is probably fine for now (and going over whole code to optimize
it would be quiet a work too).
|
|
|
|
Fixes T61052
|
|
Changed objects.link and objects.unlink from scene to collection
|
|
|
|
This should take care of most of the class property conversions to
use the new annotation format (colon instead of equals) for
assignment. There may still be a few edge cases that were missed.
|
|
|
|
Differential Revision: https://developer.blender.org/D3746
|
|
The warnings in the console are getting on the way. May as well update
the addons even if they are still mostly not ported to 2.8.
We can probably ditch orientation_helper_factory altogether.
|
|
|
|
|
|
|
|
|
|
attributes (where present). For VRML, that worked all along, for X3D it was broken,
|
|
|
|
- Wasn't breaking out of loop when vertex color was set to false.
- No need to use dictionary for vertex colors, use list instead.
|
|
used by faces.
|
|
colors (as opposed to per-face) when appropriate
|
|
Always use utf8 encoding, with error escaping
|
|
|
|
|
|
|
|
- Pass context/scene as arguments.
- Avoid try/except on entire geometry loading (instead use dict.get).
- Use keyword-only args for load/save module functions.
- Don't pass the operator as first arg.
|
|
We assume a full Python is available now
|
|
This is handy for debugging, not general use.
so only do this when DEBUG is set.
Also use a custom property instead of registering RNA.
|
|
|
|
Feature: rudimentary support for Text nodes (no styling, only font size)
Feature: line number of the node reported as a custom property
|
|
vertices/faces from a mesh, so assumptions about mesh size might be off after validation.
|
|
It supports:
- all geometry nodes from Rendering
- all geometry nodes from Geometry3D
- ImageTexture (including primitives)
- TextureTransform (needs careful testing)
- all lamp nodes from Lighting
- Viewpoint
I've been going by the standard as outlined here:
http://www.web3d.org/documents/specifications/19775-1/V3.3/index.html
When not sure, I'd compare to a reference implementation, X3DOM ( http://www.x3dom.org/ ).
The UI was left intact from the existing implementation.
Reviewed by campbellbarton and mont29
|
|
Previously, that script whould create an object (two, actually!), mesh, material etc.
for every 'Shape' node, even when x3d format has intancing capabilities.
That would made importing files with many copies of same object insanely long.
Now we support instances of objects, geometry (aka meshes), materials (aka appearance)
and images, should be enough for now.
Also, fixed some old cruft like still using tessface stuff in a few minor places and such.
|
|
We need to split each vrml field on its own line in pre-processing step, to be sure
we correctly detect all new (child) nodes...
|
|
|
|
rBAbfbabc0592b8.
Now using a class factory to allow customization of those defaults axes, still way less
verbose than previous code!
|
|
|
|
|
|
Python 3.4.0 deprecated the "imp" module, and replaced it with
"importlib". This changes imp.reload() into implib.reload().
Reviewers: campbellbarton
Differential Revision: https://developer.blender.org/D1016
|
|
|
|
Helps ensuring common behavior, and saves quite a few lines of code, too...
|
|
|
|
|
|
|
|
|
|
|