Search found 29 matches
- Thu Dec 29, 2005 5:41 pm
- Forum: Advanced Help
- Topic: String conversion and AnimationEndCallBack
- Replies: 11
- Views: 986
- Thu Dec 29, 2005 4:13 pm
- Forum: Advanced Help
- Topic: String conversion and AnimationEndCallBack
- Replies: 11
- Views: 986
String conversion and AnimationEndCallBack
I've got 2 questions. 1. How do I convert a char array into a const wchar_t so I can display it in Irrlicht? I have a char name[256]; 2. How EXACTLY do I use the setAnimationEndCallBack function in IAnimatedMeshSceneNode. I've already declared an IAnimationEndCallBack. I'm not sure what to do with t...
- Thu Dec 29, 2005 1:26 pm
- Forum: Beginners Help
- Topic: Gui images looks ugly. Why?
- Replies: 2
- Views: 318
- Tue Dec 27, 2005 5:49 pm
- Forum: Beginners Help
- Topic: conversion from 2d cord. to 3d and vice versa
- Replies: 4
- Views: 371
- Tue Dec 27, 2005 7:28 am
- Forum: Beginners Help
- Topic: converting char array to irrlicht strings
- Replies: 3
- Views: 223
- Sun Dec 25, 2005 1:12 pm
- Forum: Beginners Help
- Topic: character rotation
- Replies: 5
- Views: 525
I'm not sure I understand your problem. i've understood that by what angle my character will rotate its negative my camera will rotate so as not to disturb the camera. This is the line I don't understand. Rephrase? In general though, I wouldn't set your character as the parent of the camera. I take ...
- Sun Dec 25, 2005 1:05 pm
- Forum: Beginners Help
- Topic: converting char array to irrlicht strings
- Replies: 3
- Views: 223
converting char array to irrlicht strings
For my program I need to send a wchar_t to the server. I am using RakNet, so I've converted my wchar_t to a char array like this: char name[256]; strcpy(name,stringc(gamemgr->playername).c_str()); Now the problem comes when the server receives the packet. How do I convert back from char array to w_c...
- Fri Dec 23, 2005 3:17 pm
- Forum: Beginners Help
- Topic: Loading GUI Images [solved]
- Replies: 0
- Views: 175
Loading GUI Images [solved]
Is it just me or displaying images in Irrlicht turns the image quality really really low? I save my image as a 32 bit bmp file and load it as my main menu splash. The text comes out blurry at the edges. I tried it on more than one machine. I'm not sure what's wrong here; the image itself is sharp as...
- Wed Dec 14, 2005 8:03 pm
- Forum: Advanced Help
- Topic: Changing Gamestates
- Replies: 6
- Views: 631
Changing Gamestates
How exactly do you change game states with Irrlicht (for example, main menu, game itself blahblah)? Do I have to declare new Irrlichtdevices for every state? Or do I just add functions under the same device to switch between states? What about the EventReceiver then, surely it must be able to have d...
- Wed Dec 14, 2005 8:01 pm
- Forum: Beginners Help
- Topic: Event Receiver in class
- Replies: 2
- Views: 252
- Tue Dec 13, 2005 4:20 am
- Forum: Beginners Help
- Topic: Event Receiver in class
- Replies: 2
- Views: 252
Event Receiver in class
I've got an Event Receiver class (CEventReceiver) that I call in my CGame class when I use createDevice. Now I want to add GUI events in the Event Receiver class. Let's say when a button is clicked, I want to display a text message on the screen. What should I do? I'm not sure how to write anything ...
- Thu Oct 13, 2005 4:06 am
- Forum: Beginners Help
- Topic: Set MD2 Animation
- Replies: 8
- Views: 648
JP, I figured it out. The model updates fine now. Go to this Wiki link : http://irrforge.org/index.php/Simple_way_to_get_Mouse%2CKeyboard_Events Copy the class and paste it in your main.cpp. Make sure you include the necessary header files or DWORD won't be recognized. Also, set the functions in the...
- Wed Oct 12, 2005 11:30 am
- Forum: Beginners Help
- Topic: Set MD2 Animation
- Replies: 8
- Views: 648
are51: You're right. There was a pointer stored to a node that I missed. It was an ISceneNode. I've made the necessary changes. There is no problem with that now. The problem is that my logic for implementing moving forward smoothly whilst executing the run animation is flawed. It doesn't work, even...
- Wed Oct 12, 2005 9:16 am
- Forum: Beginners Help
- Topic: Set MD2 Animation
- Replies: 8
- Views: 648
Set MD2 Animation
Hello I'm a new user to Irrlicht. I'm trying out simple movements for a character. I've loaded a model: scene::IAnimatedMeshSceneNode* node = smgr->addAnimatedMeshSceneNode(smgr->getMesh("../../media/faerie.md2")); I did all the rest of the necessary stuff, including an Event Receiver. The...