CAN'T SET POSITION OF A MODEL RIGHT

hi
let's say that I load a model into my java progrem, and I want to place it in a (x,y,z) position , so that it's bottom would tuch the x,z plain - i.e. the y=0
now i can get the models height with the bounding dimensions of the branchgroup that contains it... , but still when i try to set the position so it's bottom will be on the y=0 plain I just can't do it and i need to adjust manualy the location (adding a float to the y value until i see that it fits)
, and the position of the model prespectivly to the y axis value that i give it , changes from model to model!
let's say that i adjust a model's position manualy , then when i load another model , that old adjusment doesn't work
basically my problem is , that when i give the model a y location , i don't know how it will appear in respect of the value....
in a box or a cylinder , the point is the middle of the shape , but in the model it's just not like it.

When you create your model, you should create it so that 0,0,0 is at its feet in the modeller. Then it'll be easy to set its position because you'll be setting the position of its feet.

Similar Messages

  • MediaElement can not set Position when file reaches NaturalDuration

    I have created a mediaplayer in which I added a button to go one frame forward.
    I'm getting the total duration after the media is opened with
    mediaPlayer.NaturalDuration.TimeSpan
    In this case the value is {00:02:27.7720000}
    Every time I click on the button I do
    // Add one frame
    var frameTimeCode = TimeCode.FromFrames(1, SmpteFrameRate.Smpte25);
    var newTime = time;
    if (forward)
    newTime = time.Add(frameTimeCode);
    // If newTime is bigger than TotalDurationTimeCode, setting the position should automatically set it to TotalDurationTimeCode.
    // But still checking newTime. Just to be sure
    if (newTime > TotalDurationTimeCode)
    newTime = TotalDurationTimeCode;
    mediaPlayer.Position = TimeSpan.FromSeconds(newTime.TotalSeconds);
    After this, I get the position with
    currentPosition = mediaPlayer.Position;
    If I let it play, it plays until total duration is reached. Same goes for fast forward.
    But if I go frame by frame, I can't get beyond {00:02:26.7720000}
    It seems like I can't set the position once it reaches {00:02:26.7720000}.
    Also, when I rewind one frame from total duration, it skips to {00:02:26.7720000}.
    I tested with another file and that one also has a one second difference in total duration and position.
    - Edit -
    If I get the position right after I set it, than I do get the right position.
    But if I get the position later it will be set to {00:02:26.7720000}, even if I set the position manually to a value between {00:02:26.7720000} and {00:02:27.7720000}, it will jump back to {00:02:26.7720000}

    That was one of the things I found too.
    But that doesn't explain why it does get the right position (and plays to the end) when playing normally or in fast forward.
    The only difference is that I get the current position in a DispatchTimer when playing normal or in fast forward.
    ticker = new DispatcherTimer();
    ticker.Interval = TimeSpan.FromMilliseconds(interval);
    ticker.Tick += delegate
    PositionUpdateIndicator();
    private void PositionUpdateIndicator()
    currentPosition = mediaPlayer.Position;
    // Other code that updates mediaPlayer.Position
    When I get the current position per frame, the DispatchTimer is stopped and I just call
    PositionUpdateIndicator();
    - Edit -
    Oh wait, I see another difference. When I do the frame forward, I also Pause the player.. Maybe that is messing things up. I'll be continuing my research tomorrow.

  • How can I set position of a JTextArea inside a JPanel?

    Hi,
    I'm trying to add a JTextArea to a JPanel. It works as expected but what can I do to alter the position of the JTextArea inside the JPanel? Right now the JTextArea is centered and starting at the top of the JPanel. I would like it to, either start one row down, or be centered vertically, depending on what looks the best.
    Tried to mark as question, but that option is gone once the message is posted it seems.
    Edited by: Red_herring on Nov 23, 2009 11:15 AM

    JPanels don't have "rows", so that probably isn't the best description of your requirement. But the short answer is that you do it with a LayoutManager. There's a tutorial about them. Google keywords: java layoutmanager tutorial, and look for the ones from Sun.

  • Can I set the position of the new mail window?

    Each time I compose a new message, the new message window seems to appear at a different place, usually obscuring the main window. I would like to have it always appear to the side of the main window. Can I set this, perhaps in the property list?

    Perhaps something is corrupt that is causing bad behavior for some users and so my comments are unhelpful, but here's some more data to add to this discussion: My Mail.app behaves as George Coghill described above, subsequent message windows open where the previous window was open.
    For example- Close all Mail.app windows so that only the main "Message Viewer" window is open (basically, don't have any emails that you're in the middle of drafting open).  Open a new message, adjust the position as you wish, then close it.  When you open another new message, does it have the same position as the one you just adjusted?  It should.
    However, for me, sometimes it would be off by a few pixels as Thomas A Reed described above.  I realized that this was because I had another compose window open in the background.  So as you troubleshoot, make sure no other compose windows are open, to remove one complication and help isolate the issue.
    Side note: in cases where the original window's height fully extended across the display, the new window would be shifted over to the right only, but not down at all as some apps do (like Mac Word, annoyingly).  Another note: if you maximize the original window, subsequent windows also open maximized and unshifted.
    A corollary to the paragraph immediately above is that if you open say 3 new windows, the second one will be shifted and the third one will be even more shifted.  Let's say you send all 3, and now open a new window, it has the position of the 3rd window.  Annoying.  Yes, it would be nice if it always opened new windows in the exact same position, but Apple likely won't do this since people will get confused and think they lost the window if it doesn't do the shifting.  I guess the take-away is draft one message at a time or maximize your composition windows, otherwise it's going to move :/
    A band-aid solution: When a window isn't positioned how you like it, a quick/simple way to reposition it is with apps like Moom (my favorite), Cinch, Divvy, SizeUp, etc.  While I'm at it I should mention RightZoom, which makes the green zoom button behave like the Windows maximize button, and Cordless Dog Stay, which is great if you connect/disconnect your laptop to a screen causing the window positions to always get disturbed between displays.

  • I 'm using ipad 2 and am using iwork pages.  how can i set up iwork pages so that a page scroll left to right or right to left instead of just scrolling up?

    I am using ipad 2 and am using iwork paged.  how can i set up iwork pages so that a page will scroll left to right or right to left instead of just up?

    Here you are in a forum dedicated to Pages for OSX.
    Most of us don't use Pages for iOS.
    Better ask in the iWork for iOS forum :
    https://discussions.apple.com/community/app_store/iwork_for_ios
    Yvan KOENIG (VALLAURIS, France) lundi 18 juillet 2011 22:38:20
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • How can i set no Right Click on Adf (jspx)

    hi to everyone in this thred i have a cuestion ,
    How can i set no Right Click on Adf (jspx)? i don´t find the solution for this event
    i know a JavaScript to cancel RightClick but , are no how can i use in adf of Jdeveloper 11?
    thanks ...

    Hi,
    there is no native API for this, so you will have to use JavaScript for this. What is the usecase ?
    Frank

  • I am a US resident but spend several months each year at my house in England. Is it possible for me to download UK iPad apps from the iTunes Store? Right now they seem to be restricted. Can I set up an alternate iTunes account using a UK credit card?

    I am a US resident but spend several months each year at my house in England. Is it possible for me to download UK iPad apps from the iTunes Store? Right now they seem to be restricted. Can I set up an alternate iTunes account using a UK credit card?

    When you go to Starbucks, you'll need to first go to Settings on your iPad and choose Network. You'll see ATTWIFI as one of the available networks. When you click on that to select it, you should be immediately sent to AT&T's sign in page. You just need to check the box that says you agree to their terms and conditions and then hit the Connect button and you'll be online. One warning, however. If your Starbucks is anything like those in Manhattan, be prepared for really slow wifi. It can be a real pain waiting for pages to load sometimes.

  • JScrollPane - can you set scroll position?

    I have a JList loaded into a JScrollPane, and I call a method that highlights a row of the JList, but I can't figure out how to get the JScrollPane to scroll down.
    Is there a method where I can manually set the scroll position? I looked at the documentation online and didn't see anything like that.
    Thanks.
    -Mark

    You need to get a reference to the JScrollPane's JViewport
    myPane.getViewport();
    Then on the viewport you can call one of these.
    scrollRectToVisible(Rectangle contentRect)
    setViewPosition(Point p)
    Cheers,
    Rachel

  • How can we set Admin rights to access all user mailboxes in IMAP server exchange 2010?

    Hi,
    IMAP is in exchange 2010..
    as per guide:
    http://technet.microsoft.com/en-us/library/jj200730%28v=exchg.150%29.aspx
    CSV Files for IMAP Migration Batches`
    Use super-user or administrator credentials.   This requires that you use an account in your IMAP messaging system that has the necessary rights to access all user mailboxes.
    In the CSV file, you use the credentials for this account for each row. To learn whether your IMAP server supports this approach and how to enable it, see the documentation for your IMAP server.
    How can we set Admin rights to access all user mailboxes in IMAP server exchange 2010?
    thanks?

    Hi,
    Do you mean assigning a user full access permission to all other mailboxes? If so, we can try the following command:
    Get-Mailbox -Server “Exchange 2010” | Add-MailboxPermission -User AdminUserName -AccessRights FullAccess
    Thanks,
    Winnie Liang
    TechNet Community Support

  • Why db mirror can not set db recovery model to simple?

    Hi ,All
    I have a question . 
    DB replication can set db recovery model to simple ,why db mirror can not  db recovery model to simple.
    DB mirror must be set to full recovery model.
    As far as I know, whatever db mirror  and db replication ,there is a log reader to read the log in the ldf file
    DB mirror and DB replication are almost the same principle to replicate the db to another db server
    Thanks a lots
    Love SQL

    Database mirroring involves redoing every
    insert, update, and delete operation that occurs on the principal database onto the mirror database as quickly as possible. Redoing is accomplished by sending a stream of active transaction log records to the mirror server, which applies log records to the
    mirror database, in sequence, as quickly as possible. Unlike replication, which works at the logical level, database mirroring works at the level of the physical log record.
    There is no log reader agent in case of mirroring its more internal. Mirroring
    uses the transaction log to redo everything at the mirror site.  In simple recovery model, the transaction log is effectively transitory and only enough information is kept in the log for undo/redo to keep the database consistent during
    crash recovery. Thats why mirroring does not work in simple recovery model.

  • Can you please fix the move and scale when adjusting a wallpaper can you set it up right before iOS 7 update

    Can you please fix the move and scale when adjusting a wallpaper can you set it up right before iOS 7 update and it aggravates me that every time I try to put a picture of my wallpaper is just Zooms in and you can't see all of the picture it wasn't like this before

    Nobody here can change it. We're all just other users like yourself here.

  • Can I charge my ipod 5th generation right out of the box,without setting up account

    Can I charge my ipod 5th generation right out of the box,without setting up  the account

    Why do you want to do that.
    All new iPod came fully charged. (at least more than 80%)

  • Can someone tell me about how can I set it right

    i cant convert vids to mp4 can someone tell me like how can i set the videora pleaseee

    Hi Mark,
    Safari isn't intended to be an upload client for FTP'ing. For that you'll need a dedicated FTP client like CyberDuck.
    For some reason, on this computer, when I build an HTML file and save it, then open it using safari, I get the source code instead of the rendering of the source code.
    Which editor are you using to do this? I'm guessing TextEdit - if that's the case, use the Format menu -> Make Plain Text option to save the .html file. You'll then be able to save the file with whatever extension you prefer for JavaScript etc.
    want to switch back to the textedit application using COMMAND + tab the application doesn't open up. It remains minimized in the dock
    I know what you mean here and it is a bit frustrating. If you really want to stick with the keyboard you can do Ctrl+F2 then use the arrow keys to select the appropriate window from the Window menu. Normally I just keep the windows on screen and use Exposé to quickly retrieve the window.
    Hope some of that helps.

  • How can I set the Lock Model and data structure ?

    Hi ,
    I just have two questions about JE:
    1) Is there some method for me to set the lock mode level , such as record lock, page lock and database lock in JE?
    2) I learned that there are Btree and Hash,etc , data structures , How can I set the data structure when using JE ?
    Thanks in advance !
    Chris

    I think you're confusing our DB (C-based product) with JE. JE does not have lock mode levels, page locks (it does not have pages), or database locks. JE only has the BTREE method, it does not have the HASH method. For JE, please be sure to reference the JE doc page:
    http://www.oracle.com/technology/documentation/berkeley-db/je/index.html
    --mark                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How can I set up Cinema Display as a main screen and leave my macbook pro as a second screen instead?

    How can I set up Cinema Display as a main screen and leave my macbook pro as a second screen instead?

    I learned that the Dock is positioned at the chosen edge of whatever Display is positioned farthest to that side.  E.g. for the Dock to be positioned on the right side of the Cinema Display (instead of the right side of the MacBook), the Cinema Display must be oriented (by dragging) to the right of the MacBook monitor on the "Arrangement" tab of the Displays Preference Panel.

Maybe you are looking for