How to rotate a model w3d to the Director?

im kinda a noob of the Director please bare with me I have a w3d model and I would like to import it to the Director and given 4 arrows to rotate the object horizontally and vertically

What lingo code should I use for objects can someone explain this to me

Hi Somal,

I have a few 3D Director on my site that can help you get started. One below move a character:

http://www.deansdirectortutorials.com/3D/environment/CharacterMove.htm

I defined the model of the character using the name property of the variable pCharacter.

on beginSprite me
-launch the properties and the 3D world
p3Dmember = sprite (me.spriteNum) .member
p3Dmember.resetWorld)

pCharacter = p3Dmember.model ("character")
end

So we the w3d member cast is p3Dmember and the model 'character' in this world is pCharacter.

Later, I bind some key variables such as pLeftArrow, pRightArrow. If you press the left arrow key, then the character is shot 5 degrees around the z-axis as follows
If pLeftArrow then pCharacter.rotate (0,0,5)

You can rotate a model around x, y, z axii in the same way as in the example.

Hope that helps.

Tags: Director

Similar Questions

  • How to write good model to replace the string after a static string?

    Select regexp_replace ("Do replace not CONSTANT" VAR_123 "needs to be replaced", "CONSTANT" [A-Z0-9] ',' CONSTANT "REPLACE") twice;

    The output is:
    Does not replace CONSTANT 'REPLACEAR_123' SHOULD be replaced

    Output available is:
    Does not replace CONSTANT 'REPLACE' SHOULD be replaced


    What is the right model to solve my problem?

    Assistance is needed.


    Concerning

    possible alternatives

    /* replace everthing in between "" */
    select regexp_replace('Do not replace CONSTANT "VAR_123" should be replaced '
                        , '"([A-Z0-9_]*)"' ,'"REPLACE"')
    from dual;
    
    Do not replace CONSTANT "REPLACE" should be replaced 
    
    /* replace UPPER letters, Numbers and Underscore after keyword CONSTANT an in between "" */
    select regexp_replace('Do not replace CONSTANT "VAR_123" should be replaced '
                        , '(CONSTANT) "([A-Z0-9_]*)"' ,'\1 "REPLACE"')
    from dual;
    
    Do not replace CONSTANT "REPLACE" should be replaced 
    
    /* replace alphanumerica values including underscore after keyword CONSTANT an in between "" */
    
    select regexp_replace('Do not replace CONSTANT "VAR_123" should be replaced '
                        , '(CONSTANT) "([[:alnum:]_]*)"' ,'\1 "REPLACE"')
    from dual;
    

    One of the problems is that did ' t take you into account how the underscore character '_' is recognized.

  • [AIR] How to make a model window as the window of the file open/save

    Hi, all ~

    I want to create a window when he opens the main window of the application is disabled (including the app menu) and always in the front of the main window, but not in front of all other applications. Just like the window he browseForOpen/browseForSave.

    How to get there? Thank you ~ ~

    HM, Yes this is a problem. Normally (without Flex) you would in this way:

    var opts:NativeWindowInitOptions = new NativeWindowInitOptions();
    opts.owner = stage.nativeWindow;
    opts.type = NativeWindowType.LIGHTWEIGHT;
    opts.systemChrome = NativeWindowSystemChrome.NONE;
    
    var win:NativeWindow = new NativeWindow(opts);
    // add content to win.stage
    win.activate();
    

    You might be able to subclass and override s:Window to include an owner option.

    -Aaron

  • How to rotate an object around an arbitrary axis in 3D in 3D space?

    I want to be able to rotate a 3D shape drawn in AE (or imported work of converted to a form) on one of its edges. I think that it is easier to explain with animation then here is a simple example of file and the film forms two triangle turning in the 3D space, one after the other.

    The first rotation is easy because I can move to the anchor of the object to align with the left end of the triangle which is also parallel to the y-axis, then just turn 180 ° on the axis y over a period of 9 frame.

    Second rotation is necessary on an edge that is not parallel to the axis X, Y or Z. So that by turn 180 ° with the x axis and 60º through the z over a period of 9 frame, the effect of the rotation isn't the edge desired flipping the eye reached in the first animated film. In order to do this, I need to be a sort of hierarchy of the parent object where I can turn the triangle.

    I feel that I arbitrarily turn the model of triangle (for example, the vector A) aligned on one axis X, Y or Z and then animate the transition turn over time around one of these axes and turn then any return by A' be ion the correct location for the rest of the objects. As how to rotate a matrix it translates the object to be located about origin, to turn it and translate then return to the initial position a rotation about the origin of the object is not the origin of the global space. Don't know how to do this in AE.

    axis of proper rotation for the first triangle:

    Screenshot 2016-05-25 13.42.33.png

    double shafts for second necessary triangle due to the fixed orientation of the local object space (autonomy seems wrong):
    Screenshot 2016-05-25 13.37.33.png

    Here is a simple configuration that I hacked together in a few minutes:

    http://www.Mylenium.de/_temp/Technique_Triangle_Fold_00.zip

    It is not really more than meticulously dealing with NULL values and other things to the order of rotation of the control. Of course, this can become complicated after some time...

    Mylenium

  • How to rotate a group of objects in 3d photo

    There are examples on how to rotate an object independently as the solar system.  However, I am having a challenge that I created one side of the rubik's cube that has several small cubes in ti and want to rotate just a row of small cubes on the face. Does anyone know how to rotate several objects around a unique turning point in a 3D picture control? See the photo below.

    http://www.Google.com/imgres?num=10&hl=en&BIW=1131&BiH=475&TBM=isch&tbnid=h8yi5Gx0qZzhwM: & imgrefurl =...

    Thanks Matt.  This is a great example of how to rotate an object unique in several ways.  I appreciate your response, as it reminds me more.

    My challenge is to be able to turn several cubes all at the same time, but as a face, not all of the same angle.  So, I guess I have to take a point in the axis to rotate the object around and then have ach one turn at a different angle in order to keep the flat face.

    I don't know how to rotate a cube around a point that is disabled in the cube in a scene. This is a JPEG of my challenge.  I want to turn each plate of cubes of a user control.

  • How to rotate a .mpeg

    How can I turn a .mpeg

    Have you tried Movie Maker?

    Movie Maker-
    How to rotate a video taken from the Angle easily - XP - Vista
    http://www.TipsandTricks-HQ.com/how-to-rotate-a-video-taken-at-an-angle-easily-527

  • How to rotate gradient Stroke?

    Flash CS6, how to rotate gradient stroke?

    The same way that you would like to rotate a fill gradient, use the gradient transform tool.

  • How to rotate a video to the right

    After you import the video it was visualized on the left, I am unable to run.

    After you import the video it was visualized on the left, I am unable to run.

    =========================================
    The info might be useful:

    Several options to rotate a video clip...

    (1) you can use the free VLC Media Player to rotate
    the video for a single viewing.

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    VLC Media Player (32-bit Version)
    http://www.filehippo.com/download_vlc_32/
    (works on XP, Vista, 7, 8)
    (the name of the file to download is: vlc - 2.0.6 - win32.exe)

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    VLC Media Player (64-bit Version)
    http://www.filehippo.com/download_vlc_64/
    (works on XP, Vista, 7, 8)
    (the name of the file to download is: vlc - 2.0.6 - win64.exe)

    Open a video in VLC Media Player and break it... then go to...
    Tools / effects and filters / video effects tab / geometry tab.
    Select the check box turn / slide the circle / close / play.

    (2) if the video is compatible with Movie Maker it
    has a 90 ° rotation effect. Once you have the file turned...
    Save it as a movie in .wmv format.

    (3) Freemake Video Converter can turn a video clip
    Then you can record the clip in the same format or convert
    it to a different format. :

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    Freemake Free Video Converter (freeware)
    http://www.Freemake.com/free_video_converter/
    (Windows XP / Vista / 7 / 8)
    (* Read * all * the installation screens... it)
    may be a few items you want to unmark *)

    (You can ignore the giant green button 'Install' on)
    the main screen... it should disappear when you
    Import your video files)

    Freemake - how to rotate Video free
    http://www.Freemake.com/how_to/how_to_rotate_video

    (4) free return and rotate

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    How to use Free video Flip and Rotate
    http://www.DVDVideoSoft.com/guides/free-video-flip-and-rotate.htm
    (XP SP3, Vista, 7, 8, and .net Framework 2 SP2)
    (* You can uncheck the options to install the)
    DVDVideoSoft Toolbar and iTunes plug-ins *)

  • video of window Media Player that has been saved on the side how to rotate video

    How to rotate a video that was recorded on the side

    Hello

    ·          What operating system is installed on the computer?

    There is no way to rotate the video in Windows Media Player, but the video can be edited in Windows Movie Maker.  Movie Maker has an option to rotate the video.

    You can turn video clips in Windows Movie Maker by following these steps:

    a. import the video clip in Windows Movie Maker.

    b. drag the imported video clip and drop it on the timeline.

    c. on the Tools menu, click Video Effects.

    d. to rotate the clip to the right, drag the effect video rotation 90 and drop it on the movie in the timeline.

    -or-

    e. to rotate the video clip on the left do drag the video effect rotate 270 and drop it on the movie in the timeline.

    f. on the file menu, click on the video file and follow the instructions of the wizard movie recording.

    http://Windows.Microsoft.com/en-us/Windows-Vista/importing-files-into-Windows-Movie-Maker-frequently-asked-questions

    If you are using Windows 7, you need to use Windows Live movie maker.

    http://Windows.Microsoft.com/en-us/Windows7/products/features/Movie-Maker

  • How to rotate my office of 90 degrees to the right so I can read without turning my head to the side?

    Original title: guidance office

    How to rotate my office of 90 degrees to the right so I can read without turning my head to the side?

    Thank you very much

    Very often caused by cats or other pets stray free!

    Hold down the Alt and Ctrl key and try the up/down/left/right arrows to change the rotation of the screen. Sometimes this has no effect, but I hope that you will be lucky, or it can become a little involved because it depends on your display driver software. Somewhere in your driver software display, accessible from the Control Panel/display/settings/advanced, there should be a screen rotation option. Unfortunately, each pilot is likely to be unique in the way that you pick this option and, unless I had the same driver, I couldn't give you anything more than general advice already given.

    Tricky

  • I have an acerdesktop model am3910 - e3122.hat a windows 7 premiume.i House haveto install windows xp for a program but I can't not.__please you please help me how to install windows xp I have the two windows .thanks

    I have an acerdesktop model am3910 - e3122.hat a windows 7 premiume.i House haveto install windows xp for some programs, but I can't.
    Please please help me how to install windows xp I have the two windows .thanks

    If your computer is running Windows 7 Home Premium, purchase and install a Windows Anytime Upgrade Windows 7 Professional or ultimate edition, then download and install the FREE Windows XP Mode. Carey Frisch

  • somehow my screen turned completely sideways, how to rotate the screen back to normal?

    somehow my screen turned completely sideways, how to rotate the screen back to normal?

    Use the Ctrl key or the Alt key with the arrow keys to rotate your screen to its normal position. You can also right-click an empty space on your desktop and in the context menu that appears look for the rotation of the screen, orientation, landscape, or something similar.

    Kind regards

  • How to rotate the image in movie maker a few degrees to get it exactly horizontal

    If my camera was slightly off level during recording, how I rotate the image a few degrees in Movie Maker to get this level

    I found a copy of 1.9.2.

    Excellent

    Wayne

  • accidentally rested my elbow on the ancaused page of windows keyboard to rotate a quarter turn on the screen of the monitor/how turn this back?

    accidentally my arm has rested on the keyboard and caused the windows page rotate a quarter turn to the left on the screen, now I have to tilt my head to read. How do I turn it back?

    Press CTRL + ALT + left arrow or CTRL + ALT + right arrow. Boulder computer Maven
    Most Microsoft Valuable Professional

  • How to rotate a video in windows media player, IE the landscape to portrait mode.

    a video of presentation of 'portrait', want to rotate the video of the landscape to display vertically. using windows media player or any other program under vista

    a video of presentation of 'portrait', want to rotate the video of the landscape to display vertically. using windows media player or any other program under vista

    =========================================
    Windows Media Player cannot shoot a video...

    If your video is compatible with Windows Movie Maker...
    Open the video clip in Windows Movie Maker, drag it to the
    Timeline... and go to the... Video effects / rotate.

    Drag the correct effect (rotation 90) and drop it on the timeline.

    Once the file is gone... you will need to save it under a different name...
    see the following article on the edition:

    Windows Vista-
    Publish a movie in
    Windows Movie Maker
    http://Windows.Microsoft.com/en-us/Windows-Vista/publish-a-movie-in-Windows-Movie-Maker

    More information:

    Scroll down to: how to rotate
    video I recorded with
    my digital camera in the drive?
    http://www.Microsoft.com/windows/windowsmedia/KnowledgeCenter/mediaadvice/0075.mspx#EPD

    Volunteer - MS - MVP - Digital Media Experience J - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.

Maybe you are looking for