Different way of ratating the camera

Hi,
considering using the rotate command can give out odd
resultts, I am trying a different way of rotating my camera.
basically I want my camera to rotate just like how a camera rotates
in a 3d application. I took a look at a different appreoach by
looking at a behaviour script that the chromeLib uses. The
chromeLib behaviour I am referring to is called rotating target
camera. Now, from what I can see, its method is controled by the
left and right arrow keys, and its calculation is done by using
triginometry. In addition, the script only causes the camera to
appear like it is rotating in the z direction. So I took its
formulay and I thought I could switch the rotating axis from z to y
so that the camera would rotate on the y axis. In other words,
instead of this....
on exitFrame me
set x = (cos(pVar) * pDistance)
set y = (sin(pVar) * pDistance)
sprite(spriteNum).camera.transform.position = vector(x, y,
pModel.worldPosition.z + pPlunge)
sprite(spriteNum).camera.pointAt(pModel.worldPosition,
vector(0,0,1))
go to the frame
end
I did this....
on exitFrame me
set x = (cos(pVar) * pDistance)
set z = (sin(pVar) * pDistance)
sprite(spriteNum).camera.transform.position = vector(x,
pModel.worldPosition.y, z)
sprite(spriteNum).camera.pointAt(pModel.worldPosition,
vector(0,1,0))
go to the frame
end
however, when I did this, my camera just flew all over the
place. So how could I get this to work so that the camera could
appear like it is rotating off its y axis?

>basically I want my camera to rotate just like how a
camera rotates in a 3d application
can you explain this a little bit more detailed?
regards!

Similar Messages

  • Is there a way to turn the camera on and off remotely?

    Does anyone know of a way to turn the camera on and off remotely? I have a client that wants to mount a camera to the ceiling to photograph large rugs on the floor. We need a way to turn the camera on and off remotely and I am lookin for a solution.
    Thank you.
    Aric Attas
    [email protected]
    www.photonlab.com
    Solved!
    Go to Solution.

    I have at least one Canon remote that I've used with my 7D's. Unfortunately, I don't have it with me, because today's shoot doesn't require it. So I can't give you the model number. (Models come and go anyway.) It has a shutter button that you can press halfway to activate auto-focussing, just like the button on the camera. But you do have to make sure that the camera has an IR sensor. On a Canon DSLR, look for it where the fingers of your right hand would cover it up; I think that's intentional, so that a spurious IR beam won't fire the shutter while you're taking hand-held shots. Also, check that the camera and the remote are compatible, e.g. that they agree on the frequencies of light that are to be used.
    Bob
    Boston, Massachusetts USA

  • Challenge: Different ways to crash the JVM.

    This is a challenge to find different ways to crash the JVM with code written in Java.
    For starters: Mis-use of the Unsafe class.
    Field field = Unsafe.class.getDeclaredField("theUnsafe");
    field.setAccessible(true);
    Unsafe unsafe = (Unsafe) field.get(null);
    unsafe.getObject(null, 0L); // or many variations on methods in this class.

    Although I presume you mean the latest JVM (6u11), I can reproduce a crash with 1.5.0_05 fairly frequently using the SQL tool "squirrel" ( [http://squirrel-sql.sourceforge.net/]) during startup (while the splash screen is visible):
    # An unexpected error has been detected by HotSpot Virtual Machine:
    #  SIGSEGV (0xb) at pc=0xb7a02c41, pid=9019, tid=2651868080
    # Java VM: Java HotSpot(TM) Server VM (1.5.0_05-b05 mixed mode)
    # Problematic frame:
    # V  [libjvm.so+0x39ec41]The crash is not reproducible on 6u10 (haven't tried it with 6u11), so I don't know how relevant this tidbit actually is but would be glad to check into it with a few other JVMs. For what it's worth, the above happens on RH Enterprise Linux (2.6.9 kernel, smt, Xeon CPU).

  • [svn:osmf:] 10124: Add a few variations of HelloWorld, showing the different ways of adding the DisplayObject to the Sprite.

    Revision: 10124
    Author:   [email protected]
    Date:     2009-09-10 10:40:10 -0700 (Thu, 10 Sep 2009)
    Log Message:
    Add a few variations of HelloWorld, showing the different ways of adding the DisplayObject to the Sprite.
    Modified Paths:
        osmf/trunk/apps/samples/framework/HelloWorld/.actionScriptProperties
    Added Paths:
        osmf/trunk/apps/samples/framework/HelloWorld/HelloWorld4.as
        osmf/trunk/apps/samples/framework/HelloWorld/HelloWorld5.as
        osmf/trunk/apps/samples/framework/HelloWorld/HelloWorld6.as

    The connections which you have done are right, Here are some settings which you can set on your computer and check if this solves your problem or not.
    Win XP: Click on the Start button >>> go to RUN>> type in "ncpa.cpl"- hit OK >>Here(Network Connections) right click on the ""Local Area Connection"" icon and select properties-Here click on the "Configure"   jaspal button- Click on the "Advanced" tab- In the "Property" box highlight Link speed and duplex/Connection type/Network or Media type- And in the "Value" box select 10 Mbps half duplex/ 10 base T/10 base half mode and click on OK.
    If still you face the same problem, then i feel it might be the problem with the Switch itself. 

  • Fastest way to activate the camera?

    What is the fastest way to activate the camera on the iPhone 3GS? (rather than pressing the on key; going to camera app;etc).

    As to another place to click, I am in some doubt there. When I updated, it was just one of those things available and I did this in one go (as per previous post). I am not sure why this is not working in your case, but did you try powering down and then turning it back on again?
    As to the point about 3.1.2 and 3.1.3 I so not think that makes a difference.
    Ah, going straight from a locked phone to the camera? I know that one: no. And I regret this as much as you. How do you know you are going to take a spontaneous shot, eh?
    A later note on your settings and iLukeKendall's input: you both have the iPod Controls Off, while mine are ON, but the double click reveals the camera for me. Hmmmm.

  • What are the different ways in accessing the SQL server from NWDS ?

    Hi Experts,
    Can anyone suggest the different ways for accessing the SQL server from NWDS.I also want to know whether any tool is available for accessing SQL server from Webdynpro java application in Netweaver development studio.
    I am currently using JDBC driver for accessing the SQL server from Webdynpro java application in NWDS.
    Regards,
    Krishna Balaji T

    Note - that no internet backup service has been proven to be safe and effective for backing up the iPhoto library - unless you personally have backup uyp an iPhoto library and restored it sucussfuly form one it should not be recommended - a large number of people have lost their photos trying it
    LN

  • Write a SELECT statement in different ways is not the same thing!!!

    Let's take a look
    use AdventureWorks2012
    go
    dbcc freeproccache
    go
    and now select something
    select * from [HumanResources].[vEmployeeDepartmentHistory]
    go
    so, analyzing 'Compiled Plan'
    SELECT usecounts, cacheobjtype, objtype, text
    FROM Sys.dm_exec_cached_plans
    CROSS APPLY sys.dm_exec_sql_text(plan_handle)
    where cacheobjtype = 'Compiled Plan'
    ORDER BY usecounts DESC;
    GO
    and now let's write some SELECT in "fuzzy case"
    dbcc freeproccache
    go
    select * from [HUMANResources].[vEmployeeDepartmentHistory]
    go
    select * from [HumanRESOURCES].[vEmployeeDepartmentHistory]
    go
    select * from [HumanResources].[VEmployeeDepartmentHistory]
    go
    select * from [HumanResources].[vEmployeeDEPARTMENTHistory]
    go
    select * from [HumanResources].[vEmployeeDepartmentHISTORY]
    go
    SELECT * from [HumanResources].[vEmployeeDepartmentHistory]
    go
    select * FROM [HumanResources].[vEmployeeDepartmentHistory]
    go
    and now let's see compiled plans again
    SELECT usecounts, cacheobjtype, objtype, text
    FROM Sys.dm_exec_cached_plans
    CROSS APPLY sys.dm_exec_sql_text(plan_handle)
    where cacheobjtype = 'Compiled Plan'
    ORDER BY usecounts DESC;
    GO
    So, write a SELECT statement in different ways is not the same thing!!!
    Hope it'll be useful
    P.Ceglie

    Yes.  There is little or no query normalization that happens in front of the query plan cache.  It would be a performance tradeoff to parse and normalize the query before matching it to the cached plans.  The benefit of reducing the number
    of plans in the cache probably wouldn't be worth it. 
    David
    David http://blogs.msdn.com/b/dbrowne/

  • CSS Acts in different ways according to the logged in user.

    Hi All,
    I have used CSS within my Master Page i.e. Oslo. I have changed the SharePoint 2013s' default Start.aspx file as the new Sites' home page. I also used this CSS code snippet for creating a web menu because SharePoint's default navigation is rather odd. 
    However the menu within the master page was a success and I created several pages using the master page and each new page contains the CSS custom made web menu without any error.
    But when I logged using a different Farm Admin Account the CSS menu changes to a somewhat else. But when I logged in using the built in Administrator account the menu is displayed as it should be. But when I logged in as a different Farm Admin the menu is
    not showing as it should be. I have tried inserting the CSS directly to the Master Page and from the Style Library. Both ways are Ok with the built-in Administrator. But when I logged in using another Farm admin the use of Style Library was a useless thing
    and the direct code input method is was the only success one. The style library has all the permission for all users.
    The source code is at the below.
    <style type="text/css">
    .ms-navedit-editLinksText{
    display: none;
    /*This script part will remove the default SharePoint Navigation & the Site Name Sections **/
    ms-core-navigation {
    display:none
    body{
    width:absolute
    /* This CSS Snippet will style the Web Menu in the MasterPage. */
    /* CSS Document */
    /* =Reset default browser CSS. Based on work by Eric Meyer: http://meyerweb.com/eric/tools/css/reset/index.html
    html,body, div, span, applet, object, iframe,
    h1, h2, h3, h4, h5, h6, p, blockquote, pre,
    a, abbr, acronym, address, big, cite, code,
    del, dfn, em, font, ins, kbd, q, s, samp,
    small, strike, strong, sub, sup, tt, var,
    dl, dt, dd, ol, ul, li,
    fieldset, form, label, legend,
    table, caption, tbody, tfoot, thead, tr, th, td {
    border: 0;
    font-family: inherit;
    font-size: 100%;
    font-style: inherit;
    font-weight: inherit;
    margin: 0;
    outline: 0;
    padding: 0;
    vertical-align: baseline;
    :focus {/* remember to define focus styles! */
    outline: 0;
    ol, ul {
    list-style: none;
    table {/* tables still need 'cellspacing="0"' in the markup */
    border-collapse: separate;
    border-spacing: 0;
    caption, th, td {
    font-weight: normal;
    text-align: left;
    blockquote:before, blockquote:after,
    q:before, q:after {
    content: "";
    blockquote, q {
    quotes: "" "";
    a img {
    border: 0;
    article, aside, details, figcaption, figure,
    footer, header, hgroup, menu, nav, section {
    display: block;
    .clear {
    clear: both;
    h1 {
    font-size: 18px;
    h2 {
    font-size: 16px;
    /* Lay out design */
    /************** start menu design *************/
    #mainMenu {
    width: relative;
    height: 80px;
    background: url(http://pc/PublishingImages/SitePages/Home/menu-bg.png) repeat-x;
    #main-Menu ul {
    padding-left:10px;
    #main-Menu ul li{
    top: 20px;
    background-color: #4e34ee;
    float: left;
    display: block;
    text-align: center;
    margin-left: 5px;
    -moz-border-radius: 0px;
    -webkit-border-radius: 4px 4px 0px 0px;
    border-radius: 4px 4px 0px 0px;
    /* Tab Content - menucool.com */
    ul.tabs
    padding: 7px 0;
    font-size: 0;
    margin:0;
    list-style-type: none;
    text-align: center; /*set to left, center, or right to align the tabs as desired*/
    ul.tabs li
    display: inline;
    margin: 0;
    margin-right:7px; /*distance between tabs*/
    ul.tabs li a.tab1
    font: normal 15px Calibri;
    text-decoration: none;
    padding: 16px 16px;
    border: 0px solid #CCC;
    border-bottom-color:#B7B7B7;
    color: #000;
    /*background: #F0F0F0 url(http://pc/PublishingImages/SitePages/Home/menu-sep.png) 0 0 repeat-x;*/
    background-color:#0072c6;
    border-radius: 4px 4px 0 0;
    outline:none;
    text-align:center;
    ul.tabs li a.tab2
    font: normal 15px Calibri;
    text-decoration: none;
    padding: 16px 16px;
    border: 0px solid #CCC;
    border-bottom-color:#B7B7B7;
    color: #000;
    /*background: #F0F0F0 url(http://pc/PublishingImages/SitePages/Home/menu-sep.png) 0 0 repeat-x; */
    background-color:#00aa9e;
    border-radius: 6px 6px 0 0;
    outline:none;
    ul.tabs li a.tab3
    font: normal 15px Calibri;
    text-decoration: none;
    padding: 16px 16px;
    border: 0px solid #CCC;
    border-bottom-color:#B7B7B7;
    color: #000;
    /*background: #F0F0F0 url(http://pc/PublishingImages/SitePages/Home/menu-sep.png) 0 0 repeat-x; */
    background-color:#00adc6;
    border-radius: 6px 6px 0 0;
    outline:none;
    ul.tabs li a.tab4
    font: normal 15px Calibri;
    text-decoration: none;
    padding: 16px 16px;
    border: 0px solid #CCC;
    border-bottom-color:#B7B7B7;
    color: #000;
    /*background: #F0F0F0 url(http://pc/PublishingImages/SitePages/Home/menu-sep.png) 0 0 repeat-x; */
    background-color:#00adc6;
    border-radius: 6px 6px 0 0;
    outline:none;
    ul.tabs li a.tab5
    font: normal 15px Calibri;
    text-decoration: none;
    padding: 16px 16px;
    border: 0px solid #CCC;
    border-bottom-color:#B7B7B7;
    color: #000;
    /*background: #F0F0F0 url(http://pc/PublishingImages/SitePages/Home/menu-sep.png) 0 0 repeat-x; */
    background-color:#0072c6;
    border-radius: 4px 4px 0 0;
    outline:none;
    ul.tabs li a.tab6
    font: normal 15px Calibri;
    text-decoration: none;
    padding: 16px 16px;
    border: 0px solid #CCC;
    border-bottom-color:#B7B7B7;
    color: #000;
    /*background: #F0F0F0 url(http://pc/PublishingImages/SitePages/Home/menu-sep.png) 0 0 repeat-x; */
    background-color:#00aa9e;
    border-radius: 6px 6px 0 0;
    outline:none;
    ul.tabs li a.tab7
    font: normal 15px Calibri;
    text-decoration: none;
    padding: 16px 16px;
    border: 0px solid #CCC;
    border-bottom-color:#B7B7B7;
    color: #000;
    /*background: #F0F0F0 url(http://pc/PublishingImages/SitePages/Home/menu-sep.png) 0 0 repeat-x; */
    background-color:#8dc63b;
    border-radius: 6px 6px 0 0;
    outline:none;
    ul.tabs li a.tab8
    font: normal 15px Calibri;
    text-decoration: none;
    padding: 16px 16px;
    border: 0px solid #CCC;
    border-bottom-color:#B7B7B7;
    color: #000;
    /*background: #F0F0F0 url(http://pc/PublishingImages/SitePages/Home/menu-sep.png) 0 0 repeat-x; */
    background-color:#ab23cd;
    border-radius: 6px 6px 0 0;
    outline:none;
    ul.tabs li a.tab9
    font: normal 15px Calibri;
    text-decoration: none;
    padding: 16px 16px;
    border: 0px solid #CCC;
    border-bottom-color:#B7B7B7;
    color: #000;
    /*background: #F0F0F0 url(http://pc/PublishingImages/SitePages/Home/menu-sep.png) 0 0 repeat-x; */
    background-color:#00adc6;
    border-radius: 4px 4px 0 0;
    outline:none;
    ul.tabs li a:visited
    color: #000;
    ul.tabs li a:hover
    border: 1px solid #B7B7B7;
    background:gray 0 -36px repeat-x;
    ul.tabs li.selected a, ul.tabs li.selected a:hover
    top: 0px;
    font-weight:bold;
    border: 1px solid #B7B7B7;
    border-bottom-color: white;
    ul.tabs li.selected a:hover
    text-decoration: none;
    #sub1{ background: #e3d0e6; }
    #sub2{ background: #00adef; }
    #sub3{ background: #8dc63b; }
    #sub4{ background: #8dc63b; }
    /************** end menu design *************/
    </style>
    The web menu is at the below.
    <!------ Web Menu ------>
    <div id="mainMenu">
    <ul class="tabs" data-persist="true">
    <li><a href="http://pc/SitePages/Home.aspx" class="tab1"><b>HOME</b></a></li>
    <li><a href="http://pc/Pages/IT-Help-Desk.aspx" class="tab2"><b>IT HELP DESK</b></a></li>
    <li><a href="http://pc/Pages/Electronic-Forms.aspx" class="tab3"><b>ELECTRONIC FORMS</b></a></li>
    <li><a href="http://pc/Pages/Contacts.aspx" class="tab4"><b>CONTACTS</b></a></li>
    <li><a href="http://pc/Budget/Forms/AllItems.aspx" class="tab5"><b>DOCUMENTS STORAGE</b></a></li>
    <li><a href="http://pc/Pages/Image-Library.aspx" class="tab6"><b>IMAGE LIBRARY</b></a></li>
    </ul>
    </div>
    <!------ End of Web Menu ------>
    I cannot figure the error I am facing. Could someone help me to solve this matter ?
    Thank You,
    Regards,
    Chiranthaka

    I haven't seen this issue before. What I would do is, log in as each user then view the source of the page in the browser (right click the page and click "View Page Source" from the context menu, or use developer tools/firebug in the browser). Compare
    the HTML generated for the menu for each user and see if any other CSS classes get applied. My gut is that another class is being applied for the other users, or the HTML is different in some way.
    Brandon Atkinson
    Blog: http://sharepointbrandon.com

  • Is there a way to take the camera off lock screen with new 4s update? Or make it so you can't see my pictures?

    This is the one thing about the update that I just can't stand. There needs to be a way to fix this problem because I don't want anyone who happens to pick up my phone to be able to see my pictures. Also it's kind of annoying.

    If you set the Require Passcode to Immediately in Settings>General>Passcode Lock>Require Passcode>Immediately the iPhone cannot be accessed even if the camera was opened accidentally and subsequently neither could your photos as a message would appear stating Your iPhone is Locked.

  • Is there a way to download the camera software without Windows XP?

    My temp pc is stuck on the old XP, cannot update it, so when I try to download the camera software, it freezes.
    Is there another way around it, like a wizard?

    checkin wrote:
    My temp pc is stuck on the old XP, cannot update it, so when I try to download the camera software, it freezes.
    Is there another way around it, like a wizard?
    I downloaded Canon's software for years using XP. It's much more likely that the problem is in your browser. If you're using IE, make sure you're at the latest rev the OS will support; and if that doesn't work, try another browser (e.g., Firefox or Chrome).
    Bob
    Boston, Massachusetts USA

  • Different ways to compare the java objects

    Hi,
    I want to compare rather search one object in collection of thousands of objects.
    And now i am using the method which uses the unique id's of objects to compare. still that is too much time consuming operation in java.
    so i want the better way to compare the objects giving me the high performance.

    If you actually tried using a HashMap, and (if necessary) if you correctly implemented certain important methods in your class (this probably wasn't necessary but might have been), and if you used HashMap in a sane way and not an insane way, then you should be getting very fast search times.
    So I conclude that one of the following is true:
    1) you really didn't try using HashMap.
    2) you tried using hashmap, but did so incorrectly (although it's actually pretty simple...)
    3) your searches are pretty fast, and any sluggishness you're seeing is caused by something else.
    4) your code isn't actually all that sluggish, but you assume it must be for some reason.
    Message was edited by:
    paulcw

  • Is there any way to use the camera and stream live via the web?

    I would like to setup my mac book pro to "watch" my dogs while I am gone. I want to be able to login to a website to view the camera. I was wondering if anyone could recommend software to be able to do this? Thanks!

    I don't know the actual mechanics but I know that UStream is a popular streaming site for folks and organizatiuons to broadcast live video.  So how hard could it be?  You would have to investigate there what's involved.
    One thing to keep in mind if you persue live streaming, and that's the bandwidth caps many (is all now?) isp's are imposing.  For example comcrap and at&t have a 250GB limit.  Not ever done streaming myself I wouldn't know if this imposes problems or not on top of any other daily stuff you might be doing, e,g, mail, browsing, downloading, etc.
    FWIW, here's an example of someone streaming their dogs on ustream:
    http://www.ustream.tv/channel/puppy-love---broadcast-live
    And I can't resist, for those that have cable but don't want to pay extra for NASA in HD (which it supplise for free to cable systems), even NASA uses ustream:
    http://www.ustream.tv/nasahdtv

  • A way to use the camera in XP?

    I'm running XP on this MBP and i was wondering if theres a program that lets me use the camera to make videos on XP?

    The apple drivers will make windows see the camera, all you need is a program to record it to video. Theyres a whole bunch of programs for windows that do that. Are you asking if you can use the camera, or use the cam to record video?

  • Different ways to get the last 5 records ordered by date

    I have a query no that returns the tickets ordered by moddt, modification date,
    I was thinking of adding a select on top, to get the last 5 records of that list the select already generates. An other way was to use that select to create a view,
    and get the 5 last records that way. I also though of a possibly impossible cursor with a sequence, but hmm well I consider that not a good solution.
    So I'm trying to find a way, using a select, the topmost select which is not completed yet, to get the last 5 records. Maybe I should just try the rownumber thing again or something likewise.
    Select * from(
    select * from(
    Select ticketid, appliecatiecd, categorieid, substr(titel,&,200)||' ...' "titel", klantproriteitid, interneprioriteitid,
    (select g.voornaam||' '||g.naam
    from gebruiker g
    Where g.gebruikerid = t.gebruikerid
    And t.applicatiecd = NVL(:P0_applicatiecd, :F101_applicatiecd))"aangemaakt door",
    (select s.statusdefoms "status"
    From status s
    Where s.statusid = t.statusid
    And t.applicatiecd = NVL(:P0_applicatiecd, :F101_applicatiecd)) "status",
    Versieid,
    Moddt,
    Row_number() over (order by ticketid desc) rn
    From ticket t
    Where applicatiecd = NVL(:P0_applicatiecd, :F101_applicatiecd) )
    Order by moddt)
    Where --

    Hi Floris,
    You can also use RANK: http://www.dba-oracle.com/oracle_news/oracle_faq/faq_beg_sql_top_n_rows.htm
    Regards Pete

  • I recently updated my iPhone's 3GS software to iOS 5.1...Is there any way to remove the camera button from the lock screen?

    Heeelp?!...

    I did just that, good idea.
    I stated in my feedback message that I feel it disturbing that someone handling my iPhone, but not having the passcode, can take photos with my phone.  Photos of --<sigh>--Lord knows what.  While the phone's usually in my pocket or otherwise close to my person, that's not always the case. 
    Now, I'll grant that it is nice to have the option to allow someone to take a photo with my phone without also giving them access to everything else.  In fact, that's a very nice little tidbit.  I'd just like to have the flexibility to prevent people from taking pics with my phone, should they happen to have it in hand and feel the urge to add to my camera roll even without my approval.  There's real opportunity for mischief in this.

Maybe you are looking for

  • Dynamic Action on DOM object not working

    Thru a dynamic action I am executing PL/SQL Code that creates additional item using APEX_ITEM.CHECKBOX (see code on bottom). Thru another Dynamic action, I am trying to execute additional Java. I have it set to fire like this: Event: Click Type: DOM

  • Still Crazy After all these attempts......Can't remove an item from Trash

    PREVIOUSLY POSTED (TWICE!) I've got a file stuck in the trash that won't go away. The trash will empty but that file never goes away. I can't move the file out of the trash, nor can I rename the file. The file name is a bunch of weird forward slashes

  • Answer to why I couldn't CONTROL a Mac

    My upgrade to ARD 3 provided some insight as to why I could OBSERRVE but NOT CONTROL a particular Mac, which happened to be across two NAT routers -- even after doing port forwarding AND turning off the firewall. The new ARD 3 told me that another in

  • Tune issue

    I recently installed itunes, and successfully synced my ipad; now i am having issues downloading and syncing my ipad.  I receive the following message "invalid address." Need help.

  • Premiere Pro Cropping end of sequence

    When I place a clip on the time line it gets cropped on its right side, if I place another clip then the first clip is fine but the last clip gets cropped on the right. Am I missing something here? And yes if I render it appears in the final render.