• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.


  • Content count

  • Joined

  • Last visited

Community Reputation

169 Neutral

About wforl

  • Rank
  1. I'm looking into using shared surfaces (across processes) in one of my projects but the sample used to demonstrate the technique doesn't seem to be avaliable on MSDN anymore.   http://code.msdn.microsoft.com/DXGISyncSharedSurf   Has anyone come across any other samples I could refer to?   Hopefully the example code posted here will be enough to get me going, but a working example to refer to/compare against is always nice.
  2. The shader looks like this : struct VS_OUT { float4 pos : SV_POSITION; float4 col : COLOUR; }; VS_OUT VS(float2 ipos : POSITION, uint ilayer : LAYER, int icol : COLOUR) { VS_OUT vsOut; vsOut.pos = float4(ToNDC(ipos), MapLayerToDepth(ilayer), 1.0f); vsOut.col = ExtractColour(icol); return vsOut; } float4 PS(VS_OUT ips) : SV_Target { return ips.col; } technique10 Render { pass P0 { SetGeometryShader( 0 ); SetVertexShader( CompileShader( vs_4_0, VS() ) ); SetPixelShader( CompileShader( ps_4_0, PS() ) ); } }
  3. I have a large buffer of precomputed vertices(triangle list) that I want rendered as triangles. The vertex structure looks like this :   struct Vertex {     float x, y;     uint layer; }   The layer is in effect the depth, and ranges from [0 -> uint.Max], where 0 is closest and uint.Max is furthest away.   I started out by just enabling a depth buffer and converting the layer value to the appropiate depth range in the shader   i.e mapping [0, uint.Max] -> [0, 1].   but this causes issues as the increment for the [0-1] range is very small (1 / uint.Max), and so I lose precision.   I'll not be using the full [0, uint.Max] range, so I then just assumed that the layer won't be higher than 100,000   This brings the increment down to something sensible (0.00001)   but I'm wondering if I can ditch the mapping all togeather and just use straight uints for depth?   All the depth formats I can see suugest they need to be normalized, so iI'm guessing the answer is no, but thought I'd ask anyway    
  4. Upon further investigation the underlying COM pointer was indeed null due to me unintentionly releasing it earlier in the code. Having fixed that, things are now working. Thankyou
  5. I'm trying to create an application in which I render to a sampled buffer, resolve that buffer, and then pass on the resolved resource to another system. However, I seem to be having trouble with the 'ResolveSubresource' method throwing the following exception : First-chance exception at 0x761EC42D (KernelBase.dll) in DirectCanvasTest.exe: 0x0000087A (parameters: 0x00000000, 0x0036CD94, 0x0036C1CC). The output window reports the following : D3D11 CORRUPTION: ID3D10Device::ResolveSubresource: Third parameter is corrupt or NULL. [ MISCELLANEOUS CORRUPTION #15: CORRUPTED_PARAMETER3] First-chance exception at 0x761EC42D (KernelBase.dll) in DirectCanvasTest.exe: 0x0000087A (parameters: 0x00000000, 0x0036CD94, 0x0036C1CC). Not sure what I'm doing wrong, the thrid paramter isn't null, so I guess I'm creating it incorrectly. Here is the code for that as well as the resolve method: void ResizeBuffers(int _width, int _height) { if (m_renderTarget != null) { m_renderTarget.Dispose(); } if (m_renderTargetView != null) { m_renderTargetView.Dispose(); } _width = (int)_width > 0 ? (int)_width : 64; _height = (int)_height > 0 ? (int)_height : 64; var targetDesc = new Texture2DDescription() { BindFlags = BindFlags.RenderTarget | BindFlags.ShaderResource, Format = Format.B8G8R8A8_UNorm, Width = _width, Height = _height, MipLevels = 1, SampleDescription = new SampleDescription(4, 4), Usage = ResourceUsage.Default, OptionFlags = ResourceOptionFlags.None, CpuAccessFlags = CpuAccessFlags.None, ArraySize = 1 }; m_renderTarget = new Texture2D(Device, targetDesc); m_renderTargetView = new RenderTargetView(Device, m_renderTarget); targetDesc = new Texture2DDescription() { BindFlags = BindFlags.RenderTarget | BindFlags.ShaderResource, Format = Format.B8G8R8A8_UNorm, Width = _width, Height = _height, MipLevels = 1, SampleDescription = new SampleDescription(1, 0), Usage = ResourceUsage.Default, OptionFlags = ResourceOptionFlags.None, CpuAccessFlags = CpuAccessFlags.None, ArraySize = 1 }; m_resolveTarget = new Texture2D(Device, targetDesc); } void ResolveTarget() { int sourceIndex = SlimDX.Direct3D10.Resource.CalculateSubresourceIndex(0, 1, 1); int destIndex = SlimDX.Direct3D10.Resource.CalculateSubresourceIndex(0, 1, 1); Device.ResolveSubresource(m_renderTarget, sourceIndex, m_resolveTarget, destIndex, Format.B8G8R8A8_UNorm); } Anybody have any idea what I'm doing wrong?  
  6. First off, anyone managed to add the "search programs and files" text bar to the taskbar? And secondly, does anyone know how to the remove the gripper things show below? [attachment=12203:Untitled.png]
  7. If you can get your hands one Bjarne's "The C++ Programming Language" book, he explains how to create a calculator. The source code can also be found at his site.
  8. Some of my [url="http://wforl.wordpress.com/C++/"]recommendations [/url]
  9. Try disabling language extensions. Project Properties->Config->C/C++->Language
  10. I'm trying to introduce myself to using source control as I have no experience with any of the avaliable tools. So I've picked up Peforce and am trying to run through some of the common tasks someone might do in a general team of programmers. One task I thought would be beneficial, would be to roll back a file to a previous working version, such as in the example where a new code change was causing issues. My initial thoughts on this was to : - check out the file - roll it back - check in the file But I don't any options to do this. I can roll back a file without checking it out in my workspace or on the server, using the right click menu. But wouldn't the correct way to do this be to first check it out? Another way I thought of was to : - check out the file - Get an earlier revision - check in the file When I do this though, with the file still [b]checked out[/b], the server shows the earlier revision. Why is that? And secondly it doesnt allow me to submit with the error of not having the latest revision.
  11. So you've only just stumbled upon them and you've already created a video tutorial on how to and how not to use them?
  12. The best explanation I've seen was from Andrew Tolsen's book, Pro C# 2008 and the .net 3.5 Platform. Maybe try and get your hands on it.
  13. I've had similar experiences. When ever I've tried to apply a micro optimization I've often found the compiler to have been already applying a better one Out of interest how much longer does your application take to compile with the intel optimizations turned on and off?
  14. I don't want a streaming one because I dont want to have to leave a computer on for it to stream from.
  15. I was looking to see if there were any new books out based on C++11. I didn't find any, as its still early (Guess we'll have to give it a year or two), but I did find these coming out next year, thought I'd share. Effective Concurrency in C++ - Herb Sutter - 28 June 2012 Speaking of C++ - Herb Sutter - 28 June 2013 C++ Programming Language - Bjarne Stroustrup - 28 January 2012 C++ Templates - David Vandevoorde & Nocholai Josutti - 28 August 2012 The C++ Standard Library - Nocholai Josutti - 28 April 2012 ( Dates retrieved from [url="http://www.bookdepository.co.uk/"]www.BookDeposity.co.uk[/url] ) I'm personally looking forward to the new editions of the "The C++ Standard library" and "C++ Programming language". Going by [url="http://blogs.msdn.com/b/vcblog/archive/2011/09/12/10209291.aspx"]this[/url] though, I wonder just how much code will actually compile in VS when they do come out ( assuming they are using C++ 11 )