ghseeli / latex2blender Goto Github PK
View Code? Open in Web Editor NEWCode to render LaTeX and import it into Blender
License: GNU General Public License v3.0
Code to render LaTeX and import it into Blender
License: GNU General Public License v3.0
New code added via #7 needs to be documented in the wiki.
I recently came across your Blender AddOn Latex2Blender and I've found it most useful.
I may have uncovered a bug but I'm not certain if itβs not me doing something wrong.
The Latex code
Thank you.
I want to make an educational 2D animation on Nueral Networks using Blender. To do so, I would need latex equations in the animation. latex2blender works fine for 3D environment. Is there a way to do so for 2D also?
First, thanks a lot for this great addon. I would like to animate latex expressions (notably visibility, scale, position), unfortunately, once the animation is done, I can't easily update it: creating "Compile Latex Code" always create a new object.
For now, one solution is to create (and animate) a new Geometry Node that uses Object info
to refer to the old object, but it would be cool to have a more direct solution in Latex2blender directly, replacing the current object and keeping the animations on it.
Also, it could be cool to pre-fill the text with the formula used for the current node (made possible for instance by storing it in a custom property). For now, as far as I see, one must retype everything.
EDIT
A workaround for the first issue is to create a new object (so you still have to retype the whole expression from scratch), and then copy/paste the mesh data into the original animated object:
But it does not solve the second issue: I still need to type again the whole expression.
I was expecting this great plugin to also work for tikz pictures, but seems like it renders garbage like [circle,draw,alias=A] at (0,0) {A}; \node[circle,draw,alias=B] at (1.5cm,0cm) {B}; \draw[-latex] (A) -- (B);}
instead of the proper diagram:
Custom preambule:
\usepackage{tikz}
\usetikzlibrary{positioning}
Text to render:
\tikz{ \node[circle,draw,alias=A] at (0,0) {A}; \node[circle,draw,alias=B] at (1.5cm,0cm) {B}; \draw[-latex] (A) -- (B);}
there is a rewrite happens to Grease pencil so here th blogpost talk about https://code.blender.org/2023/05/the-next-big-step-grease-pencil-3-0/
so we must be ready to make changes to the actual addon
I have a dream of using this plugin with python. However I'm having some issues controlling the plugin with Python.
For example, I would love to be able to write
import bpy
# make text obj
equation = latex2blender("$\sqrt{2}$")
so far it was not possible for me to control the plugin with python (issue1 and issue2), I was wondering if it's possible to get the "pure" inner workings of the plugin, that is simply just a function that makes a 3d latex object , but without any of the UI tools?
Is it possible to make this plugin into a simple python function that should not be installed for example.
I hope it makes sense, I would love your input on this.
issue 1)also if we complie new Gpencil then we go to draw mode and we add to existed material(fill) a check in stroke type => fill+ stroke , the stroke became too big and the viewport tooooo slow .
https://user-images.githubusercontent.com/55538193/178109034-f76cfa4b-8e3b-4dc7-bd01-abfc9d64e9e5.mp4
issue 2) if we compile new Gpencil then go to draw mode and trying to add new stroke the stroke drawed is to big .
THE PROBLEME is Gpencil is by default scaled by 600X which is not normal .
Platform: Windows 10
Blender: version 3.1.2
Hello, I installed MiKTeX and also TeXLive but despite that the addon will not run the sample example. Would it be possible to have an option in the addon preferences to link to the location where dvisvgm is? I'm not sure what path it is expecting but I tried both TeX installations with default settings and the addon still gives the same error.
I don't know why, but in some files I get this error os.getcwd(): no such file or directory
. (tested on blender 3.1, with the master version 402fc2a)
I'm not sure why, but when I generate something like $\sqrt{2}$
, the top horizontal bar is strange (seems like the bottom-left point of the horizontal line is missing):
or maybe the point is present, but not linked correctly:
compare with a normal sqrt:
Tested with 6b4c3c8
Thanks for your awesome plugin, this is so helpful!
I was wondering if you could possibly replace the one-line LaTeX code
box with a text field that also accepts newlines? This would improve my workflow a lot as I'm copying LaTeX code from an already existing LaTeX document. When using environments like equation
and align
, usually commands are split by newlines to make working with long equations more relaxed for the eye. For right now, I have to replace all newlines in that document with empty strings, to be able to use your plugin.
The image as plane plugin proposes to use a shadeless material, which basically does not reflect the light and respects then quite accurately the color of the image. The shader is not trivial (it's like 10 nodes, one can check by creating a new image on a plane with a shadeless material), and it would therefore be cool to propose in latex2blender a way to automatically add this material.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.