The forums have permanently moved to forum.kirupa.com. This forum will be kept around in read-only mode for archival purposes. To learn how to continue using your existing account on the new forums, check out this thread.

Results 1 to 2 of 2

Thread: Stage3D - Semi transparent Textures

  1. #1

    Stage3D - Semi transparent Textures

    OK, here's another Stage3D question.

    I've got layered textures in one scene with one object having a texture of a semi transparent white colour. When rendered in the scene, it does appear to be semi transparent but instead of white it's coming up as a dull grey colour.

    I have read elsewhere that it could be something to do with pre-multiplied alphas and that you can use BlendMode.ADD to solve this when capturing the bitmapdata to upload to the texture but I'm unable to get this to work.

    Anyone come accross this issue before and know a solution?

  2. #2
    Found the answer!

    Contrary to what most documentation says, use these blend settings in your 3Dcontext:

    context.setBlendFactors(Context3DBlendFactor.ONE,C ontext3DBlendFactor.ONE_MINUS_SOURCE_ALPHA)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Home About kirupa.com Meet the Moderators Advertise

 Link to Us

 Credits

Copyright 1999 - 2012