Jump to content

  • Log In with Google      Sign In   
  • Create Account

Set alpha channel in pixel Bliting.


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 codewill   Members   -  Reputation: 106

Like
0Likes
Like

Posted 07 January 2013 - 12:33 AM

In Bink video how to eliminate the black pixel setting the Alpha =0 during at playback time?

 

In Allegro5 I set a Background image and create a popup new window where I show a .bik video.

This .bik video has black backgroud and has not Alpha Channel when the frame is decompressed.

I need set transparency where black pixel appear. So the main window background can be visible.

I have the RAD SDK.

 

In a call to Blit_RAD_3D_image (Blit a 3D image onto the render target) I have this:

      if ( rad_image->download_textures )
      {
        Submit_texture( pixels,
                        rad_image->row_length,
                        rad_image->maximum_texture_size,
                        rad_image->maximum_texture_size,
                        rad_image->gl_surface_type );
      }

      //
      // Submit the vertices.
      //

      Submit_vertices( dest_x,
                       dest_y,
                       x_scale,
                       y_scale,
                       rad_image->maximum_texture_size,
                       rad_image->maximum_texture_size,
                       alpha_level,
                       is_premultiplied_alpha );

 

 

VS2010 C++.

 

Thank you.

 

Edited by codewill, 07 January 2013 - 01:54 PM.


Sponsor:

#2 Khatharr   Crossbones+   -  Reputation: 3040

Like
0Likes
Like

Posted 07 January 2013 - 03:11 AM

~disregard this post - I didn't read the question correctly the first time~

Edited by Khatharr, 07 January 2013 - 03:12 AM.

void hurrrrrrrr() {__asm sub [ebp+4],5;}

There are ten kinds of people in this world: those who understand binary and those who don't.

#3 codewill   Members   -  Reputation: 106

Like
0Likes
Like

Posted 07 January 2013 - 01:55 PM

~disregard this post - I didn't read the question correctly the first time~

Sorry. I modified the post. I hope be more clear.






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS