I tried searching for a DirectX cheat sheet but only came up with this one for DirectX 10:
http://www.inmensia.com/articulos/directx/directx_d3d10_cheat_sheet.html
What I am really interested in is DirectX 9 and 11.
Are there any cheat sheets available for these?
Arguably the best "cheat sheet" is MSDN:
http://msdn.microsoft.com/en-us/library/windows/desktop/ff476079%28v=vs.85%29.aspx
http://msdn.microsoft.com/en-us/library/windows/desktop/ee663274%28v=vs.85%29.aspx
http://msdn.microsoft.com/en-us/library/windows/desktop/hh309465%28v=vs.85%29.aspx
Related
i am currently trying to convert a game to use dx9 instead of dx8. I would say that i'm quite close to completing it, but I have a few errors that I don't exactly know how to deal with atm.
DeleteVertexShader and DeletePixelShader do not exist anymore in directx 9. What do I do with those? I could not find any equivalent to them in dx9 so far.
Old code example:
D3D_CHECKERROR(hr); hr = _pGfx->gl_pd3dDevice->DeletePixelShader(ulHandle);
Render state D3DRS_PATCHSEGMENTS does not exist anymore, it was used for the number of segments per edge when drawing patches. Do I need to replace it with something? I could not find any equivalent for this either.
Code example:
HRESULT hr = _pGfx->gl_pd3dDevice->SetRenderState( D3DRS_PATCHSEGMENTS, *((DWORD*)&fSegments));
These two issues are the ones I have the most struggles with atm, so any help would be appreciated.
Thanks in advance!
In Direct3D 9, vertex shader and pixel shaders return COM interfaces to the shader object. Therefore, it's deleted whenever the IUnknown reference count is 0. See Microsoft Docs: Programming DirectX with COM.
The 'n-patch' and 'rect/tri-patch' features were never widely supported or used. Direct3D 9 does support these legacy features Using Higher-Order Primitives (Direct3D 9), but only if the hardware reports support via D3DDEVCAPS_NPATCHES / D3DDEVCAPS_RTPATCHES.
You can also take a look at some of the n-patch support in legacy D3DX9, but you probably just need to rewrite this code for modern cards.
See Microsoft Docs: Converting to Direct3D 9.
Be sure to read this blog post as well.
Is it possible / a good choice to use Google Cardboard SDK to realise AR?I Only have found VR related things with that SDK. What is the best framework for AR? Is Vuforia a good way to go? Im trying to write an AR app (for Android) which detects/scans room numbers at my university and shows the schedule of this room (which class / time / which prof...)
Thanks for help!
Google Cardboard SDK is made for VR, hence not the best option for AR. There are SDKs built specifically for AR. Check out this comparison
There is an alpha version of DroidScript (JavaScript IDE for Android) available which supports augmented reality for Google Cardboard. There is also a sample on the DroidScript forum that demonstrates Aruco marker detection (Augmented reality). So I guess you could hack something together quite easily if you ask the developers for the latest version.
The latest version of vuforia can be integrated with Google cardboard.
Check this link:
https://developer.vuforia.com/library/articles/Solution/Integrating-Cardboard-SDK-050
I've just rebuilt my old DirectDraw based game and I'm very happy with the results!
It was one of my first C++ programs in a diectx world.
But I was disappointed to discover that DirectDraw is deprecated.
After installing DirectX SDK July 2010 there is no ddraw.h and ddraw.lib.
My question:
how to port my DirectDraw based 2D game to the recent DircetX SDK?
Is there any DirectDraw replacement?
What about OpenGL?
Any idea would be appreciated!
Take a look at Direct2D. A tutorial can be found here, for instance.
I want to know if we can develop C#, WPF application using DirectX 11. I have an application (medium size) which is written using DirectX. We need to use features from Directx 11 like parallel rendering. Is it possible to develop applications using DirectX 11? If yes can anyone provide me some sample application for that? We can't go for other options like SlimDX as we can't afford to rewrite whole code.
Please suggest what is the best option for me?
I haven't tried using C# with DirectX myself, but from what I've read, your main options for DirectX and C# are either SlimDX (which you count out) or XNA, which many users seem to find lacking in features, especially from the newer versions of DirectX.
I have started working on Corona SDK.As you all know it uses Lua as the programming language,i wanted to know some good links or ebooks which i can refer to begin development.I am an iPhone developer and working on objective C since last 1 year.
Any suggestions,help would be appreciated.
Thanks
Aditya
I've been using this: Programming in Lua, first edition (FREE online edition of the book)
The Corona SDK forums are also good for specific issues related to the SDk itself. It seems it is having a few database problems just right now, but you might want to check it later.
Edit: just for completeness, here is the link to the Lua Bookstore # amazon (not an affiliate link).
You can also check out http://learningcorona.com/ which has a huge listing of tutorials for Corona.
Here's a great resource for learning Lua, it's aimed towards beginner programmers (doesn't sound like you), but it does a great job at introducing Lua and most of the basic concepts:
Lua for Beginners:
http://lua.gts-stolberg.de/en/index.php?uml=1
That, as well as the "Learning Corona" section of the Ansca docs should be plenty enough to get you up to speed in a very short amount of time:
http://developer.anscamobile.com/resources/docs/
TIP: Start working on a project, or converting an existing app using Corona and you'll learn it blazing fast! That's what I did, and I learned it quickly enough to have one of my games fully converted in about 8 days.
For understanding basics of CORONA SDK I will prefer "Corona.SDK.Mobile.Game.Development.Beginners.Guide"
book from Packtpub publication.
and You can also check out http://www.learningcorona.com/ for tutorial both video and audio.
The Lua Reference Manual is also an excellent read: Concise and complete.
Lua Gems is also worth looking at (at least the freely available snippets).
I found the Beginning Lua Programming book to be pretty good as a complete reference for Lua with good example code.
My very personal advice is just take a look at great books (Programming in LUA is covering everything) and switch as soon as possibles to samples / tutorials in order to learn all the API functions.
There are several Corona sdk video tutorials on YouTube. One demonstrates how to create a simple balloon game in a few minutes. You can have Your Lua editor in one window and YouTube in another, and click on the video to start/stop and switch to the editor and type in the code. Some tutorials provide links to download the code.
hello you can use their website they have good documentation you will find it here
http://docs.coronalabs.com/api/