Woohoo :D, Agreement No. 2 :DQuote:
Posted by NoteMe
I am totaly in....
Woohoo :D, Agreement No. 2 :DQuote:
Posted by NoteMe
I am totaly in....
Option B it is then...;)Quote:
Originally posted by Electroman
So is it:Code:// Option A...
// Constructor
/************************\
|* Edited By NoteMe *|
|* At: 20-05-2004 *|
\************************/
CApp::CApp()
{
g_pCApp = this;
m_bActive = FALSE;
m_strWindowTitle = _T("Tiki's Garden v 0.1");
m_dwWidth = 640;
m_dwHeight = 480;
}
// Or
// Option B...
// Constructor
CApp::CApp()
// Edited By NoteMe At: 20-05-2004
{
g_pCApp = this;
m_bActive = FALSE;
m_strWindowTitle = _T("Tiki's Garden v 0.1");
m_dwWidth = 640;
m_dwHeight = 480;
}
Quote:
Originally posted by Electroman
Haven't got a clue, haven't used C++ that much yet, only played around with consoles remember, but I can learn fast ;).
This is things that no VC++ book sais anything about...but I think I am getting somewhere now..:D
I am now proud to present the 23 first working files in our project....:D..
I changed the edited by ØØ thingy for every function a bit..see if you like it or not...
http://terrain.electromanuk.com/samples/tiki.rar
And since you don't like rar..then try ZIP
BTW rar = weird in Norwegian..:D
http://terrain.electromanuk.com/samples/tiki.zip
That makes sense cos .rar means wierd to me ;).Quote:
Posted by NoteMe
BTW rar = weird in Norwegian..:D
Hehe...there is so many functions here..:D...not sure if that is for all the functions, but if there is just as many functions in all the other classes then I am not sure if I ever going to finish this...:D
http://vbforums.com/attachment.php?s=&postid=1696159
Picture's a bit blurry but is that the one from the book then :eek:
Quote:
Originally posted by Electroman
Picture's a bit blurry but is that the one from the book then :eek:
I had to scale it down to get a print screen...yeah that is two of the clases in the Gaia Engine..:D
Added some more classes to it last night...this is going to be a big ****er..::D...I think I will hang it on my wall when I am finished..:D
I don't think it's going to be that big. Yeah its a big project but when you think of how large a whole fully functioning game is it won't be as bad. Planning it before hand too will make it easier ;).
Yeah but the gaia engine has nearly 200 files...and there is a lot of functions is a lot of them...so if I ever finish this UML thingy for it, I think I need my whole wall..:D
You know you've been documenting Gaia, well have you seen this yet, http://www.mightystudios.com/content/view/18/29/, it might come in handy ;).
Quote:
Originally posted by Electroman
You know you've been documenting Gaia, well have you seen this yet, http://www.mightystudios.com/content/view/18/29/, it might come in handy ;).
I know...on the old page he had a document with this an 20 more pages...I printed it out, but didn't download it....so I can't show it too you...but it doesn't contain all the classes, and not the function....
BTW should we add a page with the coding style...I feel like it is slipping a bit away here in the thread...:D
Hehehe...:D
Quote:
I am the moderator fro the Games & Graphics Section over at VBForums.com which is where I meant NoteMe
hehe, wonder if that shows up when I edit it ;).Quote:
Posted by NoteMe
Hehehe...:D
YEah I'll see if I can get some time to do it, I plan to get my essays done today and tomorrow mostly revision for my exam on wedensday. I will probably get some time free when I'm not revising then though.Quote:
Posted by NoteMe
BTW should we add a page with the coding style...I feel like it is slipping a bit away here in the thread...:D
You sound like my GF...I will do it today...the next day..I will do it today...the next day...I will do it today...:D
Just kidding with you.
Just take your time...I can add it to the ToDo list...and then you can do it after 4th June. Or when you have the time.
:lol: :lol:
Yeah i hope I get some time before then but I'll see ;).
Have you ever used a memory manager....I am always afreaid to forget to clean things up...and I read this cool article about how to make one, but it was very unclear on how to implement it.
But I stumbeled over this right now...:D
http://www.flipcode.com/cgi-bin/msg....m=askmid&id=-1
*Bump*
Just showing there is still life in this thread ;)
Well I will soon have finished my exams and be back on this project :D. Whereas you have ages left :D:D.
So for are we actually going to render the trianlges, are we going to use TRIANGLE_STRIP or TRIANGLE_LIST. I would have thought the list one would be best because we are altering it so much but it would use lots more verts than the Stip does.
What you think?
BTW I'm gonna draw a diagram in a bit to show the triangle arrabgment ;).
I am not sure what is best. What did Gaia use?
BTW maybe we can start to add on things to that iteration plan soon. So it is easier to see what we are going to start with?
Like if we are going to make a "map editor" so the engine can read the terrain in, and then display it?
I have a idea for the file structure but it depends, it might need a little more optimising.
Will have a look at Gaia...
Did you ever finish that multithreading thingy? Can I see the message loop in that thingy?
Yeah I am still working on the DirectX part of it but the rest is good enough ;). I know what your like about classes but seen as though there wouldn't be two or more instances I just enclosed it in files ;).
If you want to class it up I suppose I am ok with it, just post what changes you make ;).
Are you running your code in Debug or in Runtime?
I get this message when I run it...scary...
Quote:
Direct3D9: :====> ENTER: DLLMAIN(00d83950): Process Attach: 000008a8, tid=00000498
Direct3D9: (WARN) :Executing processor detection code (benign first-chance exception possible)
Direct3D9: (INFO) :MMX detected
Direct3D9: (INFO) :Pentium Pro CPU features (fcomi, cmov) detected
Direct3D9: (INFO) :dwCPUFamily = 6, dwCPUFeatures = 7
Direct3D9: (INFO) :szCPUString = AuthenticAMD
Direct3D9: (INFO) :Win2K SP1 or above detected - enabling VB swap workaround
Direct3D9: :====> EXIT: DLLMAIN(00d83950): Process Attach: 000008a8
Direct3D9: (INFO) :Direct3D9 Debug Runtime selected.
Direct3D9: (ERROR) :Invalid Flags parameter: Exactly one of the following must be set: D3DCREATE_HARDWARE_VERTEXPROCESSING, D3DCREATE_SOFTWARE_VERTEXPROCESSING or D3DCREATE_MIXED_VERTEXPROCESSING. ValidateCreateDevice failed.
Direct3D9: (INFO) :======================= Hal HWVP device selected
Direct3D9: (INFO) :HalDevice Driver Style 9
Direct3D9: :BackBufferCount not specified, considered default 1
Direct3D9: :DoneExclusiveMode
Direct3D9: (INFO) :Failed to create driver indexbuffer
'Basis.exe': Loaded 'C:\WINNT\system32\hid.dll', Cannot find or open a required DBG file.
'Basis.exe': Loaded 'C:\WINNT\system32\SETUPAPI.DLL', Cannot find or open a required DBG file.
'Basis.exe': Loaded 'C:\WINNT\system32\USERENV.DLL', Cannot find or open a required DBG file.
'Basis.exe': Loaded 'C:\WINNT\system32\comctl32.dll', Cannot find or open a required DBG file.
The thread 'Win32 Thread' (0x804) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x498) has exited with code 0 (0x0).
Direct3D9: :====> ENTER: DLLMAIN(00d83950): Process Detach 000008a8, tid=0000077c
Direct3D9: (INFO) :MemFini!
Direct3D9: (ERROR) :Memory still allocated! Alloc count = 93
Direct3D9: (ERROR) :Current Process (pid) = 000008a8
Direct3D9: (ERROR) :Memory Address: 006e4054 lAllocID=1 dwSize=000047f8, ReturnAddr=00d83796 (pid=000008a8)
Direct3D9: (ERROR) :Memory Address: 006ea94c lAllocID=11 dwSize=000011b8, ReturnAddr=00d7e1e9 (pid=000008a8)
Direct3D9: (ERROR) :Memory Address: 006ea86c lAllocID=12 dwSize=00000008, ReturnAddr=00d7e289 (pid=000008a8)
Direct3D9: (ERROR) :Memory Address: 006ebb44 lAllocID=13 dwSize=000005a0, ReturnAddr=00d82f45 (pid=000008a8)
Direct3D9: (ERROR) :Memory Address: 006e8b24 lAllocID=35 dwSize=000006bc, ReturnAddr=00d8f12f (pid=000008a8)
Direct3D9: (ERROR) :Memory Address: 006e92b4 lAllocID=38 dwSize=00001584, ReturnAddr=00d8478b (pid=000008a8)
Direct3D9: (ERROR) :Memory Address: 006ec11c lAllocID=40 dwSize=00000008, ReturnAddr=00d848bc (pid=000008a8)
Direct3D9: (ERROR) :Memory Address: 00f40064 lAllocID=43 dwSize=00003500, ReturnAddr=00d83796 (pid=000008a8)
Direct3D9: (ERROR) :Memory Address: 006ec164 lAllocID=44 dwSize=00000198, ReturnAddr=00d83796 (pid=000008a8)
Direct3D9: (ERROR) :Memory Address: 006ea8b4 lAllocID=45 dwSize=00000030, ReturnAddr=00d83796 (pid=000008a8)
Direct3D9: (ERROR) :Memory Address: 00f4359c lAllocID=46 dwSize=00001020, ReturnAddr=00d83796 (pid=000008a8)
Direct3D9: (ERROR) :Total Memory Unfreed From Current Process = 49800 bytes
Direct3D9: :====> EXIT: DLLMAIN(00d83950): Process Detach 000008a8
The program '[2216] Basis.exe: Native' has exited with code 0 (0x0).
So does that run?
I ran it on my PC and didn't get any of those messages :confused:, we are talking about the output box yea?
BTW you should notice this was mainly the code I had for the demo thing for the Games Section soon, it was gonna be modifyed quite a lot before we used it for the project ;).
After I changed line 83 in the mydirectx.cpp file to this:
I am getting less errors...Code:if (FAILED(g_pD3D->CreateDevice( D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, hWnd, D3DCREATE_PUREDEVICE && D3DCREATE_HARDWARE_VERTEXPROCESSING, &g_d3dpp, &g_pD3DDevice )))
Quote:
Direct3D9: :====> ENTER: DLLMAIN(00d93950): Process Attach: 00000994, tid=0000099c
Direct3D9: (WARN) :Executing processor detection code (benign first-chance exception possible)
Direct3D9: (INFO) :MMX detected
Direct3D9: (INFO) :Pentium Pro CPU features (fcomi, cmov) detected
Direct3D9: (INFO) :dwCPUFamily = 6, dwCPUFeatures = 7
Direct3D9: (INFO) :szCPUString = AuthenticAMD
Direct3D9: (INFO) :Win2K SP1 or above detected - enabling VB swap workaround
Direct3D9: :====> EXIT: DLLMAIN(00d93950): Process Attach: 00000994
Direct3D9: (INFO) :Direct3D9 Debug Runtime selected.
Direct3D9: (ERROR) :Invalid BehaviorFlags parameter. ValidateCreateDevice failed.
Direct3D9: (INFO) :======================= Hal HWVP device selected
Direct3D9: (INFO) :HalDevice Driver Style 9
Direct3D9: :BackBufferCount not specified, considered default 1
Direct3D9: :DoneExclusiveMode
Direct3D9: (INFO) :Failed to create driver indexbuffer
'Basis.exe': Loaded 'C:\WINNT\system32\hid.dll', Cannot find or open a required DBG file.
'Basis.exe': Loaded 'C:\WINNT\system32\SETUPAPI.DLL', Cannot find or open a required DBG file.
'Basis.exe': Loaded 'C:\WINNT\system32\USERENV.DLL', Cannot find or open a required DBG file.
'Basis.exe': Loaded 'C:\WINNT\system32\comctl32.dll', Cannot find or open a required DBG file.
The thread 'Win32 Thread' (0x940) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x99c) has exited with code 0 (0x0).
Direct3D9: :====> ENTER: DLLMAIN(00d93950): Process Detach 00000994, tid=00000990
Direct3D9: (INFO) :MemFini!
Direct3D9: (ERROR) :Memory still allocated! Alloc count = 93
Direct3D9: (ERROR) :Current Process (pid) = 00000994
Direct3D9: (ERROR) :Memory Address: 006f4054 lAllocID=1 dwSize=000047f8, ReturnAddr=00d93796 (pid=00000994)
Direct3D9: (ERROR) :Memory Address: 006fa94c lAllocID=11 dwSize=000011b8, ReturnAddr=00d8e1e9 (pid=00000994)
Direct3D9: (ERROR) :Memory Address: 006fa86c lAllocID=12 dwSize=00000008, ReturnAddr=00d8e289 (pid=00000994)
Direct3D9: (ERROR) :Memory Address: 006fbb44 lAllocID=13 dwSize=000005a0, ReturnAddr=00d92f45 (pid=00000994)
Direct3D9: (ERROR) :Memory Address: 006f8b24 lAllocID=35 dwSize=000006bc, ReturnAddr=00d9f12f (pid=00000994)
Direct3D9: (ERROR) :Memory Address: 006f92b4 lAllocID=38 dwSize=00001584, ReturnAddr=00d9478b (pid=00000994)
Direct3D9: (ERROR) :Memory Address: 006fc11c lAllocID=40 dwSize=00000008, ReturnAddr=00d948bc (pid=00000994)
Direct3D9: (ERROR) :Memory Address: 00f50064 lAllocID=43 dwSize=00003500, ReturnAddr=00d93796 (pid=00000994)
Direct3D9: (ERROR) :Memory Address: 006fc164 lAllocID=44 dwSize=00000198, ReturnAddr=00d93796 (pid=00000994)
Direct3D9: (ERROR) :Memory Address: 006fa8b4 lAllocID=45 dwSize=00000030, ReturnAddr=00d93796 (pid=00000994)
Direct3D9: (ERROR) :Memory Address: 00f5359c lAllocID=46 dwSize=00001020, ReturnAddr=00d93796 (pid=00000994)
Direct3D9: (ERROR) :Total Memory Unfreed From Current Process = 49800 bytes
Direct3D9: :====> EXIT: DLLMAIN(00d93950): Process Detach 00000994
The program '[2452] Basis.exe: Native' has exited with code 0 (0x0).
Your PC is strange, mine has no trouble compiling it :confused:.
My output is:Code:'Basis.exe': Loaded 'D:\My Projects\CPP\TikisGarden\Tests\Basis\Debug\Basis.exe', Symbols loaded.
'Basis.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', No symbols loaded.
'Basis.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', No symbols loaded.
'Basis.exe': Loaded 'C:\WINDOWS\system32\dinput8.dll', No symbols loaded.
'Basis.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll', No symbols loaded.
'Basis.exe': Loaded 'C:\WINDOWS\system32\advapi32.dll', No symbols loaded.
'Basis.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll', No symbols loaded.
'Basis.exe': Loaded 'C:\WINDOWS\system32\user32.dll', No symbols loaded.
'Basis.exe': Loaded 'C:\WINDOWS\system32\gdi32.dll', No symbols loaded.
'Basis.exe': Loaded 'C:\WINDOWS\system32\d3d9.dll', No symbols loaded.
'Basis.exe': Loaded 'C:\WINDOWS\system32\d3d8thk.dll', No symbols loaded.
'Basis.exe': Loaded 'C:\WINDOWS\system32\version.dll', No symbols loaded.
'Basis.exe': Loaded 'C:\WINDOWS\system32\winmm.dll', No symbols loaded.
'Basis.exe': Loaded 'C:\WINDOWS\system32\uxtheme.dll', No symbols loaded.
'Basis.exe': Loaded 'C:\Program Files\Logitech\MouseWare\system\LgWndHk.dll', No symbols loaded.
'Basis.exe': Loaded 'C:\WINDOWS\system32\CTAGENT.DLL', No symbols loaded.
'Basis.exe': Loaded 'C:\Program Files\Common Files\Logitech\Scrolling\LGMSGHK.DLL', No symbols loaded.
'Basis.exe': Loaded 'C:\WINDOWS\system32\msvcp60.dll', No symbols loaded.
'Basis.exe': Loaded 'C:\WINDOWS\system32\hid.dll', No symbols loaded.
'Basis.exe': Loaded 'C:\WINDOWS\system32\setupapi.dll', No symbols loaded.
The thread 'Win32 Thread' (0x2f4) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0xeb0) has exited with code 0 (0x0).
The program '[2496] Basis.exe: Native' has exited with code 0 (0x0).
Are you using the
Debug -> Direc3D -> Debug mode way to start it?
:confused: Not sure what you mean so I will guess not :(. Don't forget I'm not used to using Dx with C++ :(.Quote:
Posted by NoteMe
Are you using the
Debug -> Direc3D -> Debug mode way to start it?
Ow I see now, will try it....
Not me either...2 sec...and I will show you a post....
I ment Pic..:D
http://vbforums.com/attachment.php?s=&postid=1709950
I now get:Code:'Basis.exe': Loaded 'D:\My Projects\CPP\TikisGarden\Tests\Basis\Debug\Basis.exe', Symbols loaded.
'Basis.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', No symbols loaded.
'Basis.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', No symbols loaded.
'Basis.exe': Loaded 'C:\WINDOWS\system32\dinput8.dll', No symbols loaded.
'Basis.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll', No symbols loaded.
'Basis.exe': Loaded 'C:\WINDOWS\system32\advapi32.dll', No symbols loaded.
'Basis.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll', No symbols loaded.
'Basis.exe': Loaded 'C:\WINDOWS\system32\user32.dll', No symbols loaded.
'Basis.exe': Loaded 'C:\WINDOWS\system32\gdi32.dll', No symbols loaded.
'Basis.exe': Loaded 'C:\WINDOWS\system32\d3d9.dll', No symbols loaded.
'Basis.exe': Loaded 'C:\WINDOWS\system32\d3d8thk.dll', No symbols loaded.
'Basis.exe': Loaded 'C:\WINDOWS\system32\version.dll', No symbols loaded.
'Basis.exe': Loaded 'C:\WINDOWS\system32\winmm.dll', No symbols loaded.
'Basis.exe': Loaded 'C:\WINDOWS\system32\uxtheme.dll', No symbols loaded.
'Basis.exe': Loaded 'C:\Program Files\Logitech\MouseWare\system\LgWndHk.dll', No symbols loaded.
'Basis.exe': Loaded 'C:\WINDOWS\system32\CTAGENT.DLL', No symbols loaded.
'Basis.exe': Loaded 'C:\WINDOWS\system32\d3d9d.dll', No symbols loaded.
'Basis.exe': Loaded 'C:\Program Files\Common Files\Logitech\Scrolling\LGMSGHK.DLL', No symbols loaded.
'Basis.exe': Loaded 'C:\WINDOWS\system32\msvcp60.dll', No symbols loaded.
Direct3D9: (ERROR) :Invalid BehaviorFlags parameter. ValidateCreateDevice failed.
Direct3D9: (INFO) :======================= Hal HWVP device selected
'Direct3D HAL (HWVP) Device 1': Attached to debug monitor.
'Basis.exe': Loaded 'C:\WINDOWS\system32\hid.dll', No symbols loaded.
'Basis.exe': Loaded 'C:\WINDOWS\system32\setupapi.dll', No symbols loaded.
The thread 'Win32 Thread' (0xd94) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0xfb0) has exited with code 0 (0x0).
Direct3D9: (ERROR) :Memory still allocated! Alloc count = 91
Direct3D9: (ERROR) :Current Process (pid) = 000005ec
Direct3D9: (ERROR) :Memory Address: 003385fc lAllocID=1 dwSize=000047f8, ReturnAddr=00cd3796 (pid=000005ec)
Direct3D9: (ERROR) :Memory Address: 00335c84 lAllocID=9 dwSize=000019bc, ReturnAddr=00cce1e9 (pid=000005ec)
Direct3D9: (ERROR) :Memory Address: 003352b4 lAllocID=10 dwSize=00000008, ReturnAddr=00cce289 (pid=000005ec)
Direct3D9: (ERROR) :Memory Address: 0033f2dc lAllocID=11 dwSize=00000860, ReturnAddr=00cd2f45 (pid=000005ec)
Direct3D9: (ERROR) :Memory Address: 0033ce2c lAllocID=27 dwSize=000006bc, ReturnAddr=00cdf12f (pid=000005ec)
Direct3D9: (ERROR) :Memory Address: 0033d51c lAllocID=29 dwSize=00001d88, ReturnAddr=00cd478b (pid=000005ec)
Direct3D9: (ERROR) :Memory Address: 0033857c lAllocID=31 dwSize=00000008, ReturnAddr=00cd48bc (pid=000005ec)
Direct3D9: (ERROR) :Memory Address: 00ea0064 lAllocID=33 dwSize=00003500, ReturnAddr=00cd3796 (pid=000005ec)
Direct3D9: (ERROR) :Memory Address: 003358c4 lAllocID=34 dwSize=00000198, ReturnAddr=00cd3796 (pid=000005ec)
Direct3D9: (ERROR) :Memory Address: 003353a4 lAllocID=35 dwSize=00000030, ReturnAddr=00cd3796 (pid=000005ec)
Direct3D9: (ERROR) :Memory Address: 00ea359c lAllocID=36 dwSize=00001020, ReturnAddr=00cd3796 (pid=000005ec)
Direct3D9: (ERROR) :Total Memory Unfreed From Current Process = 54608 bytes
The program '[1516] Basis.exe: Native' has exited with code 0 (0x0).
The program '[1516] Basis.exe: Direct3D HAL (HWVP) Device 1' has exited with code 0 (0x0).
So you are getting this too:
Direct3D9: (ERROR) :Invalid BehaviorFlags parameter. ValidateCreateDevice failed.
Direct3D9: (INFO) :======================= Hal HWVP device selected
Fixed that by removing the line that tries to use the pure device ;).Quote:
Posted by NoteMe
So you are getting this too:
Direct3D9: (ERROR) :Invalid BehaviorFlags parameter. ValidateCreateDevice failed.
Direct3D9: (INFO) :======================= Hal HWVP device selected