Ticket #799 (closed defect: fixed)
[with patch, with positive review] tachyon bug
| Reported by: | was | Owned by: | was |
|---|---|---|---|
| Priority: | major | Milestone: | sage-2.8.15 |
| Component: | packages | Keywords: | |
| Cc: | Author(s): | ||
| Report Upstream: | Reviewer(s): | ||
| Merged in: | Work issues: |
Description
I think I may have found a bug.
When using Tachyon and defining a texture, the seventh parameter you
can set is texfunc.
If that value is set to anything but zero, then no picture is
generated.
As an example:
t = Tachyon(xres=800, yres=600, camera_center=(2,7,4),
look_at=(2,0,0), raydepth=24)
t.light((10,3,4), 1, (1,1,1))
t.light((10,-3,4), 1, (1,1,1))
t.texture('black', color=(0,0,0))
t.texture('mirror', ambient=0.05, diffuse=0.05, specular=.9,
opacity=1.0, color=(.9,.9,.9))
t.texture('grey', color=(.8,.8,.8), texfunc=0)
t.plane((0,0,0),(0,0,1),'grey')
t.cylinder((0,0,0),(1,0,0),.013,'black')
t.cylinder((0,0,0),(0,1,0),.013,'black')
t.sphere((4,-1,1), 1, 'mirror')
t.save()
The above produces a nice picture. If you change to "texfunc=2" in
line 6, then there is no output.
Texfunc should have the following allowed values
Value for TEXFUNC Mapping and Texture Description
-----------------
----------------------------------------------------------------
0 No special texture, plain shading
1 3D checkerboard function, like a rubik's cube
2 Grit Texture, randomized surface color
3 3D marble texture, uses object's base color
4 3D wood texture, light and dark brown, not very
good yet
5 3D gradient noise function (can't remember what
it look like
6 Don't remember
7 Cylindrical Image Map, requires ppm filename
8 Spherical Image Map, requires ppm filename
9 Planar Image Map, requires ppm filename
I'm sorry if this is really a bug in Tachyon and not a problem with
how Sage talks with Tachyon. I am just not (yet) skilled enough to
tell the difference. I need to figure out how to run Tachyon stand-
alone and see if the bug still exists. But, I don't know how yet.
So, my apologies if this should be reported to the Tachyon developers.
Many thanks for your bug report.
By the way, even if it is a Tachyon bug, we really want to know about it, so we can program around it and/or fix it.
William
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

