Hi,

On Tue, 1 Aug 2000, b. white wrote:
> I am using TextureLoader to put .jpg's on a shape 3d.  The .jpg's I have a
> smaller than the shape that I map them to so java automatically stretches
> them to be the right size, which is fine. However it looks like java is
> carrying out some sort of blending algorithm to compensate for the
> information that's not their when it stretches the texture.  I don't want
> this though.  I would like it to just change  the size without trying to
> do any corrections to the image.

If I understand you correctly, you don't want any interpolation
between the texture's colors when magnifying the texture.
If so, make sure the texture magnification filter is
BASE_LEVEL_POINT for your Texture2D object.
Hope that helps,

Tobias



> I think that I would need to use the
> TextureAttribute class but I can only find ways to make the texture better
> or more blended
> myTextureAttribute.setTextureMode(myTextureAttribute.NICEST) or
> myTextureAttribute.BLEND
>
> By I want to make sure that it isn't blending the the colors.  My texture
> is really simple, composed of squares and circles and I want to keep the
> edges sharp without increasing the size of the .jpg
>
> Any suggestions appreciated.
> Thanks
>   Brian
>
> ===========================================================================
> 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