Search found 13 matches

by cinek
Fri Aug 13, 2004 12:39 pm
Forum: Beginners Help
Topic: Can't this code working :(
Replies: 3
Views: 361

How about closing parenthesis in this line:

Code: Select all

//Adding some text 
   guienv->addStaticText(L"Hello World - This is a Irrlicht Engine Test", 
         rect<int>(10,10,200,30, true);
by cinek
Thu Aug 12, 2004 8:53 pm
Forum: Beginners Help
Topic: Camera Parent Doesn't Follow Correctly.
Replies: 11
Views: 1558

My game allows only 2D movement, so they are scalars. If they were vectors representing Euler angles, you'd end up with angular speeds on every axis respectively (but Euler angles have some problems with representing 3D orientation, you might consider using matrices or quaternions. Then the basic ru...
by cinek
Thu Aug 12, 2004 10:10 am
Forum: Beginners Help
Topic: Camera Parent Doesn't Follow Correctly.
Replies: 11
Views: 1558

I store position, linear velocity and acceleration and orientation, angular velocity and acceleration in my own class. I set accelerations when player presses buttons, speeds and postion are computed from it (it's very simple). So as you see it's a bit different approach. If you don't want to change...
by cinek
Wed Aug 11, 2004 9:07 pm
Forum: Beginners Help
Topic: Turning particle emitter on and off
Replies: 16
Views: 1703

I'm interested :)

I guess more people are, it would be great if you could put in somewhere on the web.
by cinek
Wed Aug 11, 2004 9:05 pm
Forum: Beginners Help
Topic: Camera Parent Doesn't Follow Correctly.
Replies: 11
Views: 1558

Yes, linear function is enough, all I had to do was adding rotation on X axis based on angular speed: node->setRotation(w*0.4, angle/GRAD_PI2, 0); where w (its omega, heh) is angular speed, 0.4 is just a coefficient, I chose it by trying different values till it looked good, and angle is the orienta...
by cinek
Wed Aug 11, 2004 9:41 am
Forum: Beginners Help
Topic: Turning particle emitter on and off
Replies: 16
Views: 1703

Thanks for answers.

Once I have the base of my test-game working, I'll try to extend Irrlichts or write my own particle system it (or use IrrlichtNX, if their particles are working by then).
by cinek
Tue Aug 10, 2004 8:45 pm
Forum: Beginners Help
Topic: Camera Parent Doesn't Follow Correctly.
Replies: 11
Views: 1558

Heh, good idea, I'll do that too :)

I think one could just make the bank rotation to be a simple function of angular velocity, even linear might be good for start.

I'll post, when I have something that looks good.
by cinek
Tue Aug 10, 2004 8:30 pm
Forum: Open Discussion and Dev Announcements
Topic: Does Irrlicht suit my needs?
Replies: 7
Views: 1059

You could easily add your own LOD, just load all your textures into the game and then change the texture of the mesh according with the distance the camea is from the object. This is not mesh LOD as Electron explained, rather sth like mip mapping, but how about doing the same thing to meshes? I mea...
by cinek
Tue Aug 10, 2004 8:17 pm
Forum: Beginners Help
Topic: Camera Parent Doesn't Follow Correctly.
Replies: 11
Views: 1558

Hehehe, wait till you add a plane with background, it becomes unplayable ;) Or rather don't wait, I've found a solution to this same problem just yesterday. I have to call updateAbsolutePosition() on both the camera and object after changing their positions (I call it for all objects after changing ...
by cinek
Tue Aug 10, 2004 7:01 pm
Forum: Beginners Help
Topic: Turning particle emitter on and off
Replies: 16
Views: 1703

Turning particle emitter on and off

Is it possible? I couldn't find anything that would do this in the API docs (maybe I haven't been looking hard enough?). I want to make a rocket engine "trail", but only when the player is pressing the accelerate button, when he stops pressing it I want the fire to fade out (so deleteing t...
by cinek
Sun Aug 08, 2004 6:04 pm
Forum: Beginners Help
Topic: what's wrong
Replies: 1
Views: 315

Re: what's wrong

This line is wrong: IrrlichtDevice *device = createDevice(video::EDT_OPENGL, core::dimension2d<s32>(800, 600), 16, false); You should specify your event receiver as the 6th argument, like this: IrrlichtDevice *device = createDevice(video::EDT_OPENGL, core::dimension2d<s32>(800, 600), 16, false, flas...
by cinek
Sat Aug 07, 2004 8:38 pm
Forum: Beginners Help
Topic: Acessing Children - A simpler question
Replies: 1
Views: 717

With an iterator

Check API documentation for irr::core::list<T> and irr::core::list<T>::iterator. Basicly it would look like this (I'm assuming you have a list of ISceneNodes, same rule applies to other classes): irr::core::list<ISceneNode>::iterator i; i = MyRootNode->getChildren().begin(); while(i != MyRootNode->g...
by cinek
Sat Aug 07, 2004 4:18 pm
Forum: Beginners Help
Topic: Jerky (ortho)camera movement
Replies: 0
Views: 293

Jerky (ortho)camera movement

I'm making a simple xpilot-like game and I need a top-down orthogonal view that would scale to contain all player objects on the screen. Everything's fine but the camera is "jumping" and when there are more more than one objects on the screen and they get a bit far away they sometimes star...