Hi Artur,
I must mix them up somehow. Let me clarify a little bit.
The real problem is change of transparency value raster.
Current implementation do this in the native layer and always
assume the data type of ImageComponent2D associate with
Raster has 4 byte RGBA.
However in your example it is using TYPE_3BYTE_BGR and
by reference ImageComponent (which mean we don't convert
the data type into 4 byte RGBA internally). The data type
is only 3 byte long. This cause a buffer overrun
problem both in OGL and D3D version (but somehow D3D version
can reproduce the crash easily). To workaround the problem,
use RGBA type in by reference mode.
In v1.3, the code to change transparency value of Raster
is move back in the Java layer and the problem is fixed.
- Kelvin
--------------
Java 3D Team
Sun Microsystems Inc.
>X-Unix-From: [EMAIL PROTECTED] Mon Apr 23 18:47:47 2001
>X-Accept-Language: pl,en
>MIME-Version: 1.0
>Content-Transfer-Encoding: 7bit
>Date: Tue, 24 Apr 2001 03:45:11 +0200
>From: Artur Biesiadowski <[EMAIL PROTECTED]>
>Subject: Re: [JAVA3D] Byref blended texture crash ?
>To: [EMAIL PROTECTED]
>
>Kelvin Chung wrote:
>>
>> Hi Artur,
>>
>> FYI, bug 4449426 is filed for it. Since Transparency Raster
>> is not support in v1.2.1 anyway (due to bug
>> 4401323 - Transparency value ignored for RGBA rasters)
>> You can workaround it by not using transparecy raster.
>
>But this is not a problem with RGBA raster, it is problem with RGB
>raster with Transparency set. It works and is transparent, only if I'll
>make it byref it crashes. So I'll rather suggest not specyfing byref as
>workaround, not disabling transparency.
>
>Artur
>
>===========================================================================
>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".