• Advertisement

thedodgeruk

Member
  • Content count

    233
  • Joined

  • Last visited

Community Reputation

124 Neutral

About thedodgeruk

  • Rank
    Member
  1. i am doing shader work  in the geometry shader  a particle system and thought that doing a check at the beginning and doing an early return  then it would speed up the whole  project . i found that no speed improvement was made.   i even tryed doing  a modular test so it would return every time apart from the 1000 particle , it still made no difference    what can i do  for early return so that it will speed up the process ?
  2. DX11 tessellation shader crash

    thanks for the help , finally figured it out and it was a very stupid mistake, project was originally dx10 when i ran it in debug layer mode , and checked exactloy what was happening , in my post processsing stage , it said there was a mismatch will vertex and hull shader , which not make sence cause im not setting the hull shader aprt from the models which tesselate. that makes sense until i realised im not resetting the hull shader to NULL. that was the problem , cheers
  3. im trying to place tessellation into my project. i am using a lab project, the project it self works perfectly so i copyed in the correct shader and relative c++ code. i also converted my project from dx10 to dx11 the project it self work perfectly until i activate a model with a tessellation shader , at this point the grafix driver crashes. the lab project does not crash. i cant put code here becuase there is simply too much code [img]http://public.gamedev.net//public/style_emoticons/default/sad.png[/img] i was wondering if any one has come across this problem, a friend said he had the problem but it was about 6 months ago and he cannot remember what it was i was wondering if any one any might have an idea? oh and have double checked that i am doing g_pd3dContext->IASetPrimitiveTopology(D3D11_PRIMITIVE_TOPOLOGY_3_CONTROL_POINT_PATCHLIST) for tesselation and g_pd3dContext->IASetPrimitiveTopology( D3D11_PRIMITIVE_TOPOLOGY_TRIANGLELIST ); for normal models done some more tests and it apears it crahes when the swap chain presents the backbuffer , i cant tell what is the final back buffer though to see if its valid or not
  4. i have a project , a 3rd year final year project . if i run it inside visual studio , the fps can go to 350 , down to 50 , up to 100 , down to 145, up to 450 ect in the space of about 5 seconds there is nothing happening in these seconds apart from updating stationary objects and rendering them if i copy the debug exe into the project and run that , the frame rate is steady 450fps , with no blipping if i run the analyser, the fps also stays steady , can any one think what in visual studio is doing this ?
  5. [attachment=7664:report.PNG] this is the analized report from when i run my project , [attachment=7665:report1.PNG] this is another one form the same project in the second picture , as can bee seen about 87% of the work is done by "unknown frames", and if i look in the _tmainCRTStartup, it has all my code for looping , rendering , management ect , all my code at the moment its running at about 90 frames a seconds , thats only drawing about 10 models of simple meshes and some text its not my part of the code thats making it run so bad but its what the unknownframes is doing thats making it so bad . i was wondering if any one has any idea whats causing this , or how i have setup my project to be like this ?
  6. i was look at frank lunas water , and how it works , i see that it changes direction , in the scene but i cant find the line of code that does this i want to remove it so the eater allways goes one way or a way i want it to go. does any one know please . i figure this is a good stepping stone to do my own water shader / render method
  7. whats the best container for this DXGI_FORMAT_R8G8B8A8_UINT [color=#2A2A2A]A four-component, 32-bit unsigned-integer format that supports 8 bits per channel including alpha.[/color] a struct { UINT r; UINT g; UINT b; UINT a; };
  8. was wondering , has any one used myGui?

    is there a good tutorail on how to use cmake , tryed it a few times and the amount of link errors are pretty bad just wish there was a pre-compied myGui out there for direxctx and visual studio
  9. i came across this [url="http://mygui.info/"]http://mygui.info/[/url] [url="http://www.ogre3d.org/tikiwiki/MyGUI+Compiling"]http://www.ogre3d.org/tikiwiki/MyGUI+Compiling[/url] it looks like i have ogre to use it , and for the life of me i cant get it to work . was wondering if any one has any tips , cause i need a tool bar in and antTweak bar does not have enough scope for what i need
  10. directx10 does not support tga files even though directx9 did is the a good converter that will convert the tga to a file format that directx10 can use and still keep the parts that are transparret. i have tryed converting it and i have not had any succsess so far
  11. http://imageshack.us/photo/my-images/836/captureksf.png/ i am doing post processing , i can do full screen , ok , doing polly gon post , but when i do i only get one of the traingles in the quad rendering cant figure out were it going wrong , any ideas
  12. convert a project to lib or dll

    at the mo i have a visual studio project . its my 3rd year game engine project , i would like to convert it to a more engine like so that the insides can not be tampered with , by converting it to a .lib files and make a little wizard to start it up with the baasic start code for running the engine were can i find this out pease
  13. below is bit of the funtion i use to create ID3D10Texture2D* and others ect [code]<div>void &nbsp;CRenderPostManager::Create(UINT width , UINT height , ID3D10Texture2D* texture, ID3D10RenderTargetView* targetview, ID3D10ShaderResourceView* resourseView)</div><div>{</div><div>// Create the "scene texture" - the texture into which the scene will be rendered in the first pass</div><div>D3D10_TEXTURE2D_DESC textureDesc;</div><div>textureDesc.Width &nbsp;<span class="Apple-tab-span" style="white-space:pre"> </span> &nbsp; = width; &nbsp;// Match views to viewport size</div><div>textureDesc.Height <span class="Apple-tab-span" style="white-space:pre"> </span> &nbsp; = height;</div><div>textureDesc.MipLevels <span class="Apple-tab-span" style="white-space:pre"> </span> &nbsp; = 1; // No mip-maps when rendering to textures (or we will have to render every level)</div><div>textureDesc.ArraySize <span class="Apple-tab-span" style="white-space:pre"> </span> &nbsp; = 1;</div><div>textureDesc.Format <span class="Apple-tab-span" style="white-space:pre"> </span> &nbsp; = DXGI_FORMAT_R8G8B8A8_UNORM; // RGBA texture (8-bits each)</div><div>textureDesc.SampleDesc.Count &nbsp; = 1;</div><div>textureDesc.SampleDesc.Quality = 0;</div><div>textureDesc.Usage <span class="Apple-tab-span" style="white-space:pre"> </span> &nbsp; = D3D10_USAGE_DEFAULT;</div><div>textureDesc.BindFlags <span class="Apple-tab-span" style="white-space:pre"> </span> &nbsp; = D3D10_BIND_RENDER_TARGET &nbsp;| D3D10_BIND_SHADER_RESOURCE; // Indicate we will use texture as render target, and pass it to shaders</div><div>textureDesc.CPUAccessFlags <span class="Apple-tab-span" style="white-space:pre"> </span> &nbsp; = 0;</div><div>textureDesc.MiscFlags <span class="Apple-tab-span" style="white-space:pre"> </span> &nbsp; = 0;</div><div>g_pd3dDevice-&gt;CreateTexture2D( &amp;textureDesc, NULL, &amp;texture );</div><div>g_pd3dDevice-&gt;CreateRenderTargetView( texture, &nbsp; &nbsp; &nbsp; NULL, &amp;targetview );</div><div>}</div>[/code] i use this line to activate it [code]Create (width , height , m_pSceneTexture, m_pSceneRenderTarget, m_pSceneShaderResource);[/code] now when i step though the main code the variables are created and are legit but once that method has been done, the variables are not valid , its like they were copyed opver , not by reference , were am i going wrong
  14. i have 20 shaders in 1 fx file this file can take about 15 seconds to load via D3DX10CreateEffectFromFile, is there a faster way to load a shader.fx file convert it to another form or something ?
  15. reflections ?

    i have a camera class which i can get the matrix from i have a mirror class which i can get the matrix from at the moment the mirror class just creates a texture from its facing vector i would like to use the camera facing direction and the mirror facing direction to create a new matrix which would be used to create a texture from i cant figure out the maths for it though any help please
  • Advertisement