How to make a rotation of a normalized vector

Hello
I need to align a bottle to the face of a mesh that is chosen by the user
through the modelsUnderLoc Manager

The function gives me #isectNormal in the return list that is a normalized vector

All I want to do is turn my cylinder to align with the normal of the face.

How to convert it?

Kind regards
Trevor

The mind's eye


After placing the cylinder to the position of the intersect, follow these steps to adjust the rotation:

tiltAngle = vector (0,0,1) .anglebetween (surfaceNormal)
tiltVector = surfaceNormal.perpendicularto (vector (0,0,1))
myModel.transform.rotation = vector (0,0,0)
myModel.transform.rotate(myModel.transform.position,tiltVector,-tiltAngle)

If the origin of the cylinder is at its Center, you must make an order to 'translate', to move it along its axis z of half its length, so that it lies on the surface of the mesh instead to halfway included in it.

I hope this helps!

-ben

Tags: Director

Similar Questions

  • My office has been extended in all directions. Everything is bigger. How to make it back to the normal size for all displays on the desktop?

    Everything has been increased in size so everythng is pushed over the edge.  How to get back to normal size then show all the trays etc.  That is to say: the Start button is well below the bottom of the screen.  If I make something I can't find him.

    Everything has been increased in size so everythng is pushed over the edge.  How to get back to normal size then show all the trays etc.  That is to say: the Start button is well below the bottom of the screen.  If I make something I can't find him.

    3 methods:

    1. display board
    http://www.Vistax64.com/tutorials/84291-screen-resolution.html

    2 reset DPI
    http://www.Vistax64.com/tutorials/84233-DPI-scaling.html

    3. do a system restore. Choose a date where you did NOT have this problem.
    http://www.howtogeek.com/HOWTO/Windows-Vista/using-Windows-Vista-system-restore/

  • How to make a rotating 3-d text in Flash cs4?

    Hi, Thunder BoomCat Pow here.

    I am a student in this class of virtual enterprise and am in charge of learning flash and making a commercial foot-target for our firm call: Uncommon Ground.

    I tried to make a text rotate around a sphere in flash (the sphere will be an image of the Earth).

    I want the text is placed in one direction, wrapping around the sphere and appear on the other side, as he went all around.

    Can someone tell me how to do this using Flash?

    Thanks in advance,

    TBCPW

    One employee of the Department media

    Flash cannot make 3d objects.  CS5 can make 2d objects that move in 3d space apparent, but that's the limit of the capabilities of Flash.

    However, there are other programs that can be used to make 3d objects and then animate those objects in flash.

  • Photoshop CS6 Extended video Timeline Animation - how to make the rotation animation

    Hi all

    In the timeline in EXTENDED CS6, you have a video function, where you can animate three things:

    • Position
    • Style
    • Opacity

    What I would like to know, is: How can I animate the rotation of a layer? I want to turn my layer at an angle and animate it. But when I turn, the first frame of the animation is also forward-looking, resulting NO animation between pictures.

    Thank you

    Convert layer to smart object, then you can animate the rotation (and other transformations) of the SO.

  • Hyper links in the emails now trying to open web pages in WORD. How to make it go back to normal view?

    This has changed recently and try to open a web page in WORD. The result if a document sytle page not a web page layout. I don't know where to start.

    Hey deckboy,

    Reading your question, I have found a thread which I think will be very useful for you.
    Look at this thread and try some of these steps. If you have any questions, return to this topic and explain what were your results. Be sure to include all the details that you can when you describe your results.
    Thanks for posting of Microsoft Answers! Good luck with the troubleshooting.
  • I changed a single picture to paint in Windows 7. Now, all my pictures are files of paint. How to make their return to normal JPEG?

    Normally, I use Paint on my photos.  I changed a photo to painting so that I could make a few adjustments.   Now, all my pictures are open as files of the paint.  How to make their return to the normal setting of JPEG file?

    Seems you have to change the program by default JPG/JPEG to everything that you had previously, possibly "Windows Photo Viewer?

    If so, see - http://windows.microsoft.com/en-us/windows/change-default-programs#1TC=windows-7

    Either the "set your default programs or him 'associate a file type with a program" sections. "

  • How to make a recovery disk?

    I want to do system recovery on my laptop again, I lost I have original windows vista Ultimate edition

    Vista recovery media obtain and/or use the Partition Recovery Vista on your computer to the factory settings .

    There is no Vista free download legal available.

    Contact your computer manufacturer and ask them to send a recovery disk/s Vista set.

    Normally, they do this for a cost of $ small.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    In addition, ask them if you have a recovery Partition on your computer/laptop to restore it to factory settings.

    See if a manual provided with the computer or go to the manufacturer's website, email or you can call for information on how to make a recovery.

    Normally, you have to press F10 or F11 at startup to start the recovery process...

    Another way I've seen on some models is press F8 and go to a list of startup options, and launch a recovery of standards of plant with it, by selecting the repair option.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Also ask them if it is possible to do the recovery disk/s for the recovery Partition in case of a system Crash or hard drive failure.

    They will tell you how to do this.

    Every computer manufacturer has their own way of making recovery disk/s.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Or borrow a good Microsoft Vista DVD (not Dell, HP, etc).
    A good Vista DVD contains all versions of Vista.
    The product key determines which version of Vista is installed.

    There are 2 disks of Vista: one for 32-bit operating system, and one for 64-bit operating system.

    If install a cleaning is required with a good DVD of Vista (not HP, Dell recovery disks):

    Go to your Bios/Setup, or the Boot Menu at startup and change the Boot order to make the DVD/CD drive 1st in the boot order, then reboot with the disk in the drive.

    At the startup/power on you should see at the bottom of the screen either F2 or DELETE, go to Setup/Bios or F12 for the Boot Menu

    http://support.Microsoft.com/default.aspx/KB/918884

    MS advice on the conduct of clean install.

    http://www.theeldergeekvista.com/vista_clean_installation.htm

    A tutorial on the use of a clean install

    http://www.winsupersite.com/showcase/winvista_install_03.asp

    Super Guide Windows Vista Installation

    After installation > go to the website of the manufacturer of your computer/notebook > drivers and downloads Section > key in your model number > get latest Vista drivers for it > download/install them.

    Save all data, because it will be lost during a clean installation.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    http://support.Microsoft.com/default.aspx/KB/326246

    'How to replace Microsoft software or hardware, order service packs and upgrades, and replace product manuals'

    See you soon.

    Mick Murphy - Microsoft partner

  • Search bar displays only the icon. How to make it back to normal?

    Search bar displays only the icon. How to make it back to normal?

    Normally, the search bar looks like the photo in this link.

    http://www.SimpleHelp.NET/images/googlesearchicon/img03.jpg

    However, I only have the icon in the face and no space to type the search information. How can this problem be solved?
    Is it because of my Add-ons?

    Try:

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the Add-ons is the cause of the problem (switch to the DEFAULT theme: Tools > Modules > themes).

    • Makes no changes on the start safe mode window.

    See:

  • Everything is HUGE - how to make windows size normal

    original title: HELP! Everything is HUGE!

    OK, so I wanted to go on the computer and I waved the mouse to turn it on. (It was just on sleep). And when he had turned on all the way everything was HUGE! I tried fo trying to figure how do evrything back to the 'normal' size of the last hour. It gives me access. So, my question is, how to make everything back to normal size? Help, please! Thank you for your time.

    OK, so I wanted to go on the computer and I waved the mouse to turn it on. (It was just on sleep). And when he had turned on all the way everything was HUGE! I tried fo trying to figure how do evrything back to the 'normal' size of the last hour. It gives me access. So, my question is, how to make everything back to normal size? Help, please! Thank you for your time.

    Method #1:
     
    Method #2:
    Re-set DPI scale
     
    Method #3:
    Do a system restore. Choose a date where everything was normal:
  • The view from my office is rotated 90 degrees to the right. How can I get it back to normal?

    The view from my office is rotated 90 degrees to the right.  How can I get it back to normal?

    The view from my office is rotated 90 degrees to the right.  How can I get it back to normal?

    ATL + Ctrl and hold, press the up/down, left / right arrow keys to adjusment. I think that your case will be the UP key.
    Or, you can right-click on the free space of the desktop > click on the Graphics Options > click > 90 degrees Rotation

    t-4-2

  • My tx10 automatically rotates pictures 90 degrees after that I'll take them. How to make this stop?

    My tx10 automatically rotates pictures 90 degrees after that I'll take them. How to make this stop?

    The camera automatically rotates the image according to its orientation. Unfortunately, this feature cannot be disabled.

    You can correct orientation by setting the [rotation] option in the menu viewing.

    If my post answered your question, please mark it as "accept as a Solution.

  • How to make an object to rotate when it moves up and down or left and right of the key to the other?

    How to make an object to rotate when it moves up and down or left and right of the key to the other?

    Just animate the rotation property, you animate the position property of the same way.  Very easy.

  • How to make the list of instrumental music

    How to make a list of all my player someone help

    Alan

    iTunes is not a method to determine what tracks have vocals. You can create a normal playlist and put what you want in it.

    TT2

  • Satellite M50 - how to make scratches disappear from the silver surface

    Hey

    so the other week I bought a Toshiba Satellite M50 and I love her!
    I'm looking to snap the case for weeks because I know myself and I was sure that I would eventually ruin the outer shell, but I can't find anywhere.

    So last night I walk to the top of the stairs and my mother screaming something that makes me jump and I was wearing my phone with the charger on top and to prevent it from falling I really crack down fort and one of the pins on the top of the silver surface striped card.
    I'm so gutted!

    So my question is that no one knows what either which can make the scratch disappear or at least fade?

    I was thinking solvent, but don't want to try anything where it makes it worse.
    know that it's kind of a stupid question, but it's really important to me!
    Thank you!

    P.S. I realized that my key U is really steep... any ideas on how I can get this back to normal?

    In my opinion there is not an effective method that you can use to remove or fade those stripes.
    The surface is damaged and, unfortunately, it will still be visible.

    I also think that you should not use dissolving because of the possible chemicals that can damage the surface even more.

    Is it deep enough or just scratches superficially?

  • QuickTime Pro - how to make a type of Brady bunch in video...

    Hi everyone - I'm doing a film type Brady Bunch for my wedding. The basic idea is that my bridal party mime along a song and its display in a mosaic of Brady Bunch effect... I am registered and just really struggled with Quicktime Pro - Ive downloaded the Pro part of it... but I can't work on how to make a grid of movie... any help would be appreciated!

    I'm doing a film type Brady Bunch for my wedding. The basic idea is that my bridal party mime along a song and its display in a mosaic of Brady Bunch effect... I am registered and just really struggled with Quicktime Pro - Ive downloaded the Pro part of it... but I can't work on how to make a grid of movie... any help would be appreciated!

    If I understand correctly what you want to do, the basic strategy is the following...

    (1) create video clips that you want to merge into a single player to create your space video editing (rather than temporal). (I.e., Audio and/or the content of each video clip is more later extracted from its source file merged together as independent data tracks in a single-file container with a maximum limit of 99 tracks.) NOTE: It is usually better to create or pre crop your videos to the format of image that you want to display in your final file. While the poster may change subsequently, chasing elongation may introduce distortion of object in the final poster.

    < image edited by host >

    Here is a collection of files that I used to create a file of example of which, according to me, you try to accomplish.

    (2) once the individual clips have been created, the next step is to extract/copy the data of your main working file. I normally recommend a workflow 'extraction' here to eliminate the possible accidental change in sourcing video clips that may or may not be needed later - especially if you can be prone to make mistakes during the learning process or need to re - edit track content later for one reason or another. In this case, the video tracks of the first 8 files posted above will be merged together as 320 x 180 'windows' in a grid 3 x 3, playing in a display area 960 x 540. The 9th (central area of window grid) will display a "title" image PNG which will be added later with a single audio track. The result will look something like this:

    < image edited by host >

    In my case, the videos are displayed is attached directly to the other and without borders. Show images title, borders, scaling and positioning of the content is all areas in which you can express your individual creativity so the image above is presented just as a small example of what can be done.

    (3) the next step is to open/create your 7 QT main window work (target player) Pro. To make this simple select the 'New player' option under the menu 'File' of QT 7 Player.

    (4) at this point you repeatedly open your video clips source one by one, extract data from a track audio and/or video you like, store their pointers in the temporary memory, select the target drive and then copy references to date of temporary storage track in the new player. Most of these operations, you want to open and use the 7 QT Pro fenΩtre 'PropriΘtΘs' ('Command-J' keyboard shortcut).

    The base this workflow is to open/select the video file source, open the 'Properties' window, select the data track, you need to extract/copy, press the button "Extract" to extract the data from a separate playback window (to avoid accidental loss or modification of the original file), select the player window newly extracted, press the "Command-A" keyboard shortcut to select the entire track (or change the track if necessary before using the shortcut) , press the keyboard shortcut "Control + C" to copy the reference to the memory track, select the target drive window, open the 'properties' if it isn't already open, make sure that the playhead is an insertion point in the timeline panel and press the hotkey 'Command-Option-V' (or select 'Add' option menu change) to copy the track to your target file.

    At this point, you can close any unnecessary player windows always open and repeat the operation until all the data of video clip has been added to your target drive. Your 'Properties' window for the target player should now look like this:

    (5) the next step is to scale and/or get compensation for the display of individual video tracks. This can be done immediately after inserting the video tracks individual or all at the same time. I encoded my files to the resolution and the appearance I wanted to display, I didn't need to scale my files in this example. In any case, go to the widow of 'Properties' of the working file and select the video track, you want to work. Once the track is selected, open the tab "Visual settings" piece of tat in the half lower the window "Properties". Enter values waterproofing if necessary, but try not to change the proportions of the display. Then adjust the values of offset for each track so that the individual display areas do not overlap each other. In my case, it was implemented first video track to an offset "0 x 0. Because my songs were to be displayed in the boxes to display 320 x 180, additional video tracks were offset 320 x 0, 640 x 0, 0 x 180, 640 x 180, 0 x 360, 320 x 360 and 640 x 360 with the offset of Center (320 x 180) reserved for future use by my 'title' PNG image. Video tracks are normally assigned to layers automatically when added to the target file. These layer assignments may be changed if necessary for duplication, but since none of my pieces overlap, I have all my video tracks placed on layer '0 '. (However, this was not something you need to worry at the moment.)

    (6) using the same basic strategy, I opened my PNG image in a window of player QT 7 and used the keyboard shortcut "Command-A" and "control + C" to copy the image into the temporary memory. However, since I want this image image displayed during the entire period of the reading of the final file, I use a different strategy to copy it in to target player. In this case, I select the target player and the keyboard 'Command-A' to select the length of the file. At this point, I can use the menu 'Edition' the option "Add to selection and Scale" (shortcut of keyboard 'Option-shift-command-V') to display the image copied for the duration of the file.

    (7) the last data track, which I have added to my sample file was the audio track. Here once again the strategy of the video track is used to extract everything first and then copy/add data to the target file. This concludes the copy of data workflow and I recommend that you use the "save under...". "Option from the file menu to save your project as a MOV file standalone.

    (8) at this point, you can cut your file if necessary. In my case, all video tracks (as well as the audio track) was of different lengths. In my case, I started reading all the content at the beginning of my file, but you can offset the departure of any track anywhere in your timeline if you want. (Another chance for you to express your individual creativity that can be desired). However, since each of my video track ends at a different point during playback, I found it interesting to cut my file at the point where the audio track ends and before the last video track ends playback. Basically, you can use the 'I' and keyboard shortcuts "O" to define 'in' and 'out' points for your target video if you want. Once these are defined, you can use the Edit option "Trim to selection" menu to physically cut your project file.

    (9) when the project is complete, you can export it to a format of final distribution. In my case, I used the El Capitan Finder 'Convert' possibility of embedding to transcode the project file M4V h.264/AAC high quality to "flatten" all the contents of simple video and audio tracks. The target format was probably "overkill" for my purposes, but provides a good example of what you can do according to the time and effort that you can invest.

    (10) this is the URL to the 'project' and the final output files "" in case you want to review. (Option-click on the link to download copies.)

    < published by host >

Maybe you are looking for

  • Re: Equium L40 - Windows 7 and the wireless switch

    I upgraded my Equium L40 to Windows 7 and now, wireless equipment and F8 function switch switch the WLAN on and outside. It is permanently. Also, even if it is enabled in the Windows 7 power options, close the lid won't be thecomputer to sleep. If I

  • HTC Wildfire Android video S

    Could someone tell me how to make video phone calls HTC Wildfire Android S. I don't see any icon of a camera on the screen. Thank you

  • Trying to save the photos on a CD - R

    When trying to save the images from my computer on the cd - r my computer always tells me that the cd - r is not writeable or is full.  I have not been able to put something on them so I don't know how it is full.  I used the cd - rw before recording

  • Can I use a gallery picture instead of three, and if so, how?

    The images are uploaded to the images. After I close the photos, they seem to transfer/duplicate in the photo library and windows live photo gallery. I do not understand the need for three separate programs. Is it possible to use windows live photos

  • Windows 7 64 bit slowdown and freezing then blue screen

    I have a computer running Windows 7 64 bit. I have not stop or put back on for a few days. The next morning, I found the computer has rebooted, after I login, it restart continuously. Uncheck the box after you restart the car, he showed the blue scre