Math for looking up and down in 3d world

Hello,
I have a float called "heading" which is how much the player has turned (around the y axis) and a float called "verticalLook" which is how much the player has started to turn his head upward towards the sky.
I call
gl.glRotatef(360.0f - heading,0,1.0f,0);//this correctly rotates the user about the y-axis.Then, I call:
gl.glRotatef(verticalLook,(float)(Math.cos(heading*TO_RADIANS)*TO_DEGREES),0,
                 (float)(Math.sin(heading*TO_RADIANS)*TO_DEGREES));This produces weird results. I tried switching the sin and cos and it still didnt work. I know that to vertically look up, it will have to be rotated about a combination of the x and z axis, but I'm trying to figure out the formula.
Thanks

hello Datta,
thanks for you quick reply, these one you sent me are for allowing the end user to actually be able to use the scroll track ball in a mouse, just the same way it works in Excel or Word?
thanks again, i will test them shortly.
JD

Similar Messages

  • Special G/L transactions not defined for bills/exch.and down pmnts ERROR

    Dear Experts,
    I am trying to park document via F-63 - Invoice Parking - General  to park  down payments made to vendor using following details in initial screen for F-63:
    Posting Key_____29
    Account number _1000
    SGL Ind ________A
    after pressing enter key the system prompt error message that is:
    Special G/L transactions not defined for bills/exch.and down pmnts
    Message no. FP030
    Diagnosis
    You have selected a posting key with a special G/L indicator of type 'Bill of exchange', or 'Down payment'. Document parking is not defined for special G/L transactions of the type 'Bill of exchange' or 'Down payment'.
    System Response
    Document parking cannot be carried out.
    Procedure
    Select a different posting key or special G/L indicator. If the posting is a 'One-time posting' to a rent contract, select a different transaction type or post the document directly.
    HOW CAN I PARK DOWN PAYMENT DOCUMENT FOR VENDOR. KINDLY PROVIDE SUITABLE SOLUTION.
    REGARDS

    Dear,
    Your special G/L "A" is set as Down Payment/Down Payment request, this is what cause the error.
    To meet your requirement just go to FBKP select special G/L "A" enter your chart of accounts and go into properties, change
    Special G/L transaction types to Others from Payment/Down payment request.
    Advances can be created as Special G/L transaction types Others
    If parking is utmost required by you then according to me you should create two special G/L for Down Payment. New created should be used for parking and default by SAP you can use with functionality like F-47, F-48, F-54.
    System is stopping you because down payment functionality is provided exhaustively in SAP so you should follow that.
    Please analyze the process exhaustively and implement to smoothen your process.
    Regards,
    Chintan Joshi.

  • Special G/L transactions not defined for bills/exch.and down pmnts

    Dear Sapguru,
      When i am down payment parking through F-65, and giving special gl indictor.
    Error:---Special G/L transactions not defined for bills/exch.and down pmnts
    Message no. FP030
    Diagnosis
    You have selected a posting key with a special G/L indicator of type 'Bill of exchange', or 'Down payment'. Document parking is not defined for special G/L transactions of the type 'Bill of exchange' or 'Down payment'.
    System Response
    Document parking cannot be carried out.
    Procedure
    Select a different posting key or special G/L indicator. If the posting is a 'One-time posting' to a rent contract, select a different transaction type or post the document directly.
    Thanks.
    Dharma.

    Did you define spec. GL through OBXR (customers) or OBYR (vendors)?
    regards

  • Condition type for Retension Money  and Down Payment in construction co.

    Dear Friends,
    In construction co they are using advance payment and retension money from the customer. what condition type I should use for Retension money and for Advance payemnt can I used AZWR (Down Payment condition type).
    Kindly help me
    Regards
    Atul.

    Hi Sridhar,
    For sure, down payment is a balance sheet item, but you can get it as "expense" under value type 12 in CO.
    So in case you have a purchase order, you will get in CO the cost element which is in the purchase order (and in Fi the account for down payment). In case you don't have a purchase order, the down payment will be register in CO under the cost element you enter in OKEP (and in Fi the account for down payment).
    As far as I now, you don't get the down payment on cost center, only on internal oder, WBSelement ...
    But is there a way to not get the down payment at all in CO (including internal order and WBSelement) ?
    Regards.
    Benjamin

  • Need help for drill up and down with sum urgently !!

    Hi everyone,
    I'm now using Discover plus but I've got problem with using drill up and down.
    exp)
    now
    shop
    L supplyname
    L $600
    Jancode1 ---sum $300
    L aaaaa-------$100
    bbbbb-------$200
    Jancode2---sum $300
    aaaaa-------$100
    bbbbb-------$200
    want to do
    shop
    L supplyname
    L $300
    Jancode1 ---sum $300
    L aaaaa-------$100
    bbbbb-------$200
    Jancode2---sum $300
    Laaaaa-------$100
    bbbbb-------$200
    as showing exsmple,
    the sameitem(Jancode) value are same area and sum is separetated as correctly then do drill up, but the reslut of sum is 600 which I don't want the double result like example. I want to make correct result(sum) such as 300 which means not summing double item value as 1item value.
    does anybody know what I should do with it or has any idea for it??
    I really need it know ASAP if it possible to do it or not and also if I can do,
    please tell the how to do it.
    Thank you for reading.

    Usually you can tailor your antennas to the coverage pattern you need. AP placement, antennas, and power level are best determined pre-install by a good, comprehensive site survey.
    It may be possible to change your antennas to higher gain types (i.e., 180 degree patch or sector antennas instead of Omnidirectional rubber ducks).
    Be advised though that changing to higher gain antennas will also change their coverage pattern; you might reach farther in one direction but less in another. Each antenna should have a chart that describes the side profile and overhead profile of the radiation pattern.
    Running in mixed mode (b & g) will reduce your throughput, but it shouldn't affect your range. The brief version is that it takes time to switch modes, and the AP has to notify clients on one protocol that there's activity happening on the other protocol ... it all takes time & bandwidth.
    Both are the same frequencies and have the same basic coverage.
    CCX (Cisco Client Extensions) should not affect your client's range or throughput; they are extensions - if you don't use them, they are pretty much ignored.
    Each vendor has there own "formula" for when to roam to the next AP. Some vendors use Inter Access Point Protocol (IAPP) to communicate between the old AP and the new AP so the handoff happens in a coordinated fashion. Using a single vendor for all of your APs (at least in the same / adjacent neighborhood) increases your chances of a smooth handoff.
    Good Luck
    Scott

  • IPhone 5 battery is very very bad. Used it for 2HR & 30MIN and down to 50%... Anyone have any ideas how to fix it?

    I got my iPhone 5 64GB last Saturday and the battery is a pile of wank!!! Does anyone have any idea what I could do to sort it? I know about brightness and wifi, I do all that! Many thanks.

    Your battery experience is unusual. While I don't use my phone a lot it is on 24/7. The mists I've seen my battery run down is to abut 45% after 10 hours offi the charger.
    Here's how to reset (reboot) your phone. Press and hold the Home and Sleep buttons simultaneously ignoring the red slider until the Apple logo appears. Let go of the buttons and let the device restart.
    If that is what you did I suggest making an appointment at and Apple store for a consultation.

  • Short commnds for page up and down

    Hi,
    very basic question but in a pc keyboard you have the Home button to press and it automatically goes to the top of the page, safari or document, does anyone know this or something similar on the mac keyboard?

    same buttons do the same thing on mac keyboards. on laptop keyboards they may be combined with the arrow buttons and you need to hold the function button to get those actions. so fn+right arrow is the end button and fn+left arrow is the home button. that's how it is on my PB keyboard.

  • Any default control for up-and-down dropbox?

    Hi,all:
    Can anyone tell me if I can use any default control for both up-and-down direction drop down box?
    Thanks,

    You might also consider a simple choicebox too if you don't need all the functionality of the SpinnerX.
    import javafx.application.Application;
    import javafx.collections.FXCollections;
    import javafx.scene.*;
    import javafx.scene.control.ChoiceBox;
    import javafx.scene.effect.ColorAdjust;
    import javafx.scene.image.*;
    import javafx.scene.layout.*;
    import javafx.stage.Stage;
    public class DropBoxExample extends Application {
      public static void main(String[] args) { launch(args); }
      @Override public void start(final Stage primaryStage) {       
        // create some choices.
        ChoiceBox choices = new ChoiceBox(FXCollections.observableArrayList(
          "64 kbps", "128 kbps", "256 kbps", "512 kbps", "1024 kbps"
        choices.getSelectionModel().select("128 kbps");
        // layout the scene.
        StackPane layout = new StackPane();
        layout.setStyle("-fx-background-color: cornsilk; -fx-padding: 10;");
        layout.getChildren().addAll(choices);
        primaryStage.setScene(new Scene(layout, 250, 100));
        primaryStage.show();
        // style the choice arrow.
        Node arrow = choices.lookup(".arrow");
        if (arrow != null && arrow instanceof Pane) {
          arrow.setStyle("-fx-shape: \"\"; -fx-background-color: transparent;");
          ImageView doubleArrow = new ImageView(new Image("http://aux4.iconpedia.net/uploads/923633044528065785.png"));
          ColorAdjust monochrome = new ColorAdjust();
          monochrome.setSaturation(-1); monochrome.setContrast(-0.3); monochrome.setBrightness(-0.3);
          doubleArrow.setEffect(monochrome);
          doubleArrow.setFitHeight(16); doubleArrow.setPreserveRatio(true);
          ((Pane) arrow).getChildren().add(doubleArrow);
    }The code above replaces the default drop down arrow in the choicebox with an image of a double edge arrow pointing up and down, but, if needed, you can style the choicebox how you want using css (and the arrow via an svg shape if preferred - as is done in capian.css extractable from jfxrt.jar in the JavaFX runtime lib folder).

  • Up and Down Arrow Keys Not Working

    I have had the HP Pavilion g6t-1b00 CTO Notebook PC for a year or two now. I've been having a couple of problems with internet connectivity and putting my computer on "sleep".
    However, few days ago, my keyboard randomly started acting weirdly. When I would try to type certain letter/numbers, they would come out differently. 
    Ex. pressing the space bar would show up " ./M" instead
    I tried restarting my computer many times and installed a BiOS update which fixed all of my issues except for my up and down arrow keys. As of now, they have no function; I can't scroll with them and they don't seem to be taking on the role of another key. I have tried using the keys on different programs. Using the touch pad to scroll works but I still can't use the up and down keys.
    Is there anyway to get the up and down arrow keys to work again?
    This question was solved.
    View Solution.

    Hello Larasoft,
    I understand you’re up and down arrow keys are not functioning, is that accurate? I will do all I can to help you with this issue.
    I want you to access the setup menu to test the keys out, see instructions below.
    1.       Shut down the computer.
    2.       Locate the F10 key across the top.
    3.       When you turn the computer back on immediately start tapping the F10 key repeatedly.
    4.       If successful you should be on setup utility screen. What’s different about this is you can only use you arrow keys to navigate.  
    5.       Try working the arrow keys  up and down on different menus and see if they work.
    6.       Once you tested it press F9 to setup defaults and then press F10 to save and exit.
    If I have been helpful or if you’d like to say thanks you can click the white star under my name to give me Kudos.  I really appreciate it.
    Please respond at your earliest convenience with you results.
    Thanks
    Clicking the White Kudos star on the left is a way to say Thanks!
    Clicking the 'Accept as Solution' button is a way to let others know which steps helped solve the problem!

  • Video scale up and down suggestions

    Please help me form some basic coding plan for scaling up and down the video at run time when I
    open a digital scrap book.
    The idea is very simple.. I have a Digital Interactive scrap book which will flip to the page which has the event housed on that page and will show a Thumbnail of the event. In the meantime the Loader will keep loading the movie file and show a progress bar. Once when the loader is done with, I want the Video to scale up to the size of the Stage and then play the video and once the file has reached the end it should scale down the video and go back to the Index page-the home page whioch started this..
    Please help me sir, as I am not good with action script but wit your guidance I will make all efforts.
    Thanks

    You can just tween the width and height of FLVPlayback to the stage width and height and move the position to (0, 0).

  • Trouble with Premiere timeline moving up and down multiple audio tracks.

    I have a project that has multiple audio tracks, aver 40. Only a portion of them are visible even when I use the new side scroll, I don't know the official name but the scroll on the side that Increases or decrease the size of the track so you can see the waveform. Even when I hide the video tracks and the other preview panels I still can't see all my audio tracks. How do I scroll up and down so I can see the tracks that I want to work on. You know, like in every other program I have ever used. 

    I feel like there's a bit of egg on my face. Rereading your message and messing with the horizontal bar I realized for both horizontal and vertical bars I grab in the center and drag left or right, up or down. There's a short cut for scrolling up and down your timeline tracks, hold down ctrl/cmd and then use the scroll wheel on your mouse, and that's what I was doing for my project last night. Ah growing pains of learning a new workspace.

  • I loaded iTunes on a new laptop. I copied and pasted my albums to a 4G stick and down loaded them to the new laptop. Placing them in, Libraries – Music – iTunes and than in Itunes used File – add file to library. So far so good. For what ever reason one o

    I loaded iTunes on a new laptop. I copied and pasted my albums to a 4G stick and down loaded them to the new laptop. Placing them in, Libraries – Music – iTunes and than in Itunes used File – add file to library. So far so good. For what ever reason one of the CDs would not load onto the stick. I got the orginal CD and loaded directly to Itunes. Now when I look in  Libraries – Music – iTunes it’s not there but it is in and plays in iTunes. What should I have done or should I be doing? Thanks.

    It's not a unique situation - happens all the time, smaller hard drives getting filled up.
    It's also easy to fix. I just moved my itunes content to a bigger hard drive.
    First I made a backup of the itunes database file - iTunes Library.itl. Just in case anything went wrong.
    Nothing did go wrong, but I'd have it in case anything DID go wrong. That file holds ratings, playcounts, Date Added, and other metadata.
    Second, in itunes change the preferences > advanced tab to tell itunes to put everything on G:
    Set the itunes folder location to something like G:Media or G:iTunes
    This will affect all FUTURE additions to itunes and not do anything to the existing locations.
    Make sure the checkbox for "Keep itunes organized" is NOT checked. I also left the "Copy files when adding" unchecked.
    Third, to move all the files to G: without itunes losing the paths, run the File > Library > Organize > Consolidate command. This will need to run a while, so be patient as it copies all the files to the new G: location. This does NOT delete the originals. You will have to do that.
    Fourth, make sure everything in itunes is OK and you can play stuff in your library. If you're really cautious you can run a script to check for missing/dead tracks.

  • HT201406 IOS7 installed OK to my iPhone 4S and worked OK for a while but I have somehow managed to completely jam my iPhone 4s. The touch screen won't work except for up and down gestures (some of the time). I can't make or answer calls, I can't even powe

    IOS7 installed OK to my iPhone 4S and worked OK for a while but I have somehow managed to completely jam my iPhone 4s. The touch screen won't work except for up and down gestures (some of the time). I can't make or answer calls, I can't even power if off. I can't access the hardward ID which Apple support seems to require for Chat.
    It might have happened when I was accessing my camera bypassing the lock screen!
    All I know is that the thing is now useless and it looks like I will have to wait for the battery to run down to see if powering it back up afterwards will solve the problem.

    I have since discovered the "hold down home key and power button" together for a few seconds and this seems to have worked .... phew!

  • Looking for a journaling app that looks like and old fashion journal and alowws dictation and editing

    Looking for a journaling app the allows dictation and editing and would look like and old fashion journal book that I can put in my iBook shelf.

    You won't be able to put an app in iBooks. The only things you can put in iBooks are eBooks and PDFs. As far as narrowing down the list of possible apps, what ones have you looked at already when you searched the app store?

  • Desktop appearance problem:  For no apparent reason my Mac running OSX 10.4.11 imposed a mesh-like pattern over the folders on my desktop and also across the top of the screen and down the right-hand side where I have the dock.  How do I remove it?

    For no apparent reason my Mac (2 GHz PowerPC G5) running 10.4.11 has put a mesh-like pattern over the folders on my desktop and also a band of the same pattern across the top of the screen and down the right-hand side over the dock.  (See screen grabs below.)
    It doesn't affect any operations but makes folder names and drop-down menus difficult to read through the pattern.
    I'm not aware of changing any settings so suspect I must have clicked on something without noticing.  How do I get rid of the overlaid pattern, please?

    Information about my computer is as follows:
    Machine Name:          iMac G5
    Machine Model:          PowerMac8,2
    CPU Type:          PowerPC G5  (3.1)
    Number Of CPUs:          1
    CPU Speed:          2 GHz
    L2 Cache (per CPU):          512 KB
    Memory:          1 GB
    Bus Speed:          667 MHz
    Boot ROM Version:          5.2.5f1
    It looks like this at the back:

Maybe you are looking for

  • How do I remove an active phone from my itunes account

    Long story short...One of my kids logged into our iTunes account ON my grandmothers iPhone. We thought it was removed from our account, however, last night my husband was trying to activate his new work iPhone. He didn't complete it. Fast Forward to

  • New setup.exe for Adobe Acrobat 8.0 Pro

    Per http://www.adobe.com/go/kb403246, there's a new setup.exe to let you install "all" updates to AAPro8.0 at initial install time. Does this also include installing the Security Update 1 for 8.1.2, or, does that still have to be done separately? Tha

  • Kernal Panic: iMac 2011: Please help.

    Hi, everyone, A few months ago, a friend's iMac started to crash during random events. Sometimes while on Facebook, sometimes while just surfing the Internet, and sometimes just word processing. I wrote about it in this thread: https://discussions.ap

  • Is tech support kept in the dark?

    I have had occasion to contact tech support several times in the last few months because my broadband connection kept dropping out. Invariably there is a line test and I am told there is no fault and it must be something in my wiring or setup. On one

  • Junk mail weirdness

    I am having some junk mail filter weirdness. When I have filtering enabled, mail randomly grabs a regular, already opened e-mail and throws it into the junk mail box. I turned off junk mail filtering for several weeks because of this problem. I re-en