Jump to content
The Dark Mod Forums

Tweak of grandfather clock 'anim'


SneaksieDave

Recommended Posts

I don't know...I may be misremembering, but I thought I noticed that the hand start position changed if I added the rotation line, which would suggest it isn't the uvmap. If you like I can just rotate each hand 90 degrees and see what happens.

Link to comment
Share on other sites

Hm. I'm not exactly sure how it works, but my assumption is that as long as in the modeler, the UV map is set up such that the arms on the modified textures (I haven't checked these) point straight up, we should be good to start tweaking the equations. Unless that's not what you mean. I dunno. We just need to calibrate to 12:00 and then we can get it working much easier.

Link to comment
Share on other sites

Well, you can test this very easily...just make a square brush in a map and put the decal texture on it. Then see if it starts at 12 oclock. If it doesn't, then the rotation value is somehow affecting the start angle. If it does, then there's obviously a uv problem with the clock and I'll fix it.

Link to comment
Share on other sites

Yep, progress. Both hands point to exactly 6 now. So either the UV needs 180 deg rotation, or the images (probably easiest?), or we use a hacky offset in the rotation instruction.

 

One thing I'm not sure is a problem or not (it didn't seem to be, which is confusing): it looks like the alpha wasn't rotated:

post-58-1240268520_thumb.jpg

Link to comment
Share on other sites

I imagine the texture adjustment probably throws off any existing gauge definition(s).

 

I don't think it will...the hands were already pointing at 11'oclock, so I didn't have to move them much.

Link to comment
Share on other sites

  • 1 year later...

old thread, but the first post mentions "I made a tweak to the old pendulum movement to try to make it more like a real one ... which move in a much smaller arc and slower".

 

Did this only affect the grandfather clock object, or was this an effect on func_pendulums?

 

I'm trying to work with a large func_pendulum and adjust it's speed, but there doesn't seem to be any way to do that. the "speed" property is more a matter of swinging degrees and not actually speed at all.

 

Plus, I can't seem to get any reaction out of adjusting the "phase" property either, am I doing something wrong?

shadowdark50.gif keep50.gif
Link to comment
Share on other sites

... I finally found some answers from another older thread

 

jdude, on Aug 24 2008, 07:24 AM, said:

I think this pendulum function needs some fixing up. The angle parameter isn't listed in the list of it's parameters and it probably should be for convenience sake. Also speed adjusts how far the distance is from the left sway to the right sway, not the actual speed of the pendulum. I am unsure yet what the speed parameter is for this function.

 

greebo said:

The frequency of a mathematical pendulum depends only on the length of the "rope" and on gravity. That's why the "freq" spawnarg is in there, use this to make it faster.

 

The "speed" spawnarg controls how far the pendulum is swinging from one end to the other end. It should probably be called "operating angles" or something, but combine the angles with the frequency and you get a certain speed as result.

 

--------------------

 

I first played around with the "freq" setting and found that with my current "speed", a "freq" of .05 nearly matched it. Then I was able to double both "speed" and "freq" and in effect move the pendulum twice as fast but at the same distance and angles as before. Works great!

shadowdark50.gif keep50.gif
Link to comment
Share on other sites

Still wondering about that "Phase" setting though, doesn't seem to affect anything

 

 

EDIT - messed with more, found that using number far outside 0.0-1.0 made a difference, such as -20 or -6 (the positive numbers like 4 or 12 just caused a delay for me but no starting angle change)

shadowdark50.gif keep50.gif
Link to comment
Share on other sites

Still wondering about that "Phase" setting though, doesn't seem to affect anything

 

It should affect the "start" of the movement. E.g. if you have 10 entities moving in a cycle of 1 second, all would move perfectly in sync. With the "phase" you can make all of them start at different times, so they are not in sync. (Not sure in what unit it is, probably in seconds or milliseconds).

"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man." -- George Bernard Shaw (1856 - 1950)

 

"Remember: If the game lets you do it, it's not cheating." -- Xarax

Link to comment
Share on other sites

crosspost!

 

Yes, I see how it works now. The positive numbers appear to be seconds of delay, because I actually timed it with a stopwatch! The negative numbers might be something like seconds, but actually start the pendulum at that point in the swing in progress right from the map start, instead of just making a delay

shadowdark50.gif keep50.gif
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recent Status Updates

    • nbohr1more

      The FAQ wiki is almost a proper FAQ now. Probably need to spin-off a bunch of the "remedies" for playing older TDM versions into their own article.
      · 1 reply
    • nbohr1more

      Was checking out old translation packs and decided to fire up TDM 1.07. Rightful Property with sub-20 FPS areas yay! ( same areas run at 180FPS with cranked eye candy on 2.12 )
      · 2 replies
    • taffernicus

      i am so euphoric to see new FMs keep coming out and I am keen to try it out in my leisure time, then suddenly my PC is spouting a couple of S.M.A.R.T errors...
      tbf i cannot afford myself to miss my network emulator image file&progress, important ebooks, hyper-v checkpoint & hyper-v export and the precious thief & TDM gamesaves. Don't fall yourself into & lay your hands on crappy SSD
       
      · 7 replies
    • OrbWeaver

      Does anyone actually use the Normalise button in the Surface inspector? Even after looking at the code I'm not quite sure what it's for.
      · 7 replies
    • Ansome

      Turns out my 15th anniversary mission idea has already been done once or twice before! I've been beaten to the punch once again, but I suppose that's to be expected when there's over 170 FMs out there, eh? I'm not complaining though, I love learning new tricks and taking inspiration from past FMs. Best of luck on your own fan missions!
      · 4 replies
×
×
  • Create New...