SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    Perl/Mason Guru Flawless_koder's Avatar
    Join Date
    Feb 2002
    Location
    Gatwick, UK
    Posts
    1,206
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Advanced stuff - Direct X

    I am using Direct Animation / Direct X in a scripting environment online ( Jscript ).

    I have a Transform that is applied to a DAGeometry.

    The Transform variable which is applied is:


    var leftRotBvr = m.Until(
    m.IdentityTransform3,
    ev1,
    m.UntilEx(
    _rotLeft,

    ev2.Snapshot(_rotLeft).NotifyScript("notifier1")
    )
    );

    Now - notifier1 returns the same sort of thing:

    function notifier1(edata, cur) {
    newLRot = m.Compose3(
    edata,
    rotLeft
    );
    newBvr = m.Until(
    edata,
    ev1,
    m.UntilEx(
    newLRot ,
    ev2.Snapshot(
    newLRot ).NotifyScript( "notifier1" )
    )
    );
    return newBvr;
    }

    Hence - when ev1 is triggered - the UntilEx fires as the event - and
    _rotLeft is true - ( which applies a rotate3ratedegrees ).
    When ev2 is triggered - the notifier1 function is run and the rotation
    stops.
    I want the rotation to ALSO stop if the object has rotated /to/ a certain
    amount of degrees/radians ( ie if it has rotated to 50 degrees )

    I can find no reference at all to how to work this out.

    Is there anyway of testing the rotation of the object?
    Failing that - would i need to keep track of the rotation constantly using
    localtime ?

    Thanks

    Flawless
    ---=| If you're going to buy a pet - get a Shetland Giraffe |=---

  2. #2
    Perl/Mason Guru Flawless_koder's Avatar
    Join Date
    Feb 2002
    Location
    Gatwick, UK
    Posts
    1,206
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    And just to stab me further in the back:

    Microsoft's latest patch rules out any usage of direct X through the classid.
    I've raised an bug issue with them and I'm trying to stay in the loop to find out what happens.

    Flawless
    ---=| If you're going to buy a pet - get a Shetland Giraffe |=---

  3. #3
    SitePoint Guru bronze trophy blufive's Avatar
    Join Date
    Mar 2002
    Location
    Manchester, UK
    Posts
    853
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Microsoft's latest patch rules out any usage of direct X through the classid. I've raised an bug issue with them and I'm trying to stay in the loop to find out what happens.
    I suspect you'll find that they did it quite deliberately, as what little I know about the guts of win32 says that this "feature" is probably a screaming security hazard. I could be wrong, though.

  4. #4
    Perl/Mason Guru Flawless_koder's Avatar
    Join Date
    Feb 2002
    Location
    Gatwick, UK
    Posts
    1,206
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah - you're wrong.


    It's back up now again.

    Flawless
    ---=| If you're going to buy a pet - get a Shetland Giraffe |=---

  5. #5
    SitePoint Guru bronze trophy blufive's Avatar
    Join Date
    Mar 2002
    Location
    Manchester, UK
    Posts
    853
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    <googles>

    Ah, I see, It's just embedded ActiveX, and thus no more (or less) of a security hazard than any other embedded ActiveX. Thought it was something a bit more tricksy.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •