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
variable camera position, light, etc. for tachyon ray tracer #13111
Comments
Commit: |
comment:8
I fixed the tachyon viewer. (I did not touch the other viewers, although there would be some room for improvements too) |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Changed commit from |
Commit: |
comment:11
I don't know what I'm doing (I wanted to change the branch to a public branch) New commits:
|
comment:12
This is the long-awaited possibility to control many aspects of the tachyon viewer by (The tachyon viewer has now more available controls than the default threejs viewer, but I also added an overview comparing the different viewer choices, and some warnings about some unexpected behaviour of certain viewers. |
comment:13
Please add full name in author field. |
comment:22
All of these comments are related to the parameter
- textArea.textContent = ',camera_center=' + cam_position;
+ textArea.textContent = cam_position; |
comment:23
Replying to @LaisRast:
The old name I chose to rename it because "camera position" is what is commonly used in computer graphics, but it has never been a parameter of show() or the tachyon() function before I introduced it; so there is no need to deprecate it. (But I have to fix the few places where I forgot to change it.) |
comment:24
Replying to @LaisRast:
I found it annoying that I had to write the parameter name (and perhaps look it up) myself when I used |
Reviewer: Laith Rastanawi |
comment:27
.. WARNING::
- By default, the jmol and tachyon viewers perform
- some non-uniform scaling of the axes.
-
- If this is not desired, one can set ``aspect_ratio=1``::
-
- sage: p = plot3d(lambda u,v:(cos(u)-cos(v)), (-0.2,0.2),(-0.2,0.2))
- sage: p.show(viewer="threejs")
- sage: p.show(viewer="jmol")
- sage: p.show(viewer="jmol",aspect_ratio=1)
- sage: p.show(viewer="tachyon",camera_position=(4,0,0))
- sage: p.show(viewer="tachyon",camera_position=(2,2,0.3),aspect_ratio=1)
+ By default, the jmol and tachyon viewers perform
+ some non-uniform scaling of the axes.
+
+ If this is not desired, one can set ``aspect_ratio=1``::
+
+ sage: p = plot3d(lambda u,v:(cos(u)-cos(v)), (-0.2,0.2),(-0.2,0.2))
+ sage: p.show(viewer="threejs")
+ sage: p.show(viewer="jmol")
+ sage: p.show(viewer="jmol",aspect_ratio=1)
+ sage: p.show(viewer="tachyon",camera_position=(4,0,0))
+ sage: p.show(viewer="tachyon",camera_position=(2,2,0.3),aspect_ratio=1) If not, just make the indentation to 4 spaces in the paragraph starting with "By default..."
Other than that, this ticket looks good to me. |
comment:28
Replying to @LaisRast:
Fixed. (Anyway, what is the purpose of that test? Somebody adds a line to the beginning
I have changed "Get Viewpoint" to "Get viewpoint" for consistency.
No, I indeed want only a short warning. On my system, the following text comes out separate from the warning in the html doc. I have now increased the indentation of the warning to 4 (extra) spaces. The result looks the same as before.
I factored this function out from some other part |
comment:31
Replying to @guenterrote:
I agree.
Yes, the result looks the same. It is just a general convention to use 4 spaces. The tickets looks go to me, and thus I will put it on positive review once the patchbot finishes. |
Changed branch from u/guenterrote/variable_camera_position__light__etc__for_tachyon_ray_tracer to |
When using the tachyon ray tracer, at the moment the parameters for the camera, as well as for the light and for the background-plane are hard-coded in
sage/plot/plot3d/base.pyx
:Those things should be variable, i.e. it should be possible to pass those parameters by optional parameters (e.g. when calling
show
).CC: @egourgoulhon @mjungmath @jplab
Component: graphics
Keywords: camera light tachyon
Author: Günter Rote
Branch/Commit:
20a7c00
Reviewer: Laith Rastanawi
Issue created by migration from https://trac.sagemath.org/ticket/13111
The text was updated successfully, but these errors were encountered: