• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Modified Cyclone / Abuse Cyclone for rotating units

Status
Not open for further replies.
Level 19
Joined
Feb 4, 2009
Messages
1,313
I found out that it is possible to attach random units (not only unit models!) to others by using cyclone:

http://www.hiveworkshop.com/forums/...buse-cyclone-for-rotating-139216/#post1255392

this would make it possible to rotate units in ways which were impossible before (or at least very hard) and I bet a lot of other things too

the problem is:
a modified version of cyclone is required for this to work
and another problem is:
is there a way to modify the speed of the rotating without importing a million of other models?

however

I'd like to request a model with as many different attachment points (sprite first second third etc) which rotates units around themself like shown in the attached drawing

maybe 9 attachment points with 3 different speeds (slow normal and fast) and 3 different kinds of rotating (forward around itself and sideways)

I also attached everything in the file "cyclone" so you don't have to go for it yourself :grin: (if it's not allowed due to copyright etc tell me and I'm gonna remove it immediately)

edit: the unit should stay at its position while spinning
not moving in circles

edit2: the rotation sideways and forward might be hard because the unit should best likely spin around its center of gravity or its focus point
if this is to hard to do just make it rotate around its feet but the other thing would be much more awesome

thanks in advance
+rep and credits for everything helpful
 

Attachments

  • Cyclone.zip
    436.5 KB · Views: 64
  • likethat.JPG
    likethat.JPG
    5.5 KB · Views: 90
Last edited:
Level 19
Joined
Feb 4, 2009
Messages
1,313
*bump* a little to early but this post is important

I figured out that there is a mdx to mdl and reverse converter in the tools section and that mdls can be read and edited by human beings
so I deleted and modified the cyclone until it fit what I wanted as long as I could (trial-and-error :ugly:)

now I've got a 2kb mdl/x file with 2 attachment points
I know how to modify the speed and how to add more attachment points
but I don't know how I can change the rotation from horizontal to vertical
(there are a lot of numbers which seem to be coordinates but trying out which fits best for this kind of rotation would be a pure brute force overkill)
so I hope someone is able to modify it that it fits what I (and I bet tons of other people) will need
there might be other things which are unnecessary and were not deleted by me yet
tell me about these too please (e.g. I don't know which animation parts can be deleted without causing it not to be displayed anymore)

Code:
Version {
    FormatVersion 800,
}
Model "CycloneTarget" {
    NumHelpers 2,
    NumAttachments 2,
    BlendTime 150,
}
Sequences 3 {
    Anim "Birth" {
        Interval { 2233, 3333 },
        NonLooping,
        MaximumExtent { 0, 0, 150 },
    }
    Anim "Stand" {
        Interval { 6867, 10133 },
    }
    Anim "Death" {
        Interval { 13467, 18467 },
        NonLooping,
    }
}
GlobalSequences 2 {
    Duration 320,
    Duration 320,
}
Helper "dummy spin" {
    ObjectId 0,
    Rotation 5 {
        Hermite,
        GlobalSeqId 0,
        0: { 0, 0, 0, 1 },
            InTan { 0, 0, 0, 1 },
            OutTan { 0, 0, 0, 1 },
        80: { 0, 0, 0.707107, 0.707107 },
            InTan { 0, 0, 0.731894, 0.681418 },
            OutTan { 0, 0, 0.731894, 0.681418 },
        160: { 0, 0, -1, 0 },
            InTan { 0, 0, 0.996917, 0.078459 },
            OutTan { 0, 0, 0.996917, 0.078459 },
        240: { 0, 0, 0.707107, -0.707107 },
            InTan { 0, 0, -0.67559, 0.737277 },
            OutTan { 0, 0, -0.67559, 0.737277 },
        320: { 0, 0, 0, -1 },
            InTan { 0, 0, 0, -1 },
            OutTan { 0, 0, 0, -1 },
    }
}
Helper "dummy two spin" {
    ObjectId 1,
    Rotation 5 {
        Hermite,
        GlobalSeqId 1,
        0: { 0, 0, 0, 1 },
            InTan { 0, 0, 0, 1 },
            OutTan { 0, 0, 0, 1 },
        80: { 0, 0, 0.707107, 0.707107 },
            InTan { 0, 0, 0.731894, 0.681418 },
            OutTan { 0, 0, 0.731894, 0.681418 },
        160: { 0, 0, -1, 0 },
            InTan { 0, 0, 0.996917, 0.078459 },
            OutTan { 0, 0, 0.996917, 0.078459 },
        240: { 0, 0, 0.707107, -0.707107 },
            InTan { 0, 0, -0.67559, 0.737277 },
            OutTan { 0, 0, -0.67559, 0.737277 },
        320: { 0, 0, 0, -1 },
            InTan { 0, 0, 0, -1 },
            OutTan { 0, 0, 0, -1 },
    }
}
Attachment "Sprite First Ref" {
    ObjectId 2,
    Parent 0,
    Translation 1 {
        Hermite,
        6867: { 0, 0, 0 },
            InTan { 0, 0, 0 },
            OutTan { 0, 0, 0 },
    }
    AttachmentID 0,
}
Attachment "Sprite Second Ref" {
    ObjectId 3,
    Parent 1,
    AttachmentID 1,
}
PivotPoints 4 {
    { 0, 0, 0 },
    { 0, 0, 0 },
    { 0, 0, 0 },
    { 0, 0, 0 },
}

edit:
@ the one under me
I know but I wrote the reason in the first line of my post and I think it is important enough to update this
edit2:
and because I edited this into this post and didn't make a new one it's even anyway :p
edit3:
nvm I just need to know how rotation works and maybe some other stuff but thats the wrong section for that so I'll move to the Modeling & Animation section
edit4:
ok I still don't know how stuff works but some1 made it for me already
thanks to all readers
 

Attachments

  • cyclone.mdl
    1.9 KB · Views: 83
  • cyclone.mdx
    2.4 KB · Views: 74
  • Cyclone.w3x
    17.1 KB · Views: 76
Last edited:
Status
Not open for further replies.
Top