Freelancer Community Network
Reminder: Internet Explorer 6 or below are NOT supported.
HomeHome
ForumForum
WikiWiki
DownloadsDownloads
ForgeForge
Multiplayer Connection Tutorial
Collapse/Expand Donations
Monthly costs: -50€
Income (ads): +25€
Donations (last month): +40€

Current balance: -50€
(last updated 2013/06)

Please make a donation if you want to help keeping The-Starport online:

Thanks!
Collapse/Expand Random Image
Collapse/Expand Poll
Would you be interested in Star Citizen modding?
Yes. 79% (233)
No, not interested in SC mods/modding. 7% (21)
No, not interested in SC in general. 13% (38)
Total Votes: 292
3 Comments
Collapse/Expand Login
Username:

Password:

Remember me



Lost Password?

Register now!
Collapse/Expand Chat
Collapse/Expand Twitter
Collapse/Expand Who's Online
16 user(s) are online (10 user(s) are browsing Forum)

Members: 1
Guests: 15

Skotty., more...
Collapse/Expand Links
Collapse/Expand Advertisement
There are currently 134 users playing Freelancer on 87 servers.
June. 19, 2013

Browsing this Thread:   1 Anonymous Users



 Bottom   Previous Topic   Next Topic  Register To Post



ALE Question
Just can't stay away
Joined:
2008/5/28 21:00
From Muncie, Indiana, United States
Group:
Registered Users
Senior Members
Posts: 249
Offline
Okay, I want to do something with an ALE, but I don't know how, or even if it's possible.

What I want to do is define the position of an emitter, and have that position alter with time. Unfortunately, there is little documentation on ALE files, and what little there is is not very insightful. To those ALE gurus, any ideas?

Posted on: 2012/2/4 3:18
Report Top
Re: ALE Question
Starport Admin
Joined:
2009/2/21 21:42
Group:
Webmasters
Registered Users
Posts: 3020
Offline
The Node_Transform property is what you want. Specifically, the three first items in it control XYZ position (the two Headers and the first Entry).

In order to animate these, however, you need to delve a little deeper. The basic pattern is Header, HFlag, HTail or Entry, EFlag, ETail. You'll want to add SHeader and SFlag or SEntry and SFlag after the STail/ETail line. SHFlag/SFlag is just zero, never seen a use for anything else. SHeader/SEntry contains the interesting stuff in the form of a repeating pattern <time>, <position>, <ease in>, <ease out>. If you want the animation to repeat (be sure to make it loop properly!) set the HTail/ETail to 16, otherwise 1 will do.

This is an example from the Discovery jumpdrive effect I created, it's a fairly intricate example but should give you a rough idea of what's happening. The emitter is doing corkscrews around the Z axis.

Code:

Node_Transform = {
Flag = 4
Header = 0.0000000000000000, 0.0000000000000000
HFlag = 4
HTail = 16
SHeader = 0, 600, 0, -424.26, 0.5, 424.26, -424.26, -600, 1, 0, -600, -424.26, 1.5, -424.26, -424.26, 0, 2, -600, 0, 424.26, 2.5, -424.26, 424.26, 600, 3, 0, 600, 424.26, 3.5, 424.26, 424.26, 0
SHFlag = 0
Header = 0.0000000000000000, 0.0000000000000000
HFlag = 4
HTail = 16
SHeader = 0, 0, -600, 424.26, 0.5, -424.26, -424.26, 0, 1, -600, 0, -424.26, 1.5, -424.26, 424.26, -600, 2, 0, 600, -424.26, 2.5, 424.26, 424.26, 0, 3, 600, 0, 424.26, 3.5, 424.26, -424.26, 600
SHFlag = 0
Entry = 0.0000000000000000, 0.0000000000000000
EFlag = 4
EType = 1
ETail = 16
SEntry = 0, 600, 0, 0, 2, -600, 0, 0, 4, 600, 0, 0
SFlag = 0
Entry = 0.0000000000000000, 0.0000000000000000
EFlag = 4
EType = 1
ETail = 0
Entry = 0.0000000000000000, 0.0000000000000000
EFlag = 4
EType = 1
ETail = 0
Entry = 0.0000000000000000, 0.0000000000000000
EFlag = 4
EType = 1
ETail = 0
Entry = 0.0000000000000000, 0.5000000000000000
EFlag = 4
EType = 1
ETail = 0
Entry = 0.0000000000000000, 0.5000000000000000
EFlag = 4
EType = 1
ETail = 0
Entry = 0.0000000000000000, 100000000.0000000000000000
EFlag = 4
EType = 1
ETail = 0
}


Hope this helps!

Posted on: 2012/2/4 3:42
"Cynicism is not realistic and tough. It's unrealistic and kind of cowardly because it means you don't have to try."
-Peggy Noonan
Report Top
Re: ALE Question
Just can't stay away
Joined:
2008/5/28 21:00
From Muncie, Indiana, United States
Group:
Registered Users
Senior Members
Posts: 249
Offline
Excellent! This is exactly what I was looking for.

I have a question, however:

Code:
SHeader = 0, 600, 0, -424.26


Is this format:

<time> <x> <y> <z>

or some other format? If it is, is y the vertical direction, as always? What are x and z? I only need two of the directions (I don't need the direction of motion), so that's y and either x or z, but which?

*edit*

Hang on, I think I got it. This thread is very helpful.

However, as a question, what's the difference between <ease in> and <ease out>, what do they do, and what sort of values should they have?

Posted on: 2012/2/4 22:37

Edited by mknote on 2012/2/5 0:33:26
Edited by mknote on 2012/2/5 0:50:56
Report Top
Re: ALE Question
Starport Admin
Joined:
2009/2/21 21:42
Group:
Webmasters
Registered Users
Posts: 3020
Offline
It's a little hard to explain, but as far as I can tell they work exactly like animation easing in 3ds Max if you know what I'm talking about. They're essentially giving the rate (be it meters per second or degrees per second) of movement at the keyframe you have defined. Ease in defines how fast it should be coming in, while ease out defines how fast it should be going out.

The thing to note is that if you define no ease in/ease out (ie leave them at zero), the animation will actually slow down to a standstill at each keyframe. In order to have smooth motion, you need to calculate rates. This is why all of them have rates in the effect I've posted.

Posted on: 2012/2/5 2:36
"Cynicism is not realistic and tough. It's unrealistic and kind of cowardly because it means you don't have to try."
-Peggy Noonan
Report Top
Re: ALE Question
Just can't stay away
Joined:
2008/5/28 21:00
From Muncie, Indiana, United States
Group:
Registered Users
Senior Members
Posts: 249
Offline
I'm too poor to have experience with 3ds Max. How do I calculate them? Not that it matters too much, it looks pretty smooth to me, but I like to be thorough.

Posted on: 2012/2/5 3:47
Report Top
Re: ALE Question
Starport Admin
Joined:
2009/2/21 21:42
Group:
Webmasters
Registered Users
Posts: 3020
Offline
Uh, as I said, it's a rate, so it's just whatever speed you want it to go at that that keyframe?

Posted on: 2012/2/5 4:36
"Cynicism is not realistic and tough. It's unrealistic and kind of cowardly because it means you don't have to try."
-Peggy Noonan
Report Top
Re: ALE Question
Home away from home
Joined:
2008/2/10 22:00
Group:
Registered Users
FLServer Admins
Senior Members
Posts: 1267
Offline
Ease in and out is the same thing as when driving a car, acceleration (ease in) and deceleration (ease out).

Posted on: 2012/4/27 21:00
Galaxy Empire
Youtube Videos
Facebook
Report Top
Re: ALE Question
Just can't stay away
Joined:
2010/6/13 10:58
From France
Group:
Registered Users
Posts: 292
Offline
Interesting topic about ale reapetition... So I've a question too. Is it possible to have an effect that reapet only 2 or 3 time. Just to know if it is possible to have longer timed laser.

Posted on: 2012/4/28 11:00

Edited by Freestalker.fr on 2012/4/28 11:12:28
Report Top