Jump to content
  • Advertisement

e3d_ALiVE

Member
  • Content count

    171
  • Joined

  • Last visited

Community Reputation

209 Neutral

About e3d_ALiVE

  • Rank
    Member

Personal Information

  1. e3d_ALiVE

    Text on top of everything

    in order for text to be on top of everything, you must render everyrhing FIRST, only after that should you draw your text
  2. e3d_ALiVE

    [DX11] GUI rendering

    there is also anttweakbar http://www.antisphere.com/Wiki/tools:anttweakbar it's free, has dx11 support and may be what u looking for
  3. you have to query ID3D11Texture2D interface from shaderTextureResource,then you have to get description from it with GetDescif you don't want or don't know how to query, then u may just call GetDesc from textureResource, it will give you D3D11_TEXTURE2D_DESC structure with all the fields(w,h format e.t.c.) that you needyou can also call D3DX11GetImageInfoFromFile to retrieve information about the file
  4. e3d_ALiVE

    D3D10 Index buffer sizes

    the main perfomance problem is draw call and send call ->set matrix/texture ->draw repeat it might be very efficent to do this select group of objects, that has same texture size create texture2darray from them create matrix array for them[for d3d10 you can see sampe in nvidia blendshapes example, or look at the forum, i posted the code long time ago][for d3d11 level 10 there it's called StructuredBuffer[you only need read only!, no need for UAV][i think you already doing similar stuff anyway] somehow put them into single vertex and index buffer, can be done with d3dxmeshconcatenate i think then in render: set texture array set matrix array[you can set it as shader buffer or as second stream] *set array of indices of which mesh in that big array is visible[frustum culling][kill them in geometry shader+possibility of occlusion integration with HZB] draw batch that method will singificantly reduce draw calls for static geometry[since it can be preprpocessed] for dynamic geometry you gonna be needing ->UpdateSubResource or Better ->Map with discard flag, but it might throttle bandwitdth generall it's better to have less draw cals p.s. with that frustum killing you might restructure you code, so your VS be passthorugh and GS actually executed VS only in case it was't frustum culled, but it's up to you, if you don't have lot's of polygos in frame u don't need it.
  5. e3d_ALiVE

    D3D10 Index buffer sizes

    there are 2 limitations on creating buffers[whatever they be invex/vertex/texture or just buffer] IT MUST be aligned to 16, if it's not that creation will failfor d3d10 the buffer ByteWidth or totalsize must be less then 128*1024*1024 aka 128MBp.s. i'v tested with idea of putting entire mesh into big buffer, it will fit in most cases you can improve perofmrnce by using texture2darray like texture atlas in d3d9 that will singificantly reduce draw calls your send your world matrix much less, if you also put it into buffer, and index to it from shader or you can put it directly via vertex streams specifying flag per instance you should do perfomance tests on your app, but in general reducing complexity of shaders and reducing draw calls is a good idea.
  6. CAudio requres you to put only 2 dlls into your folder, caudio and mp3plugin, + you need to link it with lib file, like that #pragma comment(lib,"caudio.lib") and add that line #include <cAudio.h> put caudio include files into your search paths or put lib file and caudio files into your source directory after that it's just cAudio::IAudioManager* manager; cAudio::IAudioSource *jumpS; manager = cAudio::createAudioManager(true); jumpS=manager->create("test1","Res/Audio/jump.wav",true); that's it
  7. if you want a GOOD FREE OpenSource library to play mp3/wav/ogg/flac then try CAudio here it already have all dlls and libs, so u don't need to compile any sources it's based on popular crossplatform OpenAL and have no problem working with dx, it also has tutorials and memory manager aside from that it can also record sounds from mic, use special effects[reverb, echo, underwater] and stream audio. now about your problem: PlaySound("blah.wav", NULL, SND_FILENAME); this functions returns true if it can play sound, you need check for that first possible reasons for not playing: application seeks that file in debug foler, while it's located somehwere else, try "../blah.wav" it's wrong wav file[since that api can play only spiecific wav files] try different wav file, for example the file that goes with windows
  8. e3d_ALiVE

    DXViewer missing DLL

    aside from that it may be possible that u changed something in your manifest settings that screwed it up maybe it's looking for x64 dlls and u give it x86 or inverse
  9. e3d_ALiVE

    DXViewer missing DLL

    classic error, install VC++ resitributables usually it's 2005/2008 or 2010 they automaticly installs with latest drivers from nvidia/ati and some games
  10. e3d_ALiVE

    Number of subsets in a ID3DX10Mesh

    usually it's the same as number of materials for that mesh there is also functions to getattributetable, that can tell you exactly what amounts of subsets mesh has and for what vertices each subset is set
  11. e3d_ALiVE

    Clearing a ID311Buffer

    as alternative to clearing the ID3D11Buffer with 400 elements with type R32_FLOAT for example if it consists of floats and u need to clear them all to 1 std::vector<float> data;//make sure that this thing is aligned data.resize(400); devc11->UpdateSubResource(buffer,&data[0]); as alternative u can map it with discard and clear there
  12. here's the ways: shader way: either with one shader[using some basic math to skip the middle] or with two shaders, one for high black bar and the one for lowergood old way: map texture with discard flag, fill the black bars on cpu and then unmapnaive method: just create alphamap with blackbars and merge it with your texture with alpha mapping[in shader or in fixed pipeline]unless ur directx shader version is below 2.0 go with first method
  13. e3d_ALiVE

    DirectX11 Books...

    there is also Introduction to 3D game programming with DirectX10.0" by Frank Luna there currently no dx11 books, but u can adapt stuff from dx10 books or wait untill dx11 book is released
  14. e3d_ALiVE

    D3DX11 and tga

    or you can load it with FreeImage here's a snippet how to do it http://pastebin.com/40BV7vV0 don't mind e3d_Std it's just log functions
  15. hello i'm trying to copy single mip level from texture(R32_FLOAT) with many mip levels(10) into structured buffer(sizeof(float)*Width*Height). Is there any way to do it, except custom map/unmap? Is indexing structured buffer in compute shader faster then by simply calling load? i got these errors D3D11: ERROR: ID3D11DeviceContext::CopySubresourceRegion: When offset by the destination coordinates, pSrcBox does not fit on the destination subresource. OffsetSrcBox = { {0, 0, 0}, {200, 150, 1} }. DstSubresource = { {0, 0, 0}, {1920000, 1, 1} }. [ RESOURCE_MANIPULATION ERROR #280: COPYSUBRESOURCEREGION_INVALIDSOURCEBOX ] D3D11: ERROR: ID3D11DeviceContext::CopySubresourceRegion: Cannot invoke CopySubresourceRegion when the Formats of each Resource are not the same, or castable to each other, unless GetFeatureLevel() returns D3D_FEATURE_LEVEL_10_1 or greater. [ RESOURCE_MANIPULATION ERROR #281: COPYSUBRESOURCEREGION_INVALIDSOURCE ]
  • 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!