Search found 91 matches

by Ced666
Wed May 31, 2006 1:39 pm
Forum: Beginners Help
Topic: noob's question
Replies: 13
Views: 524

Use your debugger to see what's really happening, then if you are still stuck, provide all usefull information you got while using the debugger. If you never used a debugger before, I strongly suggest you take some time to learn how to use it; it will make your life much more easier in the future :D .
by Ced666
Wed May 24, 2006 11:17 am
Forum: Beginners Help
Topic: NOOB: Limit to 'x' frames per second for every machine
Replies: 2
Views: 339

Don't limit the frame rate. Instead, calculate the new position of your vehicle depending of the time elapsed since the last frame.
by Ced666
Wed May 03, 2006 6:43 am
Forum: Beginners Help
Topic: re. Finding the mouse coordinates in the 3d world
Replies: 8
Views: 813

What do you want to do exactly ? Select a node when you click on it probably (that seems the most logical to me) ? Then, why don't you simply check when you click with the mouse ? Don't need to calculate this all the time in a loop. where pos is on the command i will need to place the x and y co-ord...
by Ced666
Tue May 02, 2006 2:37 pm
Forum: Beginners Help
Topic: Deleting a SceneNode crashes Program
Replies: 1
Views: 273

Don't do that:

Code: Select all

smgrGlobal->addToDeletionQueue(container->node); 
Just use the remove (or removeAll) function from your node.
by Ced666
Tue May 02, 2006 9:21 am
Forum: Beginners Help
Topic: question about getPosition.
Replies: 1
Views: 274

Use getRotation from ISceneNode.
by Ced666
Tue May 02, 2006 6:45 am
Forum: Beginners Help
Topic: re. Finding the mouse coordinates in the 3d world
Replies: 8
Views: 813

The mouse coordinates cannot be converted simply to a 3D position (because there is one dimension more). Instead, the mouse position can give you a ray that start from the camera position and goes 'inside' your screen. With that ray, you'll have to check for the collisions with other object. Take a ...
by Ced666
Thu Apr 27, 2006 2:48 pm
Forum: Beginners Help
Topic: Draw2DImage- AlphaProblem
Replies: 2
Views: 326

Make this rectangle the size of your texture:

Code: Select all

core::rect< s32 > SourceRect(0,0,ImageWidth, ImageHeight);
Draw2DImage(crosshair, position2d(x, y), SourceRect, 0, SColor(255, 255, 255), true); 
by Ced666
Thu Apr 27, 2006 7:57 am
Forum: Beginners Help
Topic: Move code
Replies: 11
Views: 538

@mmh771: Both are perfectly correct ! This doesn't change anything.
by Ced666
Thu Apr 27, 2006 7:55 am
Forum: Beginners Help
Topic: How to Control the CameraFPS using a regular webcam!
Replies: 4
Views: 549

Don't use a FPS camera. A standard camera will do the trick.
Look at the API documentation for the camera and you will see that there is a SetTarget method which you can use to specify the target viewed by the camera.

And BTW, don't cross-post !!
by Ced666
Wed Apr 26, 2006 2:31 pm
Forum: Beginners Help
Topic: Move code
Replies: 11
Views: 538

Show the code where the errors are and post the exact error messages. BTW: Is it a better way to make a class instead to call a function? Depends. If you want to add a class just for adding a class, then no, it is useless. I think you first need some more experience in object oriented programming to...
by Ced666
Wed Apr 26, 2006 12:59 pm
Forum: Beginners Help
Topic: Real time Loading
Replies: 8
Views: 638

Show the code of both situations where you are calling this function. And check the solution of hybrid too (did you miss it ?).
by Ced666
Wed Apr 26, 2006 11:22 am
Forum: Beginners Help
Topic: Real time Loading
Replies: 8
Views: 638

it loaded but i cann't see that
What do you mean ? How did you check that it was loaded ? And what is the problem ?

Post code also so we can see what you are doing wrong.
by Ced666
Wed Apr 26, 2006 10:09 am
Forum: Beginners Help
Topic: HELP !
Replies: 9
Views: 530

@andrei25ni: what is the problem with using WinMain instead of a main ? Also, changing "return (0);" into "return 0;" won't change anything. And finally, it is perfectly legal to use "createDevice (EDT_SOFTWARE, dimension2d<s32>(640,480), 32, false, false, false,0);" wh...
by Ced666
Wed Apr 26, 2006 9:59 am
Forum: Beginners Help
Topic: HELP !
Replies: 9
Views: 530

In your main, you are declaring a local variable of device: IrrlichtDevice *device = createDevice (EDT_SOFTWARE, dimension2d<s32>(640,480), 32, false, false, false, 0); So, at this point your global variable device is still a NULL pointer. Thus, in your event receiver (outside the scope of main, so ...
by Ced666
Tue Apr 25, 2006 10:07 am
Forum: Advanced Help
Topic: 2D Game Change Weapons
Replies: 5
Views: 590

He meant that you'll need two sprites: one that contains your character without the weapon, and one containing only the weapon. Then you need to blit them separately on the screen (of course, you use a colorkey in order to avoid blitting everything that cannot be blitted).