Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


RipeTomatoe

Member Since 25 Feb 2010
Offline Last Active Feb 29 2012 11:24 PM

Posts I've Made

In Topic: [C++ DirectX9] Render to Texture

21 February 2012 - 11:50 PM

OK, so it's all working now, I don't really know what I changed, but it's working, and I'm going to test it on more machines to make sure it's a good thing. Thanks for all your help guys!

In Topic: [C++ DirectX9] Render to Texture

21 February 2012 - 11:32 PM

I finally got the DirectX debugger to show up (I accidently enabled the 64-bit one, instead of the 32-bit one) and it is showing me warning's about ignoring redundant SetSamplerStates, and SetRenderStates. I assume this code is actually in the d3dxmesh class, because I never call those functions in my code.

This is the only error I get now

Direct3D9: (ERROR) :Invalid flag D3DCLEAR_ZBUFFER: no zbuffer is associated with device. Clear failed.


it also doesn't like any depth stencil code.

I'm really stumped at this. It's now showing, but since it doesn't have depth everything is stacked on each other.

In Topic: [C++ DirectX9] Render to Texture

21 February 2012 - 09:31 PM

You're performing rendering operations outside of a begin/end-scene pair.


Well I moved around my begin and end scene pair, and it still works on my laptop, but not my desktop. I know that the clear command is working because the texture gets the colour. However it seems like nothing is rendered onto that texture.

In Topic: [C++ DirectX9] Render to Texture

21 February 2012 - 08:21 PM

I switched to the debug, and nothing is appearing that is out of the ordinary. Also all the HRESULT values are return S_OK.

-Daniel (Ripe)

PARTNERS