> Does combine works correctly for multipass texturing ?
>
> I have Geforce 256 (I think it can do 2 stages in one pass). Everything
> works as it should up to second stage. But in third stage I have
> problem. COMBINE mode seems to ignore previous texturing stage. For
> example, AFAIK,
>
> ta.setTextureMode(TextureAttributes.COMBINE);
> ta.setCombineRgbMode(TextureAttributes.COMBINE_MODULATE);
> ta.setCombineRgbSource(0,TextureAttributes.COMBINE_TEXTURE_COLOR);
> ta.setCombineRgbFunction(0,TextureAttributes.COMBINE_SRC_COLOR);
>
ta.setCombineRgbSource(1,TextureAttributes.COMBINE_PREVIOUS_TEXTURE_UNIT_STATE);
> ta.setCombineRgbFunction(1,TextureAttributes.COMBINE_SRC_COLOR);
>
> should have exactly the same effect as
>
> ta.setTextureMode(TextureAttributes.MODULATE);
>
> But when it is used as 3rd stage, it works exactly as REPLACE - ignores
> previous stage.
>

        It is a limitation with multipass texturing in Java3D1.3.
        TextureAttributes.COMBINE is not supported with multipass
        texturing, ie, if number of texture unit states > number
        of texture units supported by the hw, TextureAttributes.COMBINE
        will fall back to REPLACE.


Charmaine Lee
Sun Microsystems

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