Search found 91 matches

by Ced666
Fri Apr 07, 2006 12:02 pm
Forum: Beginners Help
Topic: Adding a lifebar above a scenenode
Replies: 17
Views: 764

you know the x and y coordinates on the screen, of each bar, right? Nope. What I know is the position of the node and I can deduce a 3D point just above the node. This point can be used as the center of the rectangle but it is still a 3D point and not a coordinate on the screen. I think you are mix...
by Ced666
Fri Apr 07, 2006 11:29 am
Forum: Beginners Help
Topic: Adding a lifebar above a scenenode
Replies: 17
Views: 764

@Aukecomps: sorry, but I still don't get you... (maybe my english is too bad). so you know the proportion of the object (in x y z difference to the camera), Yes, I know the proportions: it is for example (just an example) 10 on 1 for the Width/Height ratio. But it has nothing to do with 3D coordinat...
by Ced666
Fri Apr 07, 2006 9:08 am
Forum: Beginners Help
Topic: Triangle Selector
Replies: 8
Views: 275

Yes, move down of course :) . I agree, that was not very clear :P
by Ced666
Fri Apr 07, 2006 7:59 am
Forum: Beginners Help
Topic: IAnimationEndCallBack::OnAnimationEnd
Replies: 6
Views: 797

It is not working this way. What you need to do is inherit a class from IAnimationEndCallBack. Then, in your class, you need to implement the function OnAnimationEnd. This function will be called when your animation is finished. Then, you need to 'register' your callback class with the scene node in...
by Ced666
Fri Apr 07, 2006 6:38 am
Forum: Beginners Help
Topic: Triangle Selector
Replies: 8
Views: 275

Yes, that's true. After you have registered your seletor with the scene node it will exist at least as long as this scene node. By issuing the drop you just ensure that the selector will exist than long. So its quite ok to still use the pointer for the next definition. Yes that's true but it is alwa...
by Ced666
Fri Apr 07, 2006 6:30 am
Forum: Beginners Help
Topic: some basic question!
Replies: 4
Views: 183

getAbsolutePosition returns the absolute position of the node, which is the position relative to reference (in every system, there is a reference :wink: ). The reference is the point 0,0,0 of the scene. getPosition returns the position of the node relative to its parent. So here, the reference is th...
by Ced666
Thu Apr 06, 2006 7:47 pm
Forum: Beginners Help
Topic: Adding a lifebar above a scenenode
Replies: 17
Views: 764

The problem with the lifebar is that it is like a billboard: it is a flat rectangle that always llok at the camera. So, knowing the position of where to put it is not the problem. The problem is because I need to draw myself the bar (it depends of the life of the unit) so it can't be a billboard (or...
by Ced666
Thu Apr 06, 2006 7:34 pm
Forum: Beginners Help
Topic: Adding a lifebar above a scenenode
Replies: 17
Views: 764

:? I really don't understand what you wrote...


just give every bar the same distance to the camera
This is not what I want because they need to be just above the scenenode (the unit) which can be anywhere in the scene.
by Ced666
Thu Apr 06, 2006 7:23 pm
Forum: Beginners Help
Topic: Creating Classes and functions
Replies: 10
Views: 591

but is it too less to be able to program something difficult? Are you 'fluent' with the concepts of OOP (oriented-object programming), things like polymorphism, design patterns,... ? I believe that all these things are required whenever you want to do something more elaborate than a pong (and even ...
by Ced666
Thu Apr 06, 2006 7:06 pm
Forum: Beginners Help
Topic: Creating Classes and functions
Replies: 10
Views: 591

It's because you are calling a function of a class directly. You first need to declare an instance of the class and work with that. RPG_calls MyClass; MyClass.RPG_go("Test"); And by the way, what are you trying to do here ? I strongly suggest you read some books about programation because ...
by Ced666
Thu Apr 06, 2006 6:54 pm
Forum: Beginners Help
Topic: Adding a lifebar above a scenenode
Replies: 17
Views: 764

Adding a lifebar above a scenenode

Hello ! I am making a strategy game and I would like to add a lifebar just above my units. I think an option could be to use a billboard but I have no idea if it's possible to draw things on it (because of course the lifebar will depend of the life left of the unit :wink: ). Drawing 2D shapes is not...
by Ced666
Thu Apr 06, 2006 5:26 pm
Forum: Beginners Help
Topic: Basic Error
Replies: 4
Views: 140

I think it is due to a wrong version of the dll. Are you sure the dll you are using correspond to the lib files to which your project has been linked ?
by Ced666
Thu Apr 06, 2006 5:25 pm
Forum: Beginners Help
Topic: Which compiler?
Replies: 21
Views: 654

But don't expect too much Honnestly, I don't care :) . It's not for me, it's up to you to decide which compiler you prefer. My intentions are not to 'convert' you to Microsoft Visual C++ at all :wink: But a lot of people don't want to use this compiler for the reason that "microsoft sucks"...
by Ced666
Thu Apr 06, 2006 3:02 pm
Forum: Beginners Help
Topic: Which compiler?
Replies: 21
Views: 654

Did you compile in release mode ? There is a huge difference between the speeds in debug and release mode.
Also, printing numbers is maybe not something that can be compared but you can try some calculations (in the loop, instead of printing, you make a simple operation, like adding two numbers).
by Ced666
Thu Apr 06, 2006 2:36 pm
Forum: Beginners Help
Topic: Which compiler?
Replies: 21
Views: 654

No, I was totally right. Man. 'never seen such a slow compiler. maybe java is even faster! even with optimisation for speed, it is the slowest i've tried so far What are you talking about ? What is slow ? The compilation ? Compilation is slower due to the fact that it embeds a manifest file in the ...