From: kidchaos en h. <kid...@ho...> - 2007-05-20 12:55:58
|
Hi again, Im going on with the development of my shmup project for Win32/DC under = Tiki, i made great advances about the engine with the help of the = environment: --- Im having a great problem, so if this letter is to large, please read = the last paragraph. Thanks --- First of all, im interested in backup my project under sourceforge = because everyday i fear to lose everything from my computer. Could = someone give some directions to do it, please? Regarding the project, as i said everyday im more impressed with the = whole implementation of the Tiki dev: Everything i have already done in = my engine, is better implemented so my engine is more like an equivalent = layer of the Tiki one, with things like object count references, hid = callbacks, HW timers, threading!! and such... I mixed with the use of = the minixml lib and I hope "everything" could be parametrizable from the = XML trees and files... I have already put an fps counter with a font = texture under OpenGL which works fine (60 fps on Windows and DC!!!)... = So now its time to start with the graph scene (i was doing my own, but i = will use the Tiki one again!!!). By the way, i did another change on the windows callback function: On = the switch(msg) part i added some breaks for the WM_KEY's which were = screwing my HID callback system!! I dont know if anyone else has been = affected with the problem... Ok, then about the graph scene system: After checking the DCBlap = sources and discovered the gs and the Generic Menu class i am developing = my level manager as a subclass of it redefining the ControlperFrame = functions, hope its ok...=20 And now im running with some troubles, the second one its my MAIN = problem right now: - About importing meshes, what can i do to improve speed, on my = project? On the old DirectX project I used an indexed vertex buffer, = can i use something alike under kgl? checking some Nehe tutorials i saw = display lists are supported, are they ok? In the KOS GL headers i saw = about opengl 1.2 arrays? What are they? Could some address me, please? - Finally, Ill explain my MAIN PROBLEM right now, i wont be able to go = on with the project if i cant resolve it.... It's about a camera system: My old project used only ONE camera, based on UVN rotations which = always followed the player, this meant that i never had to use = Yaw/pitch/Roll angle rotations (sadly, i dont know if i can reach again = the person who taugh me about it), but i realized that if i want to = debug the 3D scene of my game i need to develop some cameras (mainly a = FLYING-FPS and a TPH camera, and of course the game camera) and if its = possible, I WOULD LIKE TO DEVELOP THEM UNDER THE UVN system, so i think = it will be faster than with the angle system (before asking why, chech = this article http://www.gamedev.net/reference/articles/article1199.asp) = .. I realized that my knowledge about rotations, the matrix stack and = the math behind OpenGL/DirectX is zero!! I tested the Tiki::Matrix = rotation axis function but everything screwed up when i move the camera, = even the debug text!! =20 Please, every detailed tutorial, code sample or explanation about the = UVN math (matrix, vectors), the Opengl matrix stack, and matrix = conversions to OpenGL or anything about the subject will be welcomed!! Regards, @B^)> ----- Original Message -----=20 From: Sam Steele=20 To: kidchaos en hotmail2=20 Sent: Monday, April 30, 2007 5:34 PM Subject: Re: [cadcdev-tiki] [Tiki-win32] Unable to compile tikisnake I ran into the same problem with the debugger on win32 and tried your = patch, it seems to work pretty well. I'll test it a bit more and = probably apply it later tonight. Thanks, Sam Steele On 4/20/07, kidchaos en hotmail2 <kid...@ho...> wrote: Hi again, The console snake sample now works great!! Thanks! Anyway, i found a small problem that im trying to resolve, my laptop = is a bit old and it only has 700Mb RAM, so when VC triggers a breakpoint = my=20 windows doesnt react well. I have a little experience programming in windows, but i have read that the Windows Message dispatching must = be accurate so it doenst eat all the machine resources.... I have tried = a small=20 change on platgl.cpp on the DoMain function, and i think it works = better now. Here are my changes, tell me what you think, i think it respect = the multithreading in windows better. - Changed: /*while(m_hThread !=3D NULL && GetMessage(&msg, NULL, 0, 0))=20 { TranslateMessage(&msg); DispatchMessage(&msg); }*/ - To: while(m_hThread !=3D NULL) { do { if (GetMessage(&msg, NULL, NULL, NULL)) { TranslateMessage(&msg);=20 DispatchMessage(&msg); } } while (::PeekMessage(&msg, NULL, NULL, NULL, PM_REMOVE)); Sleep(2); } I have tested it and it works fine on breakpoint and exceptions... @B^)> ----- Original Message ----- From: "Sam Steele" <sam...@gm...> To: "General Discussion about the Tiki Toolkit" < cad...@li...> Sent: Friday, April 20, 2007 3:26 AM Subject: Re: [cadcdev-tiki] [Tiki-win32] Unable to compile tikisnake >I checked in a Visual Studio 2005 project file for TikiSnake. The=20 > problem you were encountering was caused by setting the runtime > library to "Multi-threaded DLL" (the default in Visual Studio = 2005). > Changing the runtime library to "Multi-threaded" fixes the linker=20 > problem. > > -Sam > > On Apr 19, 2007, at 9:56 AM, kidchaos en hotmail2 wrote: > >> Hi, >> >> This a message for the devtiki mailing list, (to other people = who=20 >> received >> the same mail: hope you dont mind that i send personally) >> >> Im having troubles on compiling the tikisnake sample. Im working = on a >> windows XP with visual studio express. I downloaded the current=20 >> version of >> tiki from svn, and compiled the tiki library without problem, but >> now trying >> to compile the tikisnake sample im getting the following errors: >> ------ Build started: Project: tikisnake, Configuration: Debug=20 >> Win32 ------ >> >> Compiling... >> >> snake.cpp >> >> Linking... >> >> msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: __thiscall=20 >> std::basic_string<char,struct std::char_traits<char>,class >> std::allocator<char> >::~basic_string<char,struct >> std::char_traits<char>,class std::allocator<char> >(void)"=20 >> (??1?$basic_string@DU?$char_traits@D@std@@V? >> $allocator@D@2@@std@@QAE@XZ) >> already defined in tiki.lib(console.obj) >> >> msvcprtd.lib(MSVCP80D.dll) : error LNK2005: "public: __thiscall=20 >> std::basic_string<char,struct std::char_traits<char>,class >> std::allocator<char> >::basic_string<char,struct >> std::char_traits<char>,class std::allocator<char> >(char const = *)"=20 >> (??0?$basic_string@DU?$char_traits@D@std@@V? >> $allocator@D@2@@std@@QAE@PBD@Z) >> already defined in tiki.lib(console.obj) >> >> LINK : warning LNK4098: defaultlib 'LIBCMTD' conflicts with use = of=20 >> other >> libs; use /NODEFAULTLIB:library >> >> = C:\cygwin\usr\local\dc\kos\tiki\examples\console\TikiSnake\vcproject >> \Debug\tikisnake.exe >> : fatal error LNK1169: one or more multiply defined symbols found = >> >> Build log was saved at >> = "file://c:\cygwin\usr\local\dc\kos\tiki\examples\console\TikiSnake >> \Debug\BuildLog.htm"=20 >> >> tikisnake - 3 error(s), 1 warning(s) >> >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Build: 0 succeeded, 1 failed, 0 = up-to-date, 0 skipped >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> >> Two questions: >>=20 >> 1) srand(Time::gettime()); is there any problem with this = function??? >> >> 2) Searching on the code, i dont understand if the console class = is >> a valid >> drawable object, it is declaring the ctor and the dtor of a = string=20 >> class??? >> >> Any help appreciate, >> >> Regards >> >> @B^)> >> >> >> = ----------------------------------------------------------------------=20 >> --- >> This SF.net email is sponsored by DB2 Express >> Download DB2 Express C - the FREE version of DB2 express and take >> control of your XML. No limits. Just data. Click to get it now.=20 >> http://sourceforge.net/powerbar/db2/ >> _______________________________________________ >> cadcdev-tiki mailing list >> cad...@li... >> https://lists.sourceforge.net/lists/listinfo/cadcdev-tiki > > > = -------------------------------------------------------------------------= =20 > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > cadcdev-tiki mailing list > cad...@li...=20 > https://lists.sourceforge.net/lists/listinfo/cadcdev-tiki > |