I haven't worked with a Box object but we have successfully implemented new
texture coords for a Shape3D during runtime and the texture does transform
accordingly.   Sorry I can't shed any more light on the Box problem.  Maybe
the fact that the GeometryArray you get returned is part of a larger
GeoemetryArray object is messing up the texture coords mapping.

Gregg


> ----------
> From:         Vladimir Olenin[SMTP:[EMAIL PROTECTED]]
> Reply To:     Discussion list for Java 3D API
> Sent:         Wednesday, September 08, 1999 6:55 AM
> To:   [EMAIL PROTECTED]
> Subject:      [JAVA3D] Setting texture to Box's sides
>
> The problem i have (about which i wrote some time ago) concerns not
> settin Texture in general, but rather setting Texture on the sides of
> the Box. When u call getShape(int boxSide) function of Box class u can
> then retreive GeometryArray. Then u can setTextureCoordinates (new
> ones). And for some reason this function works incorrectly (it rotates
> the texture). Moreover, texture transformation (that is texture rotation
> via texture attributes) has no effect at all. I just can't figure out
> where the problem is, since i can easily set new texture and it would
> look correctly if only i don't change texture coordinates. In fact i'm
> not very sure whether this operation correct at all (resetting texture
> coordinates when Shape3D has been already created and initialized). I
> doubt that anyone here tried to do this with Box primitive, but possibly
> there is someone who occured similar problems.
>
> Thanks for your help,
>
> -=V=-
>
> ==========================================================================
> =
> 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".
>

===========================================================================
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