• 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.

mobjr

Members
  • Content count

    10
  • Joined

  • Last visited

Community Reputation

108 Neutral

About mobjr

  • Rank
    Member

Personal Information

  1. Hello SeanMiddleditch. :)   I believe visual studio is not for me. :wacko:  Now I want uninstall VisualStudio 2015 community. I have a lot of headcache. <_< MinGW is easy and I can build my own programs and Games with OpenGL on both platforms without problems (Windows and Linux). :wink:   Thanks.
  2. Hello SeanMiddleditch. :)   about the DirectX is OK :)  Yes. I know there is no SDK I trying to download from vs2015c.  :(   There is no problem with my HD(space) and my connection.  :)   I cannot create my project with C++ and Dx11 [sharedmedia=gallery:images:7876]   I see that message... [sharedmedia=gallery:images:7877]   I tried to repair my vs2015c and found this [sharedmedia=gallery:images:7879]   I uninstalled vs2015res14.0.24215 and I installed 14.0.210 [sharedmedia=gallery:images:7878]     my vs2015c show me that message: https://support.microsoft.com/en-us/kb/3039361 perhaps my problem is : http://blogs.msdn.com/b/astebner/archive/2006/09/04/739820.aspx with no success :(
  3. Hello. :)   I'm new here. I have Visual Studio 2015 community. I have MinGW and I don't have problems. Now I found VS2015 and I see i can build my own programs and games with DirectX. I have Windows 7 x64   I tried to create a new project in "C++ with DirectX11 SDK" and I see that message: "Cannot  find the target" <_<   I tried google but with no success. :(   I installed DirectX SDK "June 2010" and "August 2009" and "Windows SDK 7" i can't include "windows.h" or even "stdio.h" in my projects... :(   here my problem: [sharedmedia=gallery:albums:1140]
  4. I asked, because I try to compile with MSVC2010, until now I don't have problem, but I have problem with memory and space and I don't have memory and free space. I lost a lot of time to compile one program with 3k , my problem with MSVC2010 is memory. It`s easy and and quick with MinGW. [code] C:\devel\gcc\tmp>gcc -o myprogram myprogram.c -W C:\devel\gcc\tmp>cat myprogram.c #include <stdio.h> int main(int argc, char **argv){ unsigned int i = 0; if(argc>1){ for(i=1;i<(unsigned int)argc;i++){ printf("%s ",argv[i]); } }else{ printf("name is %s \n",argv[0]); } return(0); } C:\devel\gcc\tmp>ls -lhX myprogram.c myprogram.exe -rwxrwxrwx 1 miltonjr 0 237 2011-07-07 23:56 myprogram.c -rwxrwxrwx 1 miltonjr 0 22K 2011-07-07 23:57 myprogram.exe C:\devel\gcc\tmp>myprogram.exe name is myprogram.exe C:\devel\gcc\tmp> [/code]
  5. [quote name='Soul Reaver' timestamp='1309856078' post='4831258'] MinGW has its own D3D headers and libraries if I recall correctly. It's certainly possible to compile a D3D application with MinGW. [/quote] You mean... Is possible to compile DirectX9 with MinGW? I have this files with MinGW, I found this libs: [code] libd3dx8d.a libd3dx9d.a libd3dxof.a libdxapi.a libdxerr8.a libdxerr9.a libdxguid.a [/code] and this: [code] d3d9.h d3d9caps.h d3d9types.h [/code] I tried to compile with MinGW but I saw that message: [code] C:\devel\gcc\tmp> gcc -o msvc2010 msvc2010.c -ld3d9 -ld3dx9d -ldxgui -ldxapi -ldxerr9 -ldxof -lgdi32 -luser32 -lkernel32 -mwindows -w msvc2010.c: In function 'initD3D': msvc2010.c:131:5: error: 'struct IDirect3D9' has no member named 'CreateDevice' msvc2010.c: In function 'render_frame': msvc2010.c:144:8: error: 'struct IDirect3DDevice9' has no member named 'Clear' msvc2010.c:145:8: error: 'struct IDirect3DDevice9' has no member named 'BeginScene' msvc2010.c:148:8: error: 'struct IDirect3DDevice9' has no member named 'SetFVF' msvc2010.c:149:8: error: 'struct IDirect3DDevice9' has no member named 'SetStreamSource' msvc2010.c:149:49: error: 'CUSTOMVERTEX' undeclared (first use in this function) msvc2010.c:149:49: note: each undeclared identifier is reported only once for each function it appears in msvc2010.c:150:8: error: 'struct IDirect3DDevice9' has no member named 'DrawPrimitive' msvc2010.c:154:8: error: 'struct IDirect3DDevice9' has no member named 'EndScene' msvc2010.c:155:8: error: 'struct IDirect3DDevice9' has no member named 'Present' msvc2010.c: In function 'cleanD3D': msvc2010.c:160:10: error: 'struct IDirect3DVertexBuffer9' has no member named 'Release' msvc2010.c:161:8: error: 'struct IDirect3DDevice9' has no member named 'Release' msvc2010.c:162:5: error: 'struct IDirect3D9' has no member named 'Release' msvc2010.c: In function 'init_graphics': msvc2010.c:169:2: error: 'CUSTOMVERTEX' undeclared (first use in this function) msvc2010.c:169:15: error: expected ';' before 'vertices' msvc2010.c:175:8: error: 'struct IDirect3DDevice9' has no member named 'CreateVertexBuffer' msvc2010.c:185:10: error: 'struct IDirect3DVertexBuffer9' has no member named 'Lock' msvc2010.c:186:15: error: 'vertices' undeclared (first use in this function) msvc2010.c:187:10: error: 'struct IDirect3DVertexBuffer9' has no member named 'Unlock' [/code]
  6. [quote name='Flimflam' timestamp='1309757211' post='4830798'] I'm pretty sure DirectX is designed to be used with just the VC compiler, and uses compiler specific things which would make it incompatible with other compilers. At least, that's how it used to be. [/quote] Thanks.
  7. [quote name='MartinsM' timestamp='1309787818' post='4830963'] Most likely d3ddev variable is NULL. Try debugging your code to see where it gets initialized. And you should stop posting screenshot of problems. Copy&paste error text and code snippet. [/quote] Thank you. OK, there is no problem, as you wish: [code] #include <windows.h> #include <windowsx.h> #include <d3d9.h> #pragma comment (lib,"d3d9.lib") #define SCREEN_WIDTH 800 #define SCREEN_HEIGHT 600 LPDIRECT3D9 d3d; LPDIRECT3DDEVICE9 d3ddev; void initD3D(HWND dhwnd); void render_frame(void); void cleanD3D(void); LRESULT CALLBACK WindowProc( HWND hwnd, UINT uwmsg, WPARAM wpam, LPARAM lpam); int WINAPI WinMain( HINSTANCE his, HINSTANCE hps, LPSTR lpCmdLine, int nShow){ HWND hwnd; WNDCLASSEX wc; ZeroMemory(&wc,sizeof(WNDCLASSEX)); wc.cbSize = sizeof(WNDCLASSEX); wc.style = CS_HREDRAW|CS_VREDRAW; wc.lpfnWndProc = WindowProc; wc.hInstance = his; wc.hCursor = LoadCursor(NULL,IDC_ARROW); wc.lpszClassName = "WindowClass"; RegisterClassEx(&wc); hwnd = CreateWindowEx( NULL, "WindowClass", "MinGW C/C++ - Win32 Application", WS_EX_TOPMOST|WS_POPUP, 0, 0, SCREEN_WIDTH, SCREEN_HEIGHT, NULL, NULL, his, NULL); ShowWindow(hwnd,nShow); initD3D(hwnd); MSG msg; while(TRUE){ while(PeekMessage(&msg,NULL,0,0,PM_REMOVE)){ TranslateMessage(&msg); DispatchMessage(&msg); } if(msg.message == WM_QUIT){ break; } render_frame(); } cleanD3D(); } void initD3D(HWND dhwnd){ d3d = Direct3DCreate9(D3D_SDK_VERSION); D3DPRESENT_PARAMETERS d3dpp; ZeroMemory(&d3dpp,sizeof(d3dpp)); d3dpp.Windowed = FALSE; d3dpp.SwapEffect = D3DSWAPEFFECT_DISCARD; d3dpp.hDeviceWindow = dhwnd; d3dpp.BackBufferFormat = D3DFMT_X8R8G8B8; d3dpp.BackBufferWidth = SCREEN_WIDTH; d3dpp.BackBufferHeight = SCREEN_HEIGHT; d3d->CreateDevice( D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, dhwnd, D3DCREATE_SOFTWARE_VERTEXPROCESSING, &d3dpp, &d3ddev); } void render_frame(void){ d3ddev->Clear(0,NULL,D3DCLEAR_TARGET,D3DCOLOR_XRGB(0,40,100),1.0f,0); d3ddev->BeginScene(); d3ddev->EndScene(); d3ddev->Present(NULL,NULL,NULL,NULL); } void cleanD3D(void){ d3ddev->Release(); d3d->Release(); } LRESULT CALLBACK WindowProc( HWND hwnd, UINT uwmsg, WPARAM wpam, LPARAM lpam){ switch(uwmsg){ case WM_DESTROY: PostQuitMessage(0); return 0; break; } return DefWindowProc(hwnd,uwmsg,wpam,lpam); } [/code] [code] ------ Rebuild All started: Project: dx3dfullscreen, Configuration: Debug Win32 ------ Build started 4/7/2011 13:10:05. _PrepareForClean: Deleting file "Debug\dx3dfullscreen.lastbuildstate". InitializeBuildStatus: Creating "Debug\dx3dfullscreen.unsuccessfulbuild" because "AlwaysCreate" was specified. ClCompile: dx3dfullscreen.cpp Link: dx3dfullscreen.vcxproj -> C:\Documents and Settings\miltonjr\My Documents\Visual Studio 2010\Projects\dx3dfullscreen\Debug\dx3dfullscreen.exe FinalizeBuildStatus: Deleting file "Debug\dx3dfullscreen.unsuccessfulbuild". Touching "Debug\dx3dfullscreen.lastbuildstate". Build succeeded. Time Elapsed 00:00:04.91 ========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ========== [/code]
  8. Thanks. I removed. Unbelievable I found another problem. there is Screenshot. I'm not sure but I believe this error is between the chair and Computer(Me). I wrote this because I thought I found an error after to put this post but I was wrong [size="5"][u][b]Please ignore this topic. [/b][/u][/size]
  9. I' m Sorry. I don't speak English very well. I have Visual Studio 2010, I understand, my MSVC2010 try to compile with an option 64 bits but I have 32 Bit. I would like to disable this option but I can`t find. I have WinXP 32 Bits. I found something about 64 bits but I can' t find this option "/Wp64" in my MSVC2010: [url="http://social.msdn.microsoft.com/Forums/da-DK/vcgeneral/thread/42c1e1d4-e4fe-4aa4-b1fc-7189cdc16218"]cl : Command line warning D9035 : option 'Wp64' has been deprecated and will be removed in a future release[/url] I found an error: [code] typedef _W64 unsigned int size_t; [/code] [code]------ Build started: Project: dx3dfullscreen, Configuration: Debug Win32 ------ Build started 4/7/2011 09:01:37. InitializeBuildStatus: Touching "Debug\dx3dfullscreen.unsuccessfulbuild". ClCompile: dx3dfullscreen.cpp c:\program files\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(29): error C2144: syntax error : '__w64 unsigned int' should be preceded by ';' c:\program files\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(29): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int Build FAILED. Time Elapsed 00:00:01.50 ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== [/code]
  10. I`m sorry. I don`t speak English very well. I can`t compile my program with MinGW and DirectX9 . I have Visual Studio Express 2010 there is no problem with my source code but with my MinGW yes. I tried to compile my program with MinGW and I saw that message: [code] C:\devel\gcc\tmp>set|grep -i dx dxi="C:\Program Files\Microsoft DirectX SDK (February 2006)\Include" dxl64="C:\Program Files\Microsoft DirectX SDK (February 2006)\Lib\x64" dxl86="C:\Program Files\Microsoft DirectX SDK (February 2006)\Lib\x86" DXSDK_DIR=C:\Program Files\Microsoft DirectX SDK (February 2006)\ C:\devel\gcc\tmp>gcc -o dx3d dx3d.c -mwindows -I%dxi% -L%dxl86% In file included from dx3d.c:6:0: C:\Program Files\Microsoft DirectX SDK (February 2006)\Include/d3d9.h:254:1: error: redefinition of typedef 'IDirect3D9' C:\Program Files\Microsoft DirectX SDK (February 2006)\Include/d3d9.h:192:49: note: previous declaration of 'IDirect3D9' was here In file included from dx3d.c:6:0: C:\Program Files\Microsoft DirectX SDK (February 2006)\Include/d3d9.h:347:1: error: redefinition of typedef 'IDirect3DDevice9' C:\Program Files\Microsoft DirectX SDK (February 2006)\Include/d3d9.h:193:49: note: previous declaration of 'IDirect3DDevice9' was here C:\Program Files\Microsoft DirectX SDK (February 2006)\Include/d3d9.h:756:1: error: redefinition of typedef 'IDirect3DStateBlock9' C:\Program Files\Microsoft DirectX SDK (February 2006)\Include/d3d9.h:194:49: note: previous declaration of 'IDirect3DStateBlock9' was here C:\Program Files\Microsoft DirectX SDK (February 2006)\Include/d3d9.h:797:1: error: redefinition of typedef 'IDirect3DSwapChain9' C:\Program Files\Microsoft DirectX SDK (February 2006)\Include/d3d9.h:207:49: note: previous declaration of 'IDirect3DSwapChain9' was here C:\Program Files\Microsoft DirectX SDK (February 2006)\Include/d3d9.h:851:1: error: redefinition of typedef 'IDirect3DResource9' C:\Program Files\Microsoft DirectX SDK (February 2006)\Include/d3d9.h:198:49: note: previous declaration of 'IDirect3DResource9' was here C:\Program Files\Microsoft DirectX SDK (February 2006)\Include/d3d9.h:903:1: error: redefinition of typedef 'IDirect3DVertexDeclaration9' C:\Program Files\Microsoft DirectX SDK (February 2006)\Include/d3d9.h:195:49: note: previous declaration of 'IDirect3DVertexDeclaration9' was here C:\Program Files\Microsoft DirectX SDK (February 2006)\Include/d3d9.h:941:1: error: redefinition of typedef 'IDirect3DVertexShader9' C:\Program Files\Microsoft DirectX SDK (February 2006)\Include/d3d9.h:196:49: note: previous declaration of 'IDirect3DVertexShader9' was here C:\Program Files\Microsoft DirectX SDK (February 2006)\Include/d3d9.h:980:1: error: redefinition of typedef 'IDirect3DPixelShader9' C:\Program Files\Microsoft DirectX SDK (February 2006)\Include/d3d9.h:197:49: note: previous declaration of 'IDirect3DPixelShader9' was here C:\Program Files\Microsoft DirectX SDK (February 2006)\Include/d3d9.h:1019:1: error: redefinition of typedef 'IDirect3DBaseTexture9' C:\Program Files\Microsoft DirectX SDK (February 2006)\Include/d3d9.h:199:49: note: previous declaration of 'IDirect3DBaseTexture9' was here C:\Program Files\Microsoft DirectX SDK (February 2006)\Include/d3d9.h:1090:1: error: redefinition of typedef 'IDirect3DTexture9' C:\Program Files\Microsoft DirectX SDK (February 2006)\Include/d3d9.h:200:49: note: previous declaration of 'IDirect3DTexture9' was here C:\Program Files\Microsoft DirectX SDK (February 2006)\Include/d3d9.h:1191:1: error: redefinition of typedef 'IDirect3DVolumeTexture9' C:\Program Files\Microsoft DirectX SDK (February 2006)\Include/d3d9.h:201:49: note: previous declaration of 'IDirect3DVolumeTexture9' was here C:\Program Files\Microsoft DirectX SDK (February 2006)\Include/d3d9.h:1293:1: error: redefinition of typedef 'IDirect3DCubeTexture9' C:\Program Files\Microsoft DirectX SDK (February 2006)\Include/d3d9.h:202:49: note: previous declaration of 'IDirect3DCubeTexture9' was here C:\Program Files\Microsoft DirectX SDK (February 2006)\Include/d3d9.h:1393:1: error: redefinition of typedef 'IDirect3DVertexBuffer9' C:\Program Files\Microsoft DirectX SDK (February 2006)\Include/d3d9.h:203:49: note: previous declaration of 'IDirect3DVertexBuffer9' was here C:\Program Files\Microsoft DirectX SDK (February 2006)\Include/d3d9.h:1465:1: error: redefinition of typedef 'IDirect3DIndexBuffer9' C:\Program Files\Microsoft DirectX SDK (February 2006)\Include/d3d9.h:204:49: note: previous declaration of 'IDirect3DIndexBuffer9' was here C:\Program Files\Microsoft DirectX SDK (February 2006)\Include/d3d9.h:1537:1: error: redefinition of typedef 'IDirect3DSurface9' C:\Program Files\Microsoft DirectX SDK (February 2006)\Include/d3d9.h:205:49: note: previous declaration of 'IDirect3DSurface9' was here C:\Program Files\Microsoft DirectX SDK (February 2006)\Include/d3d9.h:1623:1: error: redefinition of typedef 'IDirect3DVolume9' C:\Program Files\Microsoft DirectX SDK (February 2006)\Include/d3d9.h:206:49: note: previous declaration of 'IDirect3DVolume9' was here C:\Program Files\Microsoft DirectX SDK (February 2006)\Include/d3d9.h:1687:1: error: redefinition of typedef 'IDirect3DQuery9' C:\Program Files\Microsoft DirectX SDK (February 2006)\Include/d3d9.h:208:49: note: previous declaration of 'IDirect3DQuery9' was here dx3d.c: In function 'WinMain': dx3d.c:67:5: warning: passing argument 1 of 'CreateWindowExA' makes integer from pointer without a cast c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/winuser.h:3556:24: note: expected 'DWORD' but argument is of type 'void *' dx3d.c: In function 'initD3D': dx3d.c:102:5: error: 'struct IDirect3D9' has no member named 'CreateDevice' dx3d.c: In function 'render_frame': dx3d.c:113:8: error: 'struct IDirect3DDevice9' has no member named 'Clear' dx3d.c:114:8: error: 'struct IDirect3DDevice9' has no member named 'BeginScene' dx3d.c:116:8: error: 'struct IDirect3DDevice9' has no member named 'EndScene' dx3d.c:117:8: error: 'struct IDirect3DDevice9' has no member named 'Present' dx3d.c: In function 'cleanD3D': dx3d.c:122:8: error: 'struct IDirect3DDevice9' has no member named 'Release' dx3d.c:123:5: error: 'struct IDirect3D9' has no member named 'Release' [/code]