Comments (11)
I think I have fixed the issue. Try the new latex2blender.py file on the repository and let me know if it resolves the problem. If it does, I will make a new release. Also, if you want to draw other grease pencil strokes, I recommend making a new grease pencil object because checking the stroke box on the latex grease pencil object will make the imported latex text slightly larger than it really should be because it will have a border comprised of the stroke.
from latex2blender.
it's working good thank you, really nice for compile AS grease pencil directly .
one issue is when i use Compilea AS curves and then manually convert it to grease pencil the issue happen for already generated strokes.but ok for new drawing
see video...
2022-07-17.01-50-0.mp4
comment :
(usage cases : i prefere to compile as curve then convert because i can apply modifiers with great result except built "known issue in blender" but if i use compile as Gpencil directly and a want to apply modifiers like or noise or subdivide or multiple strokes .... the result are inconvinient (or unexpected maybe usable in some cases) but good for build modifier depending on usage cases )
amazing add-ons keep it shining please
from latex2blender.
as a hack solution we must scale the layer and not the object so we can draw without problem but remember it's a hack not good solution.
https://user-images.githubusercontent.com/55538193/178113893-b983493f-9f47-497c-a116-97b80f410d6a.mp4
i wish that you can scale what is exported from the start without needing the scaling thing in order to not worry about reconverting and scaling issues
from latex2blender.
can you see this may help resolving https://blender.stackexchange.com/questions/44520/why-are-my-svg-imports-so-small
from latex2blender.
i have requests if possible(if possible):
--first ......can you make 2 options for "Compile AS Gpencil":
- the old method .
- from curve to Gpencil (without convert to mesh then to Gpencil in source code) .
--Second ... can you make the ability to put (as join) the compilation result into an existed curve or mesh or Gpencil as added to an existed curve or mesh or Gpencil
those my ultimate hope thanks a lot.
from latex2blender.
The reason that the code first converts to mesh before converting to grease pencil is precisely the issue you highlighted in your video above. I am not sure why, but for some reason Blender's conversion from a curve to a grease pencil doesn't seem to behave well. It can fill in holes that shouldn't be there and also distort some features, for example the + sign isn't quite right. If Blender improves the convert from curve to grease pencil function, I am more inclined to create a second option using that function to generate a grease pencil object. However, at the moment because of the issues with this, I am hesitant to add that as an option. I think it might create more problems than benefit. It is also possible that I don't fully understand how the convert curve to grease pencil function works and that there might be some options I am overlooking that create better conversions. If you happen to experiment with this and find something that gets rid of the distortions and doesn't fill holes like the "9" in your video, please let me know.
I am not quite sure what you mean by: --Second ... can you make the ability to put (as join) the compilation result into an existed curve or mesh or Gpencil as added to an existed curve or mesh or Gpencil
those my ultimate hope thanks a lot.
Can you elaborate a bit? Do you mean if you have some existing object x, and say you want to generate new latex text y, then you would like a way to automatically have x and y be joined as the same object upon compile?
from latex2blender.
thank you for your quick response,i am not good in english and i'll try my best,
i'm aware of the problem of conversion, for me i can make correction as a user by
- add holdout fill to make the gap inside 9.
- for thickness problem, and the issue don't happen if we add a text object => convert to curve => to Gpencil=> the problem don't appear or for curve object so maybe there is a solution for that , and if there is no solution , user solution 2)
i can apply thickness modifier and assign 0.01 as thickness factor => solved, - about '+' i notice that by adding subdividion with 1 level solve the problem, again manual solution
in fact all this works is a manual work but we will have as i commented before the result that i'm looking for,
my eager is to use a tip presented in this video for math beauty, if you have time for it: https://www.youtube.com/watch?v=i5Xg1zh6Rck
and for your question, yes and that will relieve me from redoing the 2) and 3) manual steps for correction because doing it once on one Gpencil object is enough, and automatically the tip in the video will be applied for any new latex added in the exited Gpencil.
i hope my ideas are clear and also help you in usage cases..
and last thing which is the more important is to thank you for this addon and for all contributors, really i need to learn python and programmation to help as you did.
from latex2blender.
THIS link may help https://docs.blender.org/api/3.2/bpy.ops.object.html#bpy.ops.object.convert
from latex2blender.
hi for thickness problem i propose this code from line 310 to 315
if compile_mode == "grease pencil":
# Convert to mesh
# bpy.ops.object.convert(target='MESH')
# Then convert to grease pencil
bpy.ops.object.convert(target='GPENCIL', angle=0, thickness=1, seams=True, faces=True, offset=0)
bpy.ops.object.gpencil_modifier_add(type='GP_THICK')
bpy.context.object.grease_pencil_modifiers["Thickness"].thickness_factor = 0.01
bpy.ops.object.gpencil_modifier_apply(modifier="Thickness")
what is needed is the default material must have stroke enabled. in orderto se the result ....
from latex2blender.
Hi, @hamzaelbarmaki1994 !
Thank you for the suggestion! Can you please turn this into a pull request? That will make it easier to test the change.
from latex2blender.
sorry, i don't know how to do so you can do that for me the code is taken from blender 'info editor' while automate the process
from latex2blender.
Related Issues (16)
- error when compiling HOT 8
- Is there a way to enable latex code for 2D Animation in Blender HOT 2
- Latex2blender : $\mapsto$ HOT 5
- Update documentation to reflect custom material option
- Update object without creating a new one HOT 7
- Custom preambule: not such file or directory HOT 4
- Add shadeless material HOT 3
- Complilation Error, Allow Option for Custom Path to dvisvgm? HOT 23
- I hope it can use xelatex, because I want to write some Chinese HOT 1
- Strange sqrt? HOT 4
- Tikz fails to render? HOT 1
- Possibility of using the plugin as pure python i.e. no UI
- Informing about Grease pencil changes HOT 1
- \left and \right problem HOT 1
- Paste block of code including newlines HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from latex2blender.