Search found 31 matches

by Gatekeeper
Fri Aug 18, 2006 1:10 am
Forum: Beginners Help
Topic: IGUIStaticText
Replies: 2
Views: 272

Why not read the data in as a char* and then convert it to a stringw? Then you can use that to get a wchar.

Example:

Code: Select all

char buf[100];

blah blah blah

stringw text = buf;
IGUIStaticText statictext = env->addStaticText(text.c_str(), ...)

by Gatekeeper
Fri Aug 18, 2006 1:05 am
Forum: Beginners Help
Topic: Camera Question
Replies: 3
Views: 411

Why not just write an EventReceiver that does all of that stuff for you on a normal, standard camera?
by Gatekeeper
Fri Aug 18, 2006 1:00 am
Forum: Beginners Help
Topic: Removing elements from the GUI [Solved]
Replies: 4
Views: 226

I'm not using Jirr, just regular Irrlicht 1.0. I've found that you can't remove the root node, you have to remove it's children. If remove doesn't seem to work, why don't you just set the visible on the window to false? For the new level, just update what's contained in the window (I'm guessing it's...
by Gatekeeper
Tue Aug 15, 2006 12:50 am
Forum: Beginners Help
Topic: Muzzle flash positioning problem
Replies: 2
Views: 227

Try using updateAbsolutePosition() on your scene nodes before you set them visible. I can't guarantee this will help, but I had problems sort of similar to that and it fixed the problem straight away.
by Gatekeeper
Sun Aug 13, 2006 4:25 am
Forum: Beginners Help
Topic: RTS game help - selecting units
Replies: 4
Views: 396

I've done something similar, although it was easier for me because I only have a few selectable "things". Give each unit a unique ID. When you make a scene node, pass the units ID as the scene node ID. Then when the user selects a unit, you can find out what node they are selecting (using ...
by Gatekeeper
Mon Aug 07, 2006 9:41 pm
Forum: Beginners Help
Topic: Node appears for an instant
Replies: 3
Views: 450

Node appears for an instant

Hey, I've got a little graphical glitch in my game, I'm not sure why or how. It's not making it unplayable, it's just annoying me. Basically, I have a big scene node that is an arrow, and I hover this above players to show they are selected. When the game loads I load this arrow, set its visibility ...
by Gatekeeper
Mon Jul 31, 2006 4:04 am
Forum: Beginners Help
Topic: A few animation questions
Replies: 1
Views: 252

Cal3d does blended animations. Klasker wrote a scene node for it. Each animation is stored in a seperate file, and if you select the bones you want in the animation before exporting them you can then blend two completely seperate animations together. I'm planning on using this (but haven't gotten qu...
by Gatekeeper
Mon Jul 31, 2006 3:58 am
Forum: Beginners Help
Topic: Changing Colour of a static mesh
Replies: 3
Views: 246

I did something similar in a very easy way... I made a texture that was a 32x32 png file that had an alpha channel in it (i.e. blue and 50% transparent). Then, when the mouse was over the node, I simply added this texture as the 2nd texture to the node. When the mouse was over a new node, I just set...
by Gatekeeper
Thu Jul 27, 2006 9:22 pm
Forum: Advanced Help
Topic: Set the movement speed of the camera
Replies: 4
Views: 517

There's a few posts that people have made about how to move scene nodes independent of frame rate - the same would apply to a camera. The basic idea is this: If you want to get from A to B in 10 seconds, have a piece of code that each render loop calculates how long it has been since you were at poi...
by Gatekeeper
Thu Jul 27, 2006 1:38 am
Forum: Advanced Help
Topic: Attaching a gun to a hand in Cal3d?
Replies: 1
Views: 371

Attaching a gun to a hand in Cal3d?

Hey guys, Does anyone know how would I go about attaching a gun (well, basically any scene node) to a specific bone in Klasker's Cal3d scene node? I know I need to make the gun node a child of the parent node, but how do I get the node of just the hand bone so I can make it the parent? You can get t...
by Gatekeeper
Wed Jul 05, 2006 2:38 am
Forum: Beginners Help
Topic: animations in different files
Replies: 2
Views: 215

The Cal3d format stores animations in seperate files. You could use it to implement that.

Irrlicht doesn't support Cal3d, but Klasker (I think that's his handle) wrote one already.
by Gatekeeper
Wed Jul 05, 2006 2:35 am
Forum: Bug reports
Topic: ITimer returning incorrect value
Replies: 3
Views: 410

I don't use a dual core processor or a dual CPU machine... I use an AMD 64 3200+, running on 32bit WindowsXP.
by Gatekeeper
Sun Jul 02, 2006 3:11 am
Forum: Bug reports
Topic: ITimer returning incorrect value
Replies: 3
Views: 410

ITimer returning incorrect value

Hi, I found this bug last night while I was mucking around. To me it definitely seems like a bug. Somebody correct me if I'm wrong. Basically, I found that ITimer->getRealTime() sometimes returns a slighltly incorrect value. Here was what I was doing: u32 starttime = Timer->getRealTime(); //blah bla...
by Gatekeeper
Sat Jul 01, 2006 1:53 am
Forum: Beginners Help
Topic: Weird graphical anomalies with nodes
Replies: 3
Views: 810

Yeah, I assumed that's why the cube nodes didn't show gaps between them. I changed the spacing of the tiles (they were 200 units wide, so I made the placement loop place them at every 195 units) and that fixed it. I wasn't satisfied with this answer though, and so I loaded the mesh. Sure enough, it ...
by Gatekeeper
Fri Jun 30, 2006 11:11 pm
Forum: Beginners Help
Topic: Weird graphical anomalies with nodes
Replies: 3
Views: 810

Weird graphical anomalies with nodes

Hi there, The other day in another topic people were talking about using a tile based map. Now, what I had suggested is using a heap of cube shaped nodes and putting them next to each other, which is what I was doing for my tile based map (which, by the way, is only every going to be 20 x 25 tiles -...