• Content count

  • Joined

  • Last visited

Community Reputation

1538 Excellent

About hunpro

  • Rank

Personal Information

  • Industry Role
  • Interests
  1. Luckily a fellow dev's old geforce could repoduce the glitch, a 64x48 DXGI_FORMAT_R8_UNORM texture caused the problem. I changed it for a DXGI_FORMAT_R8G8B8A8_UINT type, all is good, my game is in the store now.I think the vga driver made the texture 64x64 and because my program uses only 48 lines, the lower part gets filled with some memory dump. Actually it is pretty funny, this glitch looks someting like a C64 could do. And this game is inspired by games like Monty on the run and the time before parallax scrolling backgrounds. - thank you for the help ApochPiQ!
  2. Hi, I am releasing my 2d game on Steam, so sent it to review and they said it has some black and white rectangles covering parts of the screen. I don't have this issue on my old pc of course (amd 6670 vga), and I tested on a laptop too (amd gpu), without any problem. The game uses Direct3d11 with c++, nothing fancy, 2 layer of tiles, and some sprites for decorations and some postprocess effects. I have no idea what to do. Released it a while ago on, had some 20+ downloads, nobody said anything about not working - or anything at all, sadly. So anyone does have any tips, how to figure out a graphical bug that is not reproductable on your end, and you doesn't even have a screenshot?
  3. I use GDI+ for this. ( Gdiplus::Bitmap::FromFile )
  4. software rendering win32

    I used DIB (device independent bitmap) to draw on, it is pretty fast, and very easy to use.
  5. I like this one-file method, so I checked the file, the function seem to return the length used: 5277. data = (short *) malloc(total * sizeof(*data)); // here's the array created, 'total' is total len 5301. return data_len; // num of 'short's used in array I would be curious too if this .ogg player works, I used the libs some year ago, they were all right.
  6. Nice work with the hieghtmap LODs, back in my dx9 days i did something like that. If i don'f find some hardware based solution, I'm going to use a similar method. I have all the heightmap data for physics near the camera, i upload them for the for the gpu, maybe only for the close chunks, and use the tesselation for distant parts. Havok has a very simple hieghtfield shape I'm using, the 'hkpTriSampledHeightFieldCollection'. It only needs the heightmap dimensions,cellsize, and the triangle winding. So all the cell must be divided into triangles from topright-bottomleft or topleft-bottomright. It is quite fast to create, fully dynamic because it uses the heightmap data the user has, no need for uploading or preprocessing. My game is procedurally generates terrain, so i need all the speed. :)
  7. Hi, I have a tesselated terrain, this is how a quad path looks like : (integer subdiv) [attachment=25377:integersubdivgird.jpg]   But it's not good for my (havok's based) heightfield, the triangles should all go like this: [attachment=25378:uniformgrid.jpg] Is there a way to achive this on the hardware? I tried all the the partitioning types: "integer", "fractional_even",  "fractional_odd", "pow2" None of them does this.   Any help is welcome.  
  8. Xaudio 'debugging' can cause a lot of error to my app: XAudio2Create(&xaDevice,XAUDIO2_DEBUG_ENGINE); It hangs the app in several places, without the XAUDIO2_DEBUG_ENGINE flag everything is fine. I suggest experimenting with the input matrix, maybe try filling it with simple data, this link can be usefull.
  9. DirectX 9 vs 11

    I ported me small project from dx9 to 11 almost a year ago, i use almost nothing from the new features, but overall i am very satisfied with dx11. Texture2Darray was a big enough reason to move, heightmapping is a couple of lines of shadercode now, and making the same thing in dx9 costed me more time than learning all the new stuff.
  10. I use a 'loose uniform grid' for my openworld game, it is very simple, every object has to connect only to one cell, and adding/removing objects is basicly free.
  11. 8 bit textures in DX9

    I used an 8 bit texture once with dx9, it had this format: D3DFMT_L8.
  12. 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.
  13. 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.  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.
  14. XAudio2 Not Playing

    Because you can play one sound buffer more than one at a time (ie. many ppl shooting with the same gun), i would separate the storage and the sounds playing in the 3d/2d space. Basicly i would add an extra class with 3d position etc. and a pointer/index to an 'Audio' class. This would represent a playing sound instance in the game.
  15. XAudio2 Not Playing

    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.