#9855: fix support for projection options in Tachyon
------------------------+---------------------------------------------------
Reporter: mhampton | Owner: jason, was
Type: defect | Status: needs_info
Priority: minor | Milestone:
Component: graphics | Keywords: tachyon, raytracing
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
------------------------+---------------------------------------------------
Comment(by mhampton):
Thanks for taking a look.
Obviously I need to add quite a bit of examples and more documentation;
unfortunately most of these options aren't well (or at all) documented
upstream.
I think the aperture option only works with projection =
'perspective_dof', and then you also need the focallength parameter.
These don't work quite as I would expect but my knowledge of optics is
limited.
{{{
T = Tachyon(xres=800,antialiasing=4, raydepth=10, projection =
'perspective_dof', focallength = '1.0', aperture = '.0025')
T.light((0,5,7),1.0,(1,1,1))
T.texture('t1', opacity=1, specular = .3)
T.texture('t2', opacity=1, specular = .3, color = (0,0,1))
T.texture('t3', opacity = 1, specular = 1, color = (1,.8,1), diffuse=0.2)
T.plane((0,0,-1),(0,0,1),'t3')
ttlist = ['t1','t2']
tt = 't1'
T.cylinder((0,0,.1),(1,1/3,0),.05,'t3')
for q in srange(-3,100,.15):
if tt == 't1':
tt = 't2'
else:
tt = 't1'
T.sphere((q,q/3+.3*sin(3*q),.1+.3*cos(3*q)), .1, tt)
T.show()
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9855#comment:6>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.