Fredrik,

You have to define the hole in your geometry, not just in the texture.  This
means that you would have to have a vertex at each corner of the window and
also calculate the texture points that match the new vertices.

If this doesn't help you, then maybe I or someone could provide sample code
after work.

-Todd

-----Original Message-----
From: Fredrik Andersson [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 05, 2001 3:16 AM
To: [EMAIL PROTECTED]
Subject: [JAVA3D] How do a create a hole?


Hello!

I thougt that I could create a window on a wall with just ading a
transparent gif as a texture, but I couldn't see through the texture as
a tought.

I did like this:

Image from front)
-----------------------
|XXXXXXXXXXXX|
|XXXX     XXXXX|
|XXXX     XXXXX|
|XXXXXXXXXXXX|
----------------------

Image from side with object behind)

     |

     |             X

But with the big hole (transparent gif) in the texture, I couldn't se
the object (x) behind it.

Does anyone know how too create a hole or a window in a texture-plane?

Best regards

Fredrik Andersson

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