Projecting Mouse to a 3D Point

I've searched high and low for this answer, but all the picking threads and information I've come accross hasn't been able to help me. I'm making a chess game and I need to be able to convert the mouse (in screen x, y coordinates) to a 3D point, but the only parts I care about in that 3D point are the x and z coordinates (which I'll use to convert them into a tile on the chess board). I know that I want the y-value of the 3D point to be zero (I just want to convert the mouse to a point on a level plane). What's the best way to go about doing this? I don't want to pick an object, I just want a 3D point with a y-value of zero.

Sorry, I saw the old API which didn't list PickPoint as deprecated. Here are some more posts that will guide you in obtaining the 3d coordinates of point picked. Check out chapter 4.6 in the tutorial using the last one of the four links.
"I don't know where the point will be when I click, all I know is that I want the y-coordinate to be zero " Not really clear what you are looking for. I you want
to constrain motion of your shapes to x and z coordinates, don't bother about dealing with y coordinate when you obtain the 3d coordinates and they match your shapes x and z coordinates, perform the move action. Hope I was able to convey my point.
http://forum.java.sun.com/thread.jspa?messageID=10101107&tstart=0
http://forum.java.sun.com/thread.jspa?forumID=21&threadID=635844
http://forum.java.sun.com/thread.jspa?forumID=21&threadID=457527
http://www.cs.stir.ac.uk/courses/CSC9N6/Java3D/Tutorial/j3d_tutorial_ch4.pdf
Let me know how you worked it out.
Venkat

Similar Messages

  • How to show data value labels in the charts without moving my mouse on the data point?

    Sometimes I need to show a chart with data value labels which is not necessary to move my mouse on the data points. However, it seems Xcelsius does not support this simple feature. Any alternative ways?
    Many thanks!

    Currently, Xcelsius does not support display of labels at data points. It would be difficult to move and update labels on a chart with dynamically updated data. However, a work around for a static chart would be to add a Label component in the desired location. This can be done for multiple static charts by using dynamic visibility.

  • Mouse cursor snaps to point on screen

    I posted this two days ago in the Mac Pro forum, but after searching for a solution since then, I've come to two conclusions: 1) the problem is not a hardware one and 2) using OS X without a mouse is horrendous. Forgive me for copying and editing my own original postings. First, here is a digest:
    - the cursor snaps back to its starting point on the screen after ca. 1/2 sec of movement, I can hardly move the cursor to halfway the screen before it snaps back
    - not a hardware problem, appears with Kensington Expert Trackball, Magic Trackpad, Apple Magic Mouse and keyboard used as mouse
    - not connected with a single user account, appears in the login screen, main user account and system operator account
    - the snap-to position differs in the login screen and user accounts
    - turning of the computer, unplugging does not work
    - resetting PRAM does not work
    - unplugging + replugging trackball USB-cable does not work
    - the problem appeared suddenly in mid of normal use.I had not changed in settings before the problem
    Any ideas? Is it possible to contact someone at Apple directly?
    Below my original messages:
    I started having a strange problem with the mouse cursor. I started the computer, the mouse worked fine as always. Suddenly the cursor started fixating on a point on the lower right portion of the screen. I would move the cursor, it would move maybe halfway across the screen for a split second and then snap right back to the starting position.
    I tried shutting down the computer and restarting. Didn't help. The cursor behaves the same way in the login screen too. The only difference is that now the "homing position" is somewhere in the upper right part of the screen.
    I have a Kensington Expert trackball and a Magic Trackpad. I've removed the trackpad, in case it had started interfering with the trackball (never done that before though). Didn't help. I've unplugged and replugged the trackball USB-cable, no help.
    I had the Mac Pro unplugged for over a day as I was travelling and the Kensington Expert Mouse too. Behaved exactly the same when I switched on the computer again. I tried resetting the PRAM. Didn't help.
    I don't know where the problem lies. The mouse cursor keeps snapping to a position in both the login screen and my user screen. The snap-back position is different in the different screens. The cursor returns to its position when both the Magic Trackpad and the Expert Mouse are connected or when only one of them is. I can move the cursor half a screen, then it snaps back. Clicking functions, but I never have any time to click anything when the cursor bounces back to its spot.
    My final remedy would be reinstalling Snow Leopard, but before I try that I would like tro try something less radical. I would also delete the mouse .plist file, but I don't know where it is. I guess that probably would not help, as the cursor behaves crazy even in the login screen, so the user setting should not be the problem.
    I've come to the conclusion, that the problem is not a hardware one. The mouse cursor snaps to point on the screen when I use: 1) a Kensington Expert Mouse, 2) a Magic Trackpad, 3) the Magic Mouse that arrived with my computer and when I turned on 4) use keyboard as mouse. The problem also is not tied to a certain user because it appears 1) in the login screen, 2) my user account and 3) the sysop account. I can't figure out where to look for the problem or fix it.

    I give up.
    I've tried everything I can think of, to fix the behavior of the mouse cursor. I've zapped the pram, I've fixed file permissions, I've removed all startup items, I've tried starting the computer in Safe Mode. No can do.
    The mouse cursor snaps back to a position on the screen when I try to move it. This happens within a second, so I might be able to move the cursor half-way across the screen, but that's it. It doesn't matter how fast I move the mouse. The cursor is dysfunctional in the normal user account, the administrator account and in the login screen. It works perfectly fine in Safe Mode.
    The mouse cursor misbehaves when using a USB track-ball, the Magic Trackpad or the keyboard with accessibility settings.
    After advise received at this site, I tried booting up in Safe Mode and after that the cursor worked for a month or so, but the problem returned. I see no rhyme or reason why the problem appeared for the first place, or why it reappeared. I had originally had two pointing devices the track-ball and the Trackpad connected to my Mac Pro at the same time. After the problem first appeared, I removed the Trackpad. I returned it to use a day before the problem reappeared, but I don't know if that is the cause of the problem. The computer had worked perfectly fine for some months with two pointing devices before the problem appeared.
    I've noticed that some other people have had the same problem. One had a feline related fix, which doesn't help me since I don't have a cat. Another fixed the problem by switching off the Internet, but that didn't help me.
    What I now would like is to make an official bug-report, so that the problem could be fixed someday. I hope Apple is listening. I also plan to reinstall Snow Leopard (I have 10.6.7) next weekend. I had hoped to install a new OS only when Lion got out, but I don't seem to have much choice not. I can either simply reinstall or make a clean reinstall by erasing the disk in the process. I'd like to avoid reinstalling my programs, but I feel it is safer to wipe everything and start from scratch. Even then, I have no assurance this doesn't happen again.

  • I am new at Captivate 8 and I have created a learning project using an existing power point presentation.  I have added a button that will allow my students to view a video on the subject.  When I run the project in Preview the button works but when I pub

    I am new at Captivate 8 and I have created a learning project using an existing power point presentation.  I have added a button that will allow my students to view a video on the subject.  When I run the project in Preview the button works but when I publish it, it stops working.

    I added an Interactions button and in the Actions on Success I open an URL or file. I have placed the video on our web server.   In the URL I point to our web server "http://www.wmabhs.org/Media/Add Client 3rd Party Coverage.mp4".  If I run this from any browser it works.  So what do you think I have done wrong?

  • Multiple projects, multiple lists on Share Point

    Hi, I am hoping someone can provide me guidance here.
    I am trying to create a project list on SharePoint that shows the Gantt Chart of the task duration. However, there are multiple projects with the same tasks which I would like to capture. For example: Project A has task 1, task 2, .... task 20; Project B
    has the same tasks 1, 2... and 20. These tasks and projects are being worked on by different individuals.
    What I would like to capture is the duration of each tasks for these projects in one list on Share Point. Is it possible?
    any response would be greatly appreciated.
    thanks in advance for your time.

    Making this more complex adds potential rendering difficulty down the line.
    One list is indeed better and can be managed more easily. you'll be able to present different views of the data on different web part pages if needed, along with additional metadata,
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • How can I make the mouse follow as I point?

    I am brand new to captivate and incredibly frustrated. I'm
    trying to record a web site walkthrough and have selected
    "Demostration." No matter what setting I change, the mouse only
    moves when I click, but I want to point to things as I narrate. Can
    anyone help me understand how to make that happen?

    Welcome to our community, murphisto
    Captivate doesn't exactly work in this manner. Basically here
    is how the process works. You open an application. You open
    Captivate and configure it to record the application. There are
    different ways to record. You elected Demonstration. When recording
    in Demonstration mode, the following happens.
    Where you click or type, Captivate captures the screen. The
    screen capture becomes the background image for the slide. The
    mouse coordinates are tracked. In other words, where it started and
    where it stopped. So each slide has a single mouse movement. On the
    first slide where mouse movement was recorded, you may adjust the
    start and end spots. But each slide afterwards only offers you the
    ability to adjust the mouse ending spot. The starting spot is
    determined by where it STOPPED on the slide before.
    You may wish to investigate using Full Motion Recording
    (FMR). But if you choose to go that route, you need to be aware of
    some factors. Captivate was never designed to be a Full Motion
    product. It's better than it used to be, but far from perfect. If
    you do record in full motion, keep it very brief. Just a few
    minutes worth. If you find this method of recording and playback
    are what you feel are best, you will find yourself constantly
    frustrated with Captivate. In that case, you should investigate a
    different product that was designed with full motion in mind.
    Camtasia Studio, Fraps or one of the others.
    Hopefully this was helpful... Rick

  • Data point display when mouse hovers over data point in TCODE QGC1

    Hi experts,
    Just want to ask if anyone knows how to add more data in the display when your mouse hovers over the data point in the control chart of transaction QGC1?
    Because currently the control chart shows u201CSeriesu201D and u201CValueu201D, Iu2019m planning to add the inspection lot date when your mouse hovers over the data point.
    Hope to have some response regarding this and thanks in advance

    Tohatsu,
    I am not sure exactly what you are trying to do but the way you have went about doing things is not the way to code in LV. Fist off break your code into functional blocks and use these functional blocks as Subvi's. This will make your block diagram easier to read. Once you do this you can get rid of a lot of code. Also you need to learn how to use the event structure, right now the way your code is set up to use it is not correct. Have a look at the examples that ship with LV. i am not even going to begin to try to understand your code because the diagram is so large. Please do not take all of this the wrong way I am not trying to be hard on you or anything, I am just giving you some constructive criticism..
    Break your code down into functional blocks and use subvi's to perform those blocks of code.
    Have a look at the examples on how to use an event structure.
    Have a look at state machines
    You would also benefit from getting the book called Labview for everyone, third edition, jeffrey travis and james kring.
    You have a lot going on in this VI. Use the eventstucture to your advantage instead of as a hinderence like it is now. the way your code is set up now everything runs in your while loop, then it waits for an event to fire. in your case the while loop will not run again until the mouse moves over the waveform chart. You are on the right track, you just need to get some fundamental basics down and you will figure out what is going on.
    Thanks for converting the code to 8.0 for me.
    Message Edited by Jhoskins on 01-30-2008 09:17 AM
    Joe.
    "NOTHING IS EVER EASY"

  • Add Mouse - Cannt move start point

    Captivate v5.5
    A work colleague using v5.5 is unable to move the start point of the mouse pointer trail they add to a slide using Insert/Standard Object/Mouse or the insert mouse tool bar.
    They can move the pointer end to place they want it to finish but unable to grab and drop the start point and place it where they want the mouse to start from.
    I have tried it on my v5.5 and it works OK for me.
    Any ideas please as to what she needs to do - or why this might be ?
    Noel

    Hi Noel,
    If you are using mouse pointers in more that one slide, then the end point of the mouse pointer on the first slide, becomes the start point on the second and so on.
    This is done to keep the continuation of the mouse pointer across the slides.

  • Half second delay using pen tool. Lag between mouse up and when point appears on screen

    Regarding the pen tool, using Photoshop CC 2014.2.2 on a PC— There is a half second delay between the moment I click the mouse and when the path point shows up. I've disabled the tablet input service on my computer, which worked, after a restart, but eventually this delay starts happens again. This is immensely inconvenient and I need a permanent solution. If anyone has any sort of answer please tell me. I will try anything.

    I am experiencing the same problem. It's very annoying! The issue comes and goes... some days it works like it should, some days it's lagging. I couldnt figure out why so far, neither could the adobe support via chat...
    Here's a video showing the issue. Make sure to watch in 720p and turn on the volume, so you can hear when I click.
    ps cc pen tool - YouTube

  • DFM Setup - Project Phase to Item Decision Point

    Hi Folks,
    I am trying to setup a one way status sync from Project Phase to Item DP (i.e. status is only managed in cProjects and should sync to Item DP).
    I have done the following config.
    1. Defined Portfolio Item Types and mapped Item DP to Template Phases
    2. Maintained Phase to DFM business transaction in IMG Map Project / Initiative Business Transaction to DFM Business Transaction
    3. Maintained DFM to Item DP mapping in IMG Map DFM Business Transaction to Portfolio Management Status
    4. Under IMG Map Business Transactions for Synchronization I added a couple additional business transactions that I needed for Source PPCP and Target PPODP.
    Examples entries of the above config for are as follows. This is to change the mapped DP status to 'For Approval' when clicking "Begin Approval" in cProjects phase
    Map Project / Initiative Business Transaction to DFM Business Transaction
    Source Grouping - PPCP Project Phase
    Target Grouping - PPODP Portfolio Item Decision Point
    Source Bus Transacction - DX11 Begin Approval of Phase
    DFM Bus Transaction - IX05 Set 'To Be Approved'
    Map DFM Business Transaction to Portfolio Management Status
    Target Grouping - PPODP Portfolio Item Decision Point
    Source Grouping - PPCP  Phase (Project Management)
    DFM Bus Transaction - IX05 Set 'To Be Approved'
    Portf Mgmt Status - Z0006 For Approval (custom status that I created for Item DP)
    With the above config when I begin the approval in cProjects, the mapped item DP is not updated. I have ensure that the next status of the DP is configured accordingly.
    Appreciate any ideas on how to get this working.
    Thanks,
    Lashan

    It looks like the issue is because when "beginning approval" cProjects status is "For Approval - Released",which means 2 status are active and the DFM business transaction does not trigger.
    Wondering if anybody has the issue where cProjects has 2 active status and the subsequent statuses does not trigger DFM transaction.
    Appreciate any help.
    Thanks

  • Relate mouse click position to points on graphs

    I am working with labview 7, on windows XP. I am trying to relate between a mouse click on a waveform chart to a point on the chart. All I managed to do so far is relate with a cursor, but the cursor has to be dragged and I want the user just to click on the graph. Is that possible?

    Hello
    Attached is a labview example lv 7.0 about how to map cursor coordinates to graph units.
    Perhaps Chilly Charly can post his vis en 7.0
    Greetings
    Alipio
    "Qod natura non dat, Salmantica non praestat"
    Attachments:
    uievents.llb ‏90 KB

  • How do I get rid of the metadata hangin on my mouse arrow when I point on an image.

    How do I get rid of the metadata hanging on my mousearrow when I point on an image in aperture.
    I hope it is possible to uncheck this feature. It is rather disturbing and not needed all the time.
    I hope someone can help me out!
    Thanks

    And in case anyone is wondering, hitting the "T" key is the keyboard shortcut to turn this feature on and off.

  • Mouse highlighting everything/trackpad pointer out of control

    Snow Leopard installed - go to System Preferences --> Universal Access --> Mouse & Trackpad --> "Mouse Keys" to ON and click on "Ignore built in trackpad when mouse keys on.  Your trackpad is no longer sensitve to touch. Crazy highlighting stops!  I learned this from another apple solver - forgot the name!

    You might try looking at the battery to make sure it's ok. The battery sits right beneath the trackpad and if the battery is faulty, it may swell in size placing pressure on the trackpad, which causes problems. Take out the battery and see if the trackpad feels normal. Also place the battery on a smooth flat surface and make sure it hasn't deformed in shape at all.
    Mordy

  • Suggestion of a topic for masters project from the Comp sci point of view

    I want to decide a topic for my masters project. Preferably dont want to use any hardware. Can i simulate an engine simulator without any hardware.

    Simulating a simulator. Yes, that sounds like a very theoretical topic ;-)
    But seriously, LabVIEW is a great environment for simulation. NI even has a simulation toolkit for simulating control systems.

  • Mouse pointer display

    I'm recording an application demo, and having trouble getting
    the mouse movements to appear "natural." For example, say that my
    project contains 4 slides, each 10 seconds long:
    * On Slide 1 (Window #1), the mouse moves to point A and
    clicks to select the item at that location
    * On Slide 2 (Window #1), the selected item is highlighted
    and the mouse remains at point A ("Align to Previous")
    * On Slide 3 (Window #1), the mouse moves to point B; mouse
    motion begins at 9.0 seconds and lasts 1.0 seconds, so the mouse
    movement is at the end of this slide; the mouse clicks to select an
    item that will appear on Slide 4
    * On Slide 4 (Window #2), the selected item is highlighted
    and the mouse remains at point B
    During movie preview, when Slide 3 appears the mouse displays
    immediately at point B. This doesn't seem right to me--it's way too
    soon. Shouldn't the mouse remain at point A when Slide 3 appears,
    and 9 seconds later begin its 1-second travel to point B?
    Thanks,
    Bill

    I've seen comments on this forum about the recommended number
    of slides, but so far <fingers crossed> I haven't encountered
    problems. When it takes 4 to 8 slides just to get the logon
    sequence (User Name, Password, click "Login" button) to look
    natural, keeping the demo project to less than 65 slides is not
    practical. My current project is the second demo in this series;
    the first project has 147 slides, most with audio and cursor, some
    with highlight boxes. I even recorded at a larger image size than I
    needed, and after final editing I reduced the project size to
    800x600, and thankfully it seems to be fine.
    = = = = =
    Now to this "misplaced cursor" issue: I have created a
    6-slide project that demonstrates the problem. I did this by
    deleting slides 1-19 and 26-203 of my project, then saving the test
    project with a new name (A_Test.cp). I added a few text captions
    and replaced the audio on each slide. On Slide 4, which is 20
    seconds long, you can clearly see that the cursor jumps immediately
    to its final location, though the mouse is set to "Display for 0.5
    seconds" and "Appear after 19.5 seconds."
    Unfortunately, the .cp file for this project is about 92 MB
    in size! I discovered that the library for this A_Test project
    contains all the audio and background images from the original
    203-slide project. How can I remove everything except the items
    that "belong" to the remaining 6 slides, so that A_Test.cp will be
    only as big as necessary for this 6-slide project?
    Thanks again,
    Bill

Maybe you are looking for