Hi,

Let's say that I do a "programatic screen capture" of a Java component,
and want to use that as a texture. This texture will be mapped onto a
rectangle (in a Java3d environment) of the same proportions as the
component, so that with the propoer orientation/position one wouldn't be
able to tell the difference between the original component and the
rectangle textured with the component's image.

That component can be of whatever size.  I was thinking of capturing it
with it's original size (say 400x400), then add a dummy margin to make it
(512x512), and for texture coordinates, use (0 - 0.78125) (where (0.78125
= 400/512)) for both coorindates, which means the dummy margin wouldn't
get displayed. This sounds like a good way to do this kind of textures
where it's important to keep every pixel.

It works fine on an SGI; however, on my laptop (with an ATI video card,
the laptop is a compaq pressario 1694), it only works when the texture is
far away; as I get closer, the texture becomes full of artifacts. Does
anyone know why?


Thanks

Jimmy Talbot

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