Search found 14 matches

by ericaus
Wed Oct 28, 2009 10:47 am
Forum: Beginners Help
Topic: wasd movement depending on camera
Replies: 4
Views: 476

ericaus better for search on this forum, google not help in this case. Also for do this you need know basic geometry and in accordance with this set position for yours models. it`s standart in game movement: //fragment of my code //fragment from my code #include <math.h> // for sin/cos #define M_PI...
by ericaus
Wed Oct 28, 2009 4:26 am
Forum: Beginners Help
Topic: wasd movement depending on camera
Replies: 4
Views: 476

wasd movement depending on camera

Hi, I recently started learning movement with WASD. As of now I learned how to make a mesh move where W & S would move along the X axis, and A & D would move along the Z axis. I also learned how to make it so the mesh would rotate with A & D and W & S moves the mesh where ever it's f...
by ericaus
Fri Oct 09, 2009 12:05 am
Forum: Beginners Help
Topic: EIDT_CONSOLE
Replies: 15
Views: 703

I have been researching it, and this is what i got: irr::SIrrlichtCreationParameters* param; param.Bits = 16; param.DeviceType = EIDT_CONSOLE; param.DriverType = EDT_OPENGL; param.Fullscreen = false; param.Stencilbuffer = false; param.Vsync = false; device = createDeviceEx(param); These are the err...
by ericaus
Wed Oct 07, 2009 6:52 am
Forum: Beginners Help
Topic: (solved) reading an xml from a zip
Replies: 2
Views: 400

Did you add the archive to the filesystem with the "addZipFileArchive" method? If so check the parameters, I got some headache from that. yeah, I placed addZipFileArchive before calling IrrXMLReader* xml although the xml doesn't want to load from the archive file. Strangely I can get othe...
by ericaus
Wed Oct 07, 2009 4:41 am
Forum: Beginners Help
Topic: (solved) reading an xml from a zip
Replies: 2
Views: 400

(solved) reading an xml from a zip

Hello, I'm working on a little game project and I created a function that gets a text string from an xml. stringw gameMain::getString(int id) { // Note: This function must be called after initializing // IrrlichtDevice *g_device or else an // 'access violation' error will occur. stringw text; g_devi...
by ericaus
Sat Oct 03, 2009 12:13 pm
Forum: Beginners Help
Topic: disallowing multiple IrrlichtDevice's being opened
Replies: 13
Views: 669

:) The mutex solution works perfectly. After a bit of research, I added: HANDLE handle = CreateMutex(NULL, false, "demo"); if (GetLastError() == ERROR_ALREADY_EXISTS) { MessageBox(0, "Application is already running", "duplicate", MB_ICONEXCLAMATION | MB_OK); return 0; }...
by ericaus
Sat Oct 03, 2009 4:47 am
Forum: Beginners Help
Topic: disallowing multiple IrrlichtDevice's being opened
Replies: 13
Views: 669

Just wondering - is there any reason why you want to prevent that? Oh, its just so that once I become professionalized in using Irrlicht, I could attempt creating MORPG's and disallow users from opening more than 1 application and playing on multiple accounts. :D Then you better use a mutex (in you...
by ericaus
Sat Oct 03, 2009 4:13 am
Forum: Beginners Help
Topic: disallowing multiple IrrlichtDevice's being opened
Replies: 13
Views: 669

Re: disallowing multiple IrrlichtDevice's being opened

Hello, just wondering. How do I stop more then 1 IrrlichtDevice from being opened? Easy. Just don't create multiple devices. that way would be easy but not so great. I now done some testing with the source code and added: HWnd = FindWindow(ClassName, NULL); // I'll change NULL to a window name that...
by ericaus
Sat Oct 03, 2009 3:20 am
Forum: Beginners Help
Topic: disallowing multiple IrrlichtDevice's being opened
Replies: 13
Views: 669

disallowing multiple IrrlichtDevice's being opened

Hello, just wondering. How do I stop more then 1 IrrlichtDevice from being opened?
by ericaus
Thu Sep 24, 2009 4:51 am
Forum: Beginners Help
Topic: How to hide/show buttons on a GUIWindow using loadGUI.
Replies: 2
Views: 248

Awesome it works. Thank you for the help. :D
by ericaus
Thu Sep 24, 2009 1:49 am
Forum: Beginners Help
Topic: How to hide/show buttons on a GUIWindow using loadGUI.
Replies: 2
Views: 248

How to hide/show buttons on a GUIWindow using loadGUI.

Hello, just wondering how do I hide or show the minimize, maximize and close buttons on a GUI window that is inside an xml that was created with GUIEditor? On a test project I've tried doing something like... ........ IGUIEnvironment* env = device->getGUIEnvironment(); env->loadGUI("LoginGUI.xm...
by ericaus
Thu Sep 24, 2009 1:38 am
Forum: Beginners Help
Topic: customizing application close
Replies: 7
Views: 901

You could also just use postEventFromUser() and eat the message right there. Something like this... case WM_CLOSE: // you'd need to add additional minor changes to IEventReceiver.h event.EventType = irr::EET_WINDOW_EVENT; event.WindowEvent.EventType = irr::EWE_APPLICATION_CLOSE; dev = getDeviceFrom...
by ericaus
Sun Sep 20, 2009 3:02 am
Forum: Beginners Help
Topic: customizing application close
Replies: 7
Views: 901

cool it works :D I placed that into the WndProc in CIrrDeviceWin32.cpp, and commented out the WM_DESTROY case. Thanks :D Edit:: Awesome, I just found out theres some dev = getDeviceFromHWnd(hWnd); inside some of the other switch cases. I now tried doing something like, case WM_CLOSE: { dev = getDevi...
by ericaus
Sat Sep 19, 2009 11:11 am
Forum: Beginners Help
Topic: customizing application close
Replies: 7
Views: 901

customizing application close

hello, I recently started using Irrlicht a couple of days ago, with C++ and just wondering how do I go about making it so when Alt+F4 or the X button is pressed on the application window, a message box is created by addMessageBox with a yes & no button, and if yes is pressed the program closes, ...