• Advertisement


  • Content count

  • Joined

  • Last visited

Community Reputation

162 Neutral

About AlzPatz

  • Rank
  1. There's an awesome book called 'CODE' which is a great read. It doesn't get you all the way there (and gets a bit lighter / fluffy near the end through necessity), but is enough in my view to feel comfortable about what is going on at the very lowest level - atleast in a simplified / early computer way. Modern computers and various layers from OS upwards are just extensions / additions. you won't regret reading it. http://www.amazon.co.uk/Code-Language-Computer-Hardware-Software/dp/0735611319/ref=sr_1_1?ie=UTF8&qid=1405430673&sr=8-1&keywords=CODE  
  2. [sub]As Kauna says... You sort of set off trying to create one and then don't[/sub] [sub]// Create vertex buffer D3D11_BUFFER_DESC bd; ZeroMemory( &bd, sizeof(bd) ); bd.Usage = D3D11_USAGE_DEFAULT; bd.ByteWidth = 16; bd.BindFlags = D3D11_BIND_CONSTANT_BUFFER;[/sub] [sub]//You comment out your vertices sub resource??[/sub] [sub]/* D3D11_SUBRESOURCE_DATA InitData; ZeroMemory( &InitData, sizeof(InitData) ); InitData.pSysMem = vertices; */[/sub] [sub]//You dont create the buffer![/sub] [sub]something like...device->Createe buffer(&bd, &initdata, &vertexbuffer) or whatever the names are exactly![/sub] [sub] hr = device->CreateBuffer( &bd, NULL, &pCBuffer );[/sub]
  3. SOLVED...After so much time it was such a silly mistake (as always). I messed up the vertex buffer setting. d3dContext->IASetVertexBuffers(0, 1, &vertexBuffer, &str, &oset); had to be : d3dContext->IASetVertexBuffers(0, 1, vertexBuffer.GetAddressOf(), &str, &oset);
  4. I'm sorry that I keep bumping this thread. Is there anyone with a Windows 8 Development Environment and Visual Studio 2012 Professional that can run this through the graphics debugger to find out what is going wrong? I've rewritten this a million times now. Going stir crazy as not sure where the problem lies..think must be shader, but are so simple. THANKS
  5. Hi, some links to the visual studio solutions. The Metro Version that doesn't work..(shader code is compiled by VS2012's nice new abilitie, you need Win8 and VS2012) [url="http://www.filedropper.com/metrodx11trianglenotviewable"]http://www.filedropper.com/metrodx11trianglenotviewable[/url] The Win32 Version that does work... (same shader code. uses shader compilation at run time) [url="http://www.filedropper.com/win32dx11triangleisviewable"]http://www.filedropper.com/win32dx11triangleisviewable[/url] As you can see, win 32..easy! Metro...no triangles
  6. OK - I have this weekend spare for programming and don't want to spend it stuck on this issue. I have solution ready to send. It is a Metro App.
  7. Is anyone willing to receive a C++ Metro App to run, either with diagnostics or just to have a browse and see what simple mistake i am making?
  8. Thanks, I had look at the disabling the depth stencil before and did play with a different rasterizer (the code i sent did not set one, just use default)(. but will retry. thanks for looking anyway! ill report back
  9. Hi - no i do not. I didn't think I needed to if my vertices were already in "Screen Space", or Homogenous clip space, or whatever (-1,-1, z to 1, 1,z). maybe i got wrong end of the stick.
  10. thanks - yes, i'm just trying to put a triangle on screen as a simple test lol.
  11. Hi col_andersen. Same as me, I do not see anything obvious in the code. You are using the Jun2010 SDK? So no targeting metro? I could be getting the same effect. Any chance I could send you a simple solution zip file for you to run through the diagnostics to check if the same?
  12. i would also add that I have no problems doing this simple drawing in DirectX 11 and C++ in windows 7 / win 32. Im at a loss, completely.
  13. [i]so..turns out PIX has been replaced by Graphics Diagnostics integrated into Visual Studio 2012. Hurray I thought, until it turns out that it's only available on versions higher than 'express', so that's a £500+ purchase to use graphics debugging on Visual Studio 2012. soul destroying. Not sure anyway around this. I cant download any trial versions etc as I am running RC and some version of windows 8, it's all gone to sh1t until the real version of windows 8 is released.[/i]
  • Advertisement