Jump to content
  • Advertisement
Sign in to follow this  
Stowelly

Bink with DX9

This topic is 3721 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi just having a couple of problems integrating Bink with my engine trying to do a BinkCopyToBuffer straight into a DX texture of format A8R8G8B8 and the video is rendering at the wrong colour / surface format, now im pretty sure what i need is either BINKSURFACE32 or BINKSURFACE32A but when i choose these flags nothing is drawn, anyone know of any reason why this might be? D3DLOCKED_RECT texture_rect; hr = dx_texture->LockRect(0,&texture_rect,null,D3DLOCK_DISCARD); BinkCopyToBuffer(m_bink,texture_rect.pBits,texture_rect.Pitch,m_height,0,0, BINKCOPYALL); hr = dx_texture->UnlockRect( 0 ); its then drawn externally in my renderer as a IDirect3DTexture9 here's an e.g of what is drawn with the current flags http://img413.imageshack.us/img413/4809/binktg6.jpg I also had some problem with it not drawing anything without locking using D3DLOCK_DISCARD but im assuming this is normal many thanks

Share this post


Link to post
Share on other sites
Advertisement
fixed now

i didnt realise bink didnt natively handle argb so just switch the texture format i was using to rgb



Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!