-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ArrowHead3 not properly rotated in some non-pdf outputs #46
Comments
The way TeXHead2 (and other ArrowHeads2) work is to literally draw 3d paths (or surfaces) approximating an arrowhead. It's not going to look good when the arrow is pointed toward or away from the camera (as in your example), but it will look okay when the arrow is pointed roughly perpendicular to the camera. Also it will look bad if you have interactive rotation. The "good" appearance with the eps rendering is the actual bug here. (Now, perhaps it would be nice to be able to specify an arrowhead that doesn't rotate, as in the eps version. But that's a feature request, not a bug report.) |
Ah, yes, I see. I guess manual billboarding (i.e. Also, I changed the title to match the actual bug. |
When I rerun the test (modifying it to include settings.render=0, which I guess has not been necessary before), the problem seems to be still there. With settings.render=10, it is fine though. |
Perhaps you are asking that TeXHead2 be drawn with billboard interaction (like labels)? If you want to interactively rotate the 3D diagram, you should use a proper 3D Arrowhead. |
Should I open up a new bug? I changed the bug title to match the actual bug, but if that is insufficient I'll happily open up a new one. |
I don't think there is a bug here but I think I found what is confusing you. You are comparing a Here is how to get consistent 2D (flattened) output for eps and pdf: asy -V test -f eps -render=0 PDF is a special case because by default (without -noprc) 3D PRC content gets embedded, with a matching preview image. If you view your test.pdf file with Acrobat Reader and click on it to activate it, you will see that the preview image must appear as it is in order to match the 3D content. |
See the discussion about render=0 throughout the manual. It is intended as a rough attempt to flatten a 3D scene to a 2D vector format (without rendering) and is far from complete (for example, no hidden surface removal). Try using render=0 on the teapot example and you will see that this option is not intended for general use. |
Hi
The TeXHead2 from three.asy looks rather ugly when rendered to PDF. Other outputs like .svg and .eps are fine though, as are .pdfs generated from .eps with epstopdf.
I attached a testfile, with a pdf and an eps rendering.
I'm using asymptote-2.41 and ghostscript-9.21 with Gentoo Linux.
Edit: Other ArrowHeads2 are affected too, not only TeXHead2
Edit2: Additionally, it seems that ArrowHeads3 (like DefaultHead3) aren't rotated properly in .eps-output
The text was updated successfully, but these errors were encountered: