[yt-users] volume rendering angle

gso at physics.ucsd.edu gso at physics.ucsd.edu
Thu Aug 26 15:32:19 PDT 2010


I was making a movie of rotation about the z axis then the y axis, but got
truncated image for the rotation around y.  I was going to write a message
claiming that I found a bug when I realized what I did wrong:

For the first rotation about z, I rotated the camera in the x, y plane and
defined -z (0,0,-1) as up, or the "north_vector" to have consistent images
as my x-axis YT projections (apparently -z was up in those images).  But
when I rotated around the y axis I still kept -z as up, and that got me
the wrong images because I needed to rotate the camera's up along to stay
perpendicular to the line of sight and parallel to the image plane this
time.

Here's the working version of the script modified from cookbook
http://paste.enzotools.org/show/1129/

From
G.S.

> Apparently reinstalling the trunk version fixed the problem, so maybe
> there was something wrong with the old installation.  Rick's script and my
> old script both works now, thanks guys :-)
>
> From
> G.S.
>
>> Hi Matt,
>>
>> I made a quick example that produces fine images from an off-axis view,
>> and rather cubist results along x, y or z. The script is posted at
>>   http://paste.enzotools.org/show/1120/
>> and the dataset is RD0007 from the Enzo cookbook.
>>
>> Thanks,
>> Rick
>>
>> On Aug 25, 2010, at 2:34 PM, Matthew Turk wrote:
>>
>>> Hi Rick,
>>>
>>> Okay, fair enough.  :)  If y'all have a script that shows the issue,
>>> I'll run some tests...  I'm suspicious that it's still in the iv_dir
>>> calculation.
>>>
>>> -Matt
>>>
>>> On Wed, Aug 25, 2010 at 2:31 PM, Rick Wagner <rwagner at physics.ucsd.edu>
>>> wrote:
>>>> Hi Matt,
>>>>
>>>> Actually, I think that the last changes you made fixed some cases, but
>>>> not all of them.  Before I went on vacation I was trying to learn how
>>>> the rendering was implemented, so that I could suggest a fix, rather
>>>> than just a bug report. My memory is that orthogonal projections may
>>>> still be having problems.
>>>>
>>>> --Rick
>>>>
>>>> On Aug 25, 2010, at 1:58 PM, Matthew Turk wrote:
>>>>
>>>>> Hi G.S.,
>>>>>
>>>>> Are you on trunk or 1.7?  I thought I fixed both...  Rick Wagner was
>>>>> also looking at this a while back and I think he said it was working
>>>>> for him after being broken.
>>>>>
>>>>> You can try a fresh install, but I don't think that would work if
>>>>> updating didn't.  :)  Are you sure it's updating the right place?
>>>>>
>>>>> -Matt
>>>>>
>>>>> On Wed, Aug 25, 2010 at 1:52 PM,  <gso at physics.ucsd.edu> wrote:
>>>>>> I did an svn up, then python setup.py install yesterday trying to
>>>>>> see
>>>>>> if
>>>>>> an update would fix it, so I was at svn version 1810 yesterday,
>>>>>> today
>>>>>> it's
>>>>>> 1811, even after the yt instinfo -u the problem persists.  Do I need
>>>>>> to do
>>>>>> a new install of YT for the new release or is SVN still keeping me
>>>>>> up
>>>>>> with
>>>>>> latest?
>>>>>>
>>>>>> From
>>>>>> G.S.
>>>>>>
>>>>>>> Hi G.S.,
>>>>>>>
>>>>>>>> Specifically, when I try to render an image using an image plane
>>>>>>>> perpendicular to the vector L=[1,1,1] and center [0.5,0.5,0.5]
>>>>>>>> everything
>>>>>>>> looks fine, but if I want a head on view from the x axis of the
>>>>>>>> y,z
>>>>>>>> plane
>>>>>>>> and setting L=[1,0,0] the image is just gibberish.
>>>>>>>>
>>>>>>>> Any thoughts on what I might have done wrong?  I was just using
>>>>>>>> the
>>>>>>>> sample
>>>>>>>> script from the cookbook and changing L only, with both the
>>>>>>>> "Simple
>>>>>>>> Volume
>>>>>>>> Rendering" and "Camera Interface"
>>>>>>>
>>>>>>> You didn't do anything wrong.  There was a bug that was causing
>>>>>>> this
>>>>>>> a
>>>>>>> while back, but it should be fixed in the current trunk.  "yt
>>>>>>> instinfo
>>>>>>> -u" should update things for you.  Let me know if that doesn't
>>>>>>> work!
>>>>>>>
>>>>>>> -Matt
>>>>>>> _______________________________________________
>>>>>>> yt-users mailing list
>>>>>>> yt-users at lists.spacepope.org
>>>>>>> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>>>>>>>
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> yt-users mailing list
>>>>>> yt-users at lists.spacepope.org
>>>>>> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>>>>>>
>>>>> _______________________________________________
>>>>> yt-users mailing list
>>>>> yt-users at lists.spacepope.org
>>>>> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>>>>
>>>> _______________________________________________
>>>> yt-users mailing list
>>>> yt-users at lists.spacepope.org
>>>> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>>>>
>>> _______________________________________________
>>> yt-users mailing list
>>> yt-users at lists.spacepope.org
>>> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>> _______________________________________________
>> yt-users mailing list
>> yt-users at lists.spacepope.org
>> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>>
>
>
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>





More information about the yt-users mailing list