Search found 29 matches

by AshmenGlue
Thu Dec 29, 2005 5:41 pm
Forum: Advanced Help
Topic: String conversion and AnimationEndCallBack
Replies: 11
Views: 986

Here's what I did: char name[256]; char* playernametemp; const wchar_t* playername; playernametemp = name; playername = std::wstring(playernametemp).c_str(); When I compile I have an error that says "left of c_str() must have class/struct/union type" and right below it is a "type cast...
by AshmenGlue
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...
by AshmenGlue
Thu Dec 29, 2005 1:26 pm
Forum: Beginners Help
Topic: Gui images looks ugly. Why?
Replies: 2
Views: 318

You should search the forums more carefully. I posted a thread exactly on this topic not long ago. If you're using DirectX or OpenGL as your renderer your image size has to be something to the power of 2.

For example:

64 x 32
128 x128
512x1024
by AshmenGlue
Tue Dec 27, 2005 5:49 pm
Forum: Beginners Help
Topic: conversion from 2d cord. to 3d and vice versa
Replies: 4
Views: 371

I don't think you can do that(2D to 3D). Why would you want to do anyway. If you're trying select something on the screen there are tutorials for that. I'm not sure where though.
by AshmenGlue
Tue Dec 27, 2005 7:28 am
Forum: Beginners Help
Topic: converting char array to irrlicht strings
Replies: 3
Views: 223

Thanks your suggestion compiled fine but I am getting the converted string as some nonsense combination of numbers.

Now I think it's the way I'm sending the char array. I'v posted in the RakNet forums for help. Thanks for the help here pfo.


VVVVV That's me sorry. Forgot to log in.
by AshmenGlue
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 ...
by AshmenGlue
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...
by AshmenGlue
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...
by AshmenGlue
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...
by AshmenGlue
Wed Dec 14, 2005 8:01 pm
Forum: Beginners Help
Topic: Event Receiver in class
Replies: 2
Views: 252

The CGame class is written in another file. I've got a solution from a third-party so I'm going to try that. Thanks for helping though.
by AshmenGlue
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 ...
by AshmenGlue
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...
by AshmenGlue
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...
by AshmenGlue
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...