Jump to content
  • Advertisement
Sign in to follow this  
BigBeginner

Physical image-pixels from Textura that created by D3DPOOL_DEFAULT flag

This topic is 4847 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

Question is on the topic: I created an texture: D3DXCreateTexture (Device, W,H, 0, D3DUSAGE_RENDERTARGET, D3DFMT_A8R8G8B8, D3DPOOL_DEFAULT, MYTEX); This texture isn't be locked, so I created an another: D3DXCreateTexture (Device, W,H, 0,0, D3DFMT_A8R8G8B8, D3DPOOL_SYSTEMMEM, TEMPTEX); and... TEMPTEX.LOCKRECT physical image-pixels write into it etcetcetc TEMPTEX.UNLOCKRECT UpdateTexture (TEMPTEX, MYTEX); So, it works. But I want to reach the MYTEX's physical datas. But... neither MYTEX.LockRect nor UpdateTexture didn't work. Then... how to ask the MYTEX's physical pixel-datas?

Share this post


Link to post
Share on other sites
Advertisement
Hm, that damned Direct3D doesn't allow me to create dynamic texture :/

D3DXCreateTexture (Device, W,H, 0, D3DUSAGE_DYNAMIC, D3DFMT_A8R8G8B8, D3DPOOL_DEFAULT, MYTEX);

This returns with INVALIDCALL. ://///

Share this post


Link to post
Share on other sites
Always develop with the debug runtime enabled, and check the debug output. Most probably your driver doesn't support dynamic textures. Check the D3DCAPS2_DYNAMICTEXTURES flag of the D3DCAPS9 structure.

Share this post


Link to post
Share on other sites
Aham :( so is that impossible to do it, because my driver/card doesn't support it?

Lamma question: where do I set on the DEBUG MODE?

And unfortunatly I use DX8 :)

Share this post


Link to post
Share on other sites
Quote:
Original post by BigBeginner
Aham :( so is that impossible to do it, because my driver/card doesn't support it?

Lamma question: where do I set on the DEBUG MODE?

And unfortunatly I use DX8 :)

With DirectX 8, check the D3DCAPS8 structure [smile]. As for debug mode, you can find more info about this in the Forum FAQ as well as this NeXe entry

Share this post


Link to post
Share on other sites
Quote:
Original post by BigBeginner
And there is no DirectX icon in my Control Panel :S Despite I installed DX9

You must install the "Debug runtime" when installing the SDK, otherwise the icon won't show.
Find the debug runtime that corresponds to your SDK, and install it.

Quote:
Ok, that's OK, my card doesn't support the dinamic textures... but then? Do I put my card into the waste-basket? =)

Not really [smile]
Find another way to achieve your desired effect.

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!