Jump to content
The Dark Mod Forums

Horse


Arcturus

Recommended Posts

Watching the Mount & Blade videos, it almost looks like the horse animation stays the same but the horse pitches forward and backward on the center axis to stay roughly level with the ground. It looks great because those nice animations play whatever the angle.

 

Might there be a way to pitch the entire model based on the z-difference between the ground-points at its front and back feet?

What do you see when you turn out the light? I can't tell you but I know that it's mine.

Link to comment
Share on other sites

  • Replies 66
  • Created
  • Last Reply

Top Posters In This Topic

The carts would be bound to their respective horse plus there is a bind orientation spawnarg which might help. Otherwise, the carts are just movers sync'd with a horse. Their wheels would be permanently rotating at the correct speed but carefully scripted, a horse could pull up in sight and some trigger stop the wheel rotation.

 

In the cart I wonder if we could have a sitting AI.

We have buggy which has realistically rotating wheels. We can theoretically make cart that can be pulled or pushed without any scripting.

 

Watching the Mount & Blade videos, it almost looks like the horse animation stays the same but the horse pitches forward and backward on the center axis to stay roughly level with the ground. It looks great because those nice animations play whatever the angle.

Might there be a way to pitch the entire model based on the z-difference between the ground-points at its front and back feet?

I don't know. I don't think existing code supports that.

It's only a model...

Link to comment
Share on other sites

If there isn't, I wonder if we couldn't either code it ourselves or find something in the neighborhood that could be coopted to do the job. It just seemed like a good solution.

 

Looking at some of the things in the code that I found in a quick search (there might be more)...

- In anim.cpp there's a place it sets the origin and alignment of animations for models. But I think that's way too high-level to be tweaking just for the horse, though I wonder if its value can be tweaked just for the horse AI, in its function, when using its values (not sure the mechanics of how it works).

- In ai.cpp, under idAI:idAI, there's actually values for fly_pitch_scale, fly_pitch_max, & fly_pitch. I wonder if we couldn't make the horse technically a flying AI that can pitch (also roll and bob, for the record) according to the ground z-values, but can never actually go any altitude so always stays on the ground. Either we might coopt that code or invent a horse_pitch_scale, horse_pitch_max, & horse_pitch that basically mimics the fly_pitch functions (using its code as a model) tweaked for the horse case.

What do you see when you turn out the light? I can't tell you but I know that it's mine.

Link to comment
Share on other sites

  • 2 weeks later...

Just thinking about this today... If you're going to be adding any more skins to the horse, might I recommend: undead haunt revenant horses! Skinny to the ribs, maybe even an exposed bit of rib or 2, pale gray and tattered cloth and fur, some chains, an exposed fore leg bone?, red eyes, with surreal and mean huffs...

 

I think the vision of four mounted haunts revenants on haunt revenant-horses galloping screaming towards me would be awesomely terrifying! The horsemen of the apocalypse! :o

 

Edit: :unsure:

What do you see when you turn out the light? I can't tell you but I know that it's mine.

Link to comment
Share on other sites

Yeah, why not. It would be nice though to have normal horses working first. :rolleyes:

Edit: I think it would require more than just new skins.

 

 

nightmare.jpg

Black skin with red eyes, mapper binds some flames Glenham style?

 

EDIT: could be also done on a simple black horse with normal eyes. Bind prop red gems (or something) as red eyes. Bind bones sticking out of the body.

Clipper

-The mapper's best friend.

Link to comment
Share on other sites

Yeah, why not. It would be nice though to have normal horses working first.  :rolleyes: Edit: I think it would require more than just new skins.

 

Of course it would have to be a new entity with its own def, barks, behavior, animations, etc. I just thought it wouldn't hurt to try a new skin while we're waiting to figure out the normal horse. But I guess you mean you can't even do that much since it really calls for a completely new model first to give it justice, which is right, I think. Well it was a long-term suggestion for down the road anyway.

What do you see when you turn out the light? I can't tell you but I know that it's mine.

Link to comment
Share on other sites

  • 3 weeks later...
  • 1 month later...
Might there be a way to pitch the entire model based on the z-difference between the ground-points at its front and back feet?

 

That seems like the correct solution to me too, looking at those pictures it is very obvious that the fundamental problem is that the back of the horse is perfectly horizontal when climbing the steps, whereas in reality it should be angled upwards.

Link to comment
Share on other sites

That seems like the correct solution to me too, looking at those pictures it is very obvious that the fundamental problem is that the back of the horse is perfectly horizontal when climbing the steps, whereas in reality it should be angled upwards.

 

It seems like there should be some IK settings for this. Maybe we could look at how they did it with the D3 Pinky demons? Or do those also have this problem?

Link to comment
Share on other sites

I found code for pitching (and yaw & roll) entire models, but it's for flying AI (you see it in AI.cpp for flying AI). Not sure if it could be coopted here or not.

What do you see when you turn out the light? I can't tell you but I know that it's mine.

Link to comment
Share on other sites

I suspect for this you need "full IK", whereas I'm guessing that Doom 3's "walk IK" only goes as far as positioning the feet on the ground, rather than propagating motion up the entire skeletal tree. This works fine for spider-like creatures with long spindly legs, but is probably inadequate for a more rigid horse.

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 )
      · 3 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...