Git Product home page Git Product logo

vector-render's People

Contributors

mrossini-ethz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

vector-render's Issues

Alternative idea

Dear, don't reinvent the wheel.
There's the FreeStyle SVG Exporter (https://github.com/folkertdev/freestyle-svg-exporter) which does what Vector Render is supposed to, but with many advantages, such as:

  • Support for rendering non tesselated geometry (NURBS Surfaces/Curves, Text and MetaBalls)
  • Render animations

Unfortunately, FreeStyle SVG Exporter flaws in filling faces, as it messes up them.
So, the only additions that has to be made in it is:

  • Make fills work as in Vector Render
  • Make lights affects color lightness (whole faces - optional, because neither FreeStyle SVG Exporter supports this ATM)

I hope you'll merge your rendering algorithm with FreeStyle's

Thanks if you do.

crash on some files

Hi Mrossini,
the vector render operator crashes on files I tested. Here is the traceback:

Traceback (most recent call last):
  File "C:\Blender\2.78\scripts\addons\vector-render.py", line 1120, in execute
    polytree.insert_poly(poly_obj)
  File "C:\Blender\2.78\scripts\addons\vector-render.py", line 365, in insert_poly
    self.back_polys.insert_poly(poly)
  File "C:\Blender\2.78\scripts\addons\vector-render.py", line 365, in insert_poly
    self.back_polys.insert_poly(poly)
  File "C:\Blender\2.78\scripts\addons\vector-render.py", line 365, in insert_poly
    self.back_polys.insert_poly(poly)
  File "C:\Blender\2.78\scripts\addons\vector-render.py", line 348, in insert_poly
    self.front_polys.insert_poly(fp)
  File "C:\Blender\2.78\scripts\addons\vector-render.py", line 365, in insert_poly
    self.back_polys.insert_poly(poly)
  File "C:\Blender\2.78\scripts\addons\vector-render.py", line 365, in insert_poly
    self.back_polys.insert_poly(poly)
  File "C:\Blender\2.78\scripts\addons\vector-render.py", line 348, in insert_poly
    self.front_polys.insert_poly(fp)
  File "C:\Blender\2.78\scripts\addons\vector-render.py", line 353, in insert_poly
    self.back_polys.insert_poly(bp)
  File "C:\Blender\2.78\scripts\addons\vector-render.py", line 365, in insert_poly
    self.back_polys.insert_poly(poly)
  File "C:\Blender\2.78\scripts\addons\vector-render.py", line 353, in insert_poly
    self.back_polys.insert_poly(bp)
  File "C:\Blender\2.78\scripts\addons\vector-render.py", line 365, in insert_poly
    self.back_polys.insert_poly(poly)
  File "C:\Blender\2.78\scripts\addons\vector-render.py", line 365, in insert_poly
    self.back_polys.insert_poly(poly)
  File "C:\Blender\2.78\scripts\addons\vector-render.py", line 365, in insert_poly
    self.back_polys.insert_poly(poly)
  File "C:\Blender\2.78\scripts\addons\vector-render.py", line 360, in insert_poly
    self.front_polys.insert_poly(poly)
  File "C:\Blender\2.78\scripts\addons\vector-render.py", line 360, in insert_poly
    self.front_polys.insert_poly(poly)
  File "C:\Blender\2.78\scripts\addons\vector-render.py", line 365, in insert_poly
    self.back_polys.insert_poly(poly)
  File "C:\Blender\2.78\scripts\addons\vector-render.py", line 360, in insert_poly
    self.front_polys.insert_poly(poly)
  File "C:\Blender\2.78\scripts\addons\vector-render.py", line 365, in insert_poly
    self.back_polys.insert_poly(poly)
  File "C:\Blender\2.78\scripts\addons\vector-render.py", line 345, in insert_poly
    split = poly.split(self.node_polys[0])
  File "C:\Blender\2.78\scripts\addons\vector-render.py", line 829, in split
    t2 = (-poly.pd - self.qq[s2 % self.N].dot(poly.nn)) / vt2.dot(poly.nn)
ZeroDivisionError: float division by zero

location: <unknown location>:-1

Render test

I'm attaching an archive containing:

  • Test .blend file
  • Regular render
  • Vector render
  • Comment .txt file

Please, see it.
VectorTest.zip

Can't install AddOn in Blender 2.83.5

Hi there.
I get an error when enabling the AddOn in Blender 2.83.5, here's the output:
Traceback (most recent call last): File "/usr/share/blender/scripts/modules/addons_utils.py", line 351, in enable mod = __import__(module_name) ModuleNotFoundError: No module named 'vector-render-blender-2'

Please, help me out.

Render start

It's been a while without using this, now I can't recall where should I click to start a vector render.
Note I have 2.82a, I don't know if is this compatible.

Thanks in advance, bye.

Blender 2.8 compatibility

Please, make this AddOn compatible with Blender 2.8
On installing this I get an error about compatibility.

Shadows

Please, make lights affecting colors

Animations

Please, add export animations to this.

Addon installed but not visible

I installed the addon and enabled it, however I don't see it in the Properties pane. Is it possible to share a screenshot of where I can find the enabled plugin in Blender?

I tried looking under Render Engine and I only see the default options.

I also looked in the navigation menu under Render and it was not there.

I am using Blender 2.91. Do I have to downgrade to Blender 2.8 for this addon to work?

My 2 cents

Hello everyone.
I'd like to share my vision about this, I'm mainly interested in:

  • Rectangles [with rounded corners]
  • Ellipses
  • Polygons
  • Lines
  • Paths
  • Animate objects (by making it following a path too)
  • Embed image
  • Stroke
  • Fill
  • Text along a path
  • Line Cap/Dash/Markers

Note: the PlugIn should offer a way to insert elements listed above in a dedicated element tree, generating clean SVG MarkUp. Objects in the 3D viewport that is not created by the PlugIn should be rendered with default properties.

Thanks for reading, I hope this will be interesting.

Bye, Ivano.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.