What Chris suggested below works for rotating a crystal structure to match 
those crystals in a tiff image in the same window.  Initially I had both the 
tiff image and crystal structure in an Image window but it was taking too long 
to render everything each time I rotated just the structure. Then I used 
Render, Arrange and Display to display them and it works faster. 

Thanks for your help.

Susan Schwarz
Academic Computing
Dartmouth College


--- Chris Pelkie wrote:
>We want to display an image as the background, then place a ball and stick
>crystal shape on top of it,  rotate the crystal to match the image, then
>read out the axial positions.  Is this possible in dx?
>

Yes. Import a TIFF or similar and the 3D object using a ReadImage and an
Import.

>Specifically, is there a way to rotate the crystal without rotating the
>background? How do I get the transformation matrix that is used when I
>rotate the crystal using the Image module?
>


Image is moving the camera, not the object(s). It's much easier to apply a
Rotate (and Scale and Translate) modules only to the object you want to
transform (the ball and stick). Keep Image still, probably front facing
initially. Attach interactors (Scalars or Vectors) to the
Rotate/Scale/Translate inputs and fiddle til the ball and stick lines up.
Now when you move Image's camera, you can pan around the aligned TIFF/3D
object scene.

If you really want it you can get the current Image camera out of Image's
2nd output, but inverting the transform is more trouble than it's worth.

Chris Pelkie
Vice President/Scientific Visualization Producer
Conceptual Reality Presentations, Inc.
30 West Meadow Drive
Ithaca, NY 14850
[EMAIL PROTECTED]


--- end of quote ---

Reply via email to