Jump to content

  • Log In with Google      Sign In   
  • Create Account


How to use ID3DXEffect in Custom EVR Presenter?


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
1 reply to this topic

#1 Showery   Members   -  Reputation: 102

Like
0Likes
Like

Posted 26 March 2012 - 12:18 AM

Hi,

I'm trying to use Effect Framework in Custom EVR Presenter. However, ID3DXEffect need a IDirect3DTexture9 parameter while EVR Presenter can only display IDirect3DSurface9. How can i dislay the frame with IDirect3dTexture9.

In addition, pSurface->GetContainer(IID_IDirect3DTexture9,...) return E_NOINTERFACE.

I will be very appreciated for your help.

Thanks.

Sponsor:

#2 kubera   Members   -  Reputation: 903

Like
0Likes
Like

Posted 27 March 2012 - 09:21 AM

I am not sure, but maybe you would:
  • Create an empty Texture by CreateTexture
  • LockRect in the surface
  • LockRect in the texture
  • Copy data into this texture
  • UnlockRect twice
A bit similar and more advanced code you would find here:
http://blogs.msdn.co...ple-update.aspx




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