Jump to content

  • Log In with Google      Sign In   
  • Create Account


hunpro

Member Since 02 Sep 2007
Offline Last Active Today, 11:27 AM
-----

#5090833 8 bit textures in DX9

Posted by hunpro on 01 September 2013 - 12:47 PM

I used an 8 bit texture once with dx9, it had this format: D3DFMT_L8.




#5053226 Loading textures without D3DX?

Posted by hunpro on 14 April 2013 - 01:12 PM

I found GDI+'s Bitmap class extremly easy to use, it can load images from more formats (i use it to load png's to create texture arrays for dx11). It is supported from winXP and above. No need for external lib, but for windows only ofc.




#5050657 [SharpDX] Understanding DX11 blend states

Posted by hunpro on 06 April 2013 - 02:16 PM

Do you see the triangles without this blending turned on?
If not, then 2 quick tips: forgot to transpose the viewprojection matrix, or forgot to set some constant buffer to the proper shaders. At least those are my main 2 sources of pain nowadays. rolleyes.gif

You can turn on dx debug in sdk->utilities->Directx control panel, if you haven't already. I got some usefull info about not setting the proper patch type for my hull shader, which made the driver reset, so it can be usefull,but not a magic bullet.




#5049282 XAudio2 Not Playing

Posted by hunpro on 02 April 2013 - 01:45 PM

Basicly the only difference between the running and the not running version is the 'playAudio' function ends, and THEN the sound is not playing anymore. That suggest that something on the stack gets freed what is not supposed to.
My tip is the "Wave buffer" object's destructor is the culprit. I think you must store your sound data until you playing it.
Try making 'buffer' global for example, see if it works.




#5015848 Z-Fighting with water

Posted by hunpro on 30 December 2012 - 02:34 PM

What if you just fade the water out when the geom' Z value is close to the water's Z?


#4992561 DirectX problem - my C++ program freezes!

Posted by hunpro on 21 October 2012 - 03:00 PM

Hi,
'memcpy(&pVoid..' has a (big) problem: pVoid is a pointer, and you wanto to copy data to where it points, not where the pVoid variable is stored. Use pVoid instead of &pVoid. With your current code, you overwrite pVoids value, so it points somewhere else, and trash some remaining memory after pVoid, so you end up with that mean message.


PARTNERS