Questions on the starting point of createFlyCircleAnimator()

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
thomas1234
Posts: 14
Joined: Mon Jan 19, 2009 12:36 pm
Location: Hong Kong

Questions on the starting point of createFlyCircleAnimator()

Post by thomas1234 »

Hello, I am new to Irrlicht and 3D modelling and I am a university student from Hong Kong. :)

I have a question on Irrlicht is that "can we set the starting point and the ending point when using the fucntion createFlyCircleAnimator()? ". In fact, I want to attach the camera to this flying node. But the starting point of the camera is not suitable for me. :(

Can anyone help me a bit? Thanks. :oops:

Here are some of my code:

cam = smgr->addCameraSceneNode(0, core::vector3df(0,80,-100), core::vector3df(0,0,0));

anim =smgr->createFlyCircleAnimator(core::vector3df(0,80,0), 100.0f, 0.0001f,core::vector3df(0.f, 1.f, 0.f));

cam->addAnimator(anim);
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

There's no method to do that at the moment, but Irrlicht is very easy to modify. Features get added when somebody wants to add them... ;)
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
thomas1234
Posts: 14
Joined: Mon Jan 19, 2009 12:36 pm
Location: Hong Kong

Post by thomas1234 »

Thanks for your reply. :D May be I just set the camera point by point to solve this problem.
B@z
Posts: 876
Joined: Thu Jan 31, 2008 5:05 pm
Location: Hungary

Post by B@z »

or you can hack it a little :P
if you check the irrlicht's createFlyCircleAnimator method, you'll see, that the original method needs start time.
if you set it time - something or + something, it will start at the other place
i made 3 stars at the top of my characters head with this method xD
Image
Image
thomas1234
Posts: 14
Joined: Mon Jan 19, 2009 12:36 pm
Location: Hong Kong

Post by thomas1234 »

oops...you mean you change the .h file yourself ? :)
Katsankat
Posts: 178
Joined: Sun Mar 12, 2006 4:15 am
Contact:

Post by Katsankat »

"attach the camera to this flying node" you mean like in tech demo source code?
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

In SVN 2105 on the trunk, createFlyCircleAnimator() now has a startPosition parameter that allows you to specify a start position in multiples of a circle, from 0.0f to 1.0f.

Comment, suggestions, Alyson Hannigan's phone number all welcome.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
thomas1234
Posts: 14
Joined: Mon Jan 19, 2009 12:36 pm
Location: Hong Kong

Post by thomas1234 »

Katsankat wrote:"attach the camera to this flying node" you mean like in tech demo source code?
You are right :) I try to modify them and put into in my application. :lol: (COPYCAT)
In SVN 2105 on the trunk, createFlyCircleAnimator() now has a startPosition parameter that allows you to specify a start position in multiples of a circle, from 0.0f to 1.0f.

Comment, suggestions, Alyson Hannigan's phone number all welcome.
It sounds good. With these improvements, Irrlicht can be more efficient.
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

thomas1234 wrote:
Rogerborg wrote:In SVN 2105 on the trunk, createFlyCircleAnimator() now has a startPosition parameter that allows you to specify a start position in multiples of a circle, from 0.0f to 1.0f.

Comment, suggestions, Alyson Hannigan's phone number all welcome.
It sounds good. With these improvements, Irrlicht can be more efficient.
I don't know about Irrlicht, but if I ever get Alyson Hannigan's phone number, you can forget about seeing any patches from me for the next decade or so.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Post Reply