Hi Kevin,
>
>I'm using the constructor for Raster:
>
>Raster(Point3f pos, int type, int clipMode, java.awt.Point srcOffset,
>java.awt.Dimension size, java.awt.Point dstOffset, ImageComponent2D image,
>DepthComponent depthComponent)
>
>in Java3D 1.3 beta and I would like the resulting image to transform about
>its center point, instead of its upper left-hand corner. I thought setting
>dstOffset would do the trick. If I set it to a positive or negative position
>the image doesn't show up at all, only if I set it to zero do I see the
>image. Any ideas?
>

It might be that the raster position is outside
the viewing volume.

 /**
     * Specifies that this raster object is not drawn
     * if the raster position is outside the viewing volume.
     * In this mode, the raster is not drawn when the transformed
     * raster position is clipped out, even if part of the raster would
     * have been visible.  This is the default mode.
     *
     * @see #setClipMode
     *
     * @since Java 3D 1.3
     */
    public static final int CLIP_POSITION = 0;

    /**
     * Specifies that the raster object is clipped as an image after
     * the raster position has been transformed.  In this mode, part
     * of the raster may be drawn even when the transformed raster
     * position is clipped out.
     *
     * @see #setClipMode
     *
     * @since Java 3D 1.3
     */
    public static final int CLIP_IMAGE = 1;


Try using CLIP_IMAGE mode. If CLIP_POSITION is used
and the raster position is inside the viewing volume
when the Raster doesn't show up, please send us a
test case to investigate.

Thanks.

- Kelvin
--------------
Java 3D Team
Sun Microsystems Inc.

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to