Problem with Picking

Hello,
I've got a problem with the PickSegment.
The result that I've picked is always null, but when I add a
LineArray to the scene, representing the PickSegment, the line intersects with a Shape3D object, which I've added.
So can anyone say, why the result is always null?
Please help!
cheers,
TITHOTP

Try setting the shape3d to pickable

Similar Messages

  • Problem with picking up a call

    I am facing problem regarding picking up a call. ios 8 is very slow and it is sometimes not responsive at all. Phone hangs which never occur wih former ios.

    Try a reset: Simultaneously hold down the Home and On buttons until the device shuts down. Ignore the off slider if it appears. Once shut down is complete, if it doesn't restart on it own, turn the device back on using the On button. In some cases it also helps to double click the Home button and close all apps BEFORE doing the reset.

  • Problem with picking up FileNameExtensionFilter

    Hello, me again. I have a compile-time error, but the damndest thign is that is happens on every computer in my house except my kitchen desktop. Here's the code block:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.filechooser.*;
    import java.util.*;
    import java.io.*;
        public class newMaker implements ActionListener{
            public void actionPerformed(ActionEvent e){
                untNum++;
                FileNameExtensionFilter bra = new FileNameExtensionFilter("Brackets", ".bra");    // cannot find symbol - class FileNameExtensionFilter
                hand.setFileFilter(bra);
                JInternalFrame lilB = new JInternalFrame("Untitled" + untNum,true,true,true,true);
                Container intPane = lilB.getContentPane();
                BracketPanel brack = new BracketPanel();
                JScrollPane nuS = new JScrollPane(brack);
                intPane.add(nuS);
                lilB.setSize(brack.getPreferredSize());
                lilB.setLocation(50, 50);
                lilB.setVisible(true);
                desk.add(lilB);
                pane.add(desk);
        }The comment is as far as it goes. I have update 6 on all of my computers, so I don't understand why it's not picking up the class.

    Error message is as follows:
    "cannot find symbol - class FileNameExtensionFilter"
    I'm using the latest version of BlueJ, with the most up to date JRE. My Java folder also has:
    j2re1.4.2_03
    jdk1.5.0_06
    jre1.5.0_06
    jre1.5.0_09
    jre1.5.0_11
    jre1.6.0
    jre1.6.0_01
    To compile, I hit the "Compile" button in the code window in BlueJ, where is runs into the error above.

  • Who can help by problems with picking?

    Hallo all.
    Last time I asked "How to get the textures name".
    ---- >> I created a box and gave it six various textures. With a mouse event I try to get information about the pick.
    It is possible to get the x,y,z values and other more, but I need the information witch side of the cube is picked.
    The name of the texture (I set it by the creation) is the best for me. But I can't get this data.
    There is a sample program in the java 3d pack. Here you can pick one of several cubes or spheres. Then the pickpoint and the closest vertex is marked. Is it possible to identify the side of a cube?
    Today I want to extend my question.
    I want to get the identity of a picked object from a scene with two or mor objects. (by excample two cubes are shown, one will be picked, the message should by like " cube xxx is picked" cube yyy is not picked..."

    It's very difficult to answer several questions at once on a forum, Ulf. Is there any chance you could ask just one at a time?
    As for your installation -- from your notes, it looks like you may have installed Premiere Elements on your E drive. If this is the case, it will not work. You must install the program on your C drive.
    Also, if you can not see video of your capture, it is likely related to an out-of-date video driver. Have you gone to the ATI web site and downloaded the latest driver for your card?
    If that doesn't work, you can always capture your HDV footage with HDVSplit, which is available here:
    http://strony.aster.pl/paviko/hdvsplit.htm
    Also, be sure to go to the Premiere Elements Help menu and select Check for Updates. This will ensure you have the latest patch for the program, which resolves many of the challenges you're experiencing.
    Finally, have you ensured that your video project is using the HDV project preset? One of the most important steps you can take in working with this program is to ensure that your project preset matches your source footage.

  • Iphone 3G Problems with picking up Bluetooth devices

    I've been trying to pair up my Iphone 3G with a bluetooth device and it won't recognise it (or anything else for that matter) even though I've switched this capability on.  Am I doing something wrong and I've not used Bluetooth before?

    So tonight I successfully updated my iphone 3gs to ios4. Trying to be nice, I was going to update my dad's 3g after he went to sleep so he could wake up to the new update. no good deed goes unpunished.
    So I plugged in his phone and it told me there was an update available, so I sat and waited while it downloaded. Once done, it was automatically starting the update. It first said it was backing up the iphone (which took forever). Then, to my surprise, it said it was restoring the iphone software and firmware. I was scared but then it said it was restoring the music and apps, so i figured it was restoring everything it had just taken so long to back up.
    I waited and once it was done, the phone was updated with the new features but was back to it's factory settings. It had no contacts, no calendar events, no email was set up, no notes.
    However, it did have the latest photos if I am remembering correctly.
    So I frantically restored the phone to the latest back up, which I assumed would be from a couple of hours ago, but it turned out to be from January 17, 2010. I didn't sync the phone before starting the update because I didn't while updating my 3gs earlier, and all went well then.
    So now the phone has lost anything that was added to it after January 17, 2010. Including the recent pictures that were still on the phone when it was restored to its factory settings earlier.
    WHAT HAPPENED? CAN I FIX IT?
    if the phone spent so long backing up before the update then why isn't there a back up file for it?
    I am very desperate. my dad is a businessman who had a lot of important contacts and events stored in his phone. He wakes in 15 minutes at 5:00 am and I am just awaiting his anger when he finds a chunk of his data missing.
    please help me.

  • Problems with "pick and place"

    Hi y'all. I'm a complete beginer at flash and was wondering
    if i could get some help.
    I'm designing a simple game in cs3 with actionscript 2.0 and
    i would like to get a second movie clip trailing my
    "hero" but only when it passes over it (or
    collects it), and again drop it when the hero comes in contact with
    another movie clip.
    I can get an object to trail, but thats as far as i've got. i
    cant think how to only trail once the object has been collected by
    the "hero".
    code (from a web example) - this is placed in the actions
    file of the trailing object;
    onClipEvent(enterFrame){
    diffx = _root.herod._x - this._x ;
    diffy = _root.herod._y - this._y ;
    _x += diffx/5 ;
    _y += diffy/5 ;
    this is placed in the player action file
    "herod"
    diffx = _root._xspeed - this._x ;
    diffy = _root._yspeed - this._y ;
    _x += diffx/5 ;
    _y += diffy/5 ;
    Any help would be hugly appriciated.
    Thanks for looking....

    yes. i have the "hero" movie clip which contains most of the
    code in it's own layer, then other movie clips which it can
    interact with like collision tests on other movieclips, incremented
    scores etc..
    heres the code for the "hero";
    onClipEvent (load) {
    yspeed = 0;
    xspeed = 0;
    wind = 0.00;
    power = 0.65;
    gravity = 0.1;
    upconstant = 0.75;
    friction = 0.99;
    objectA= [ball2_mc];
    onClipEvent (enterFrame) {
    if (Key.isDown(Key.LEFT)) {
    xspeed = xspeed-power;
    if (Key.isDown(Key.RIGHT)) {
    xspeed = xspeed+power;
    if (Key.isDown(Key.UP)) {
    yspeed = yspeed-power*upconstant;
    if (Key.isDown(Key.DOWN)) {
    yspeed = yspeed+power*upconstant;
    xspeed = (xspeed+wind)*friction;
    yspeed = yspeed+gravity;
    _y = _y+yspeed;
    _x = _x+xspeed;
    if (_alpha<100) {
    _alpha += 0.5;
    if (_root.wall.hitTest(_x, _y, true)) {
    xspeed = 0;
    yspeed = 0;
    _x = 120;
    _y = 120;
    _root.score -=2;
    _alpha = 10;
    objectA = [ball2_mc];
    for(var i = 0; i < objectA.length;i++)
    if(this.hitTest(objectA
    )) { objectA.booleanVar = true;
    if (_root.ans.hitTest(this)) {
    char_hit = true;
    if (_root.ans.hitTest(this)) {
    _root.ans._x = Math.random()*400+50;
    _root.score ++;
    and for the trailing movieclip - in it's own layer...
    onClipEvent(enterFrame){
    if(this.booleanVar){ //will trail hero if changed to
    BooleanVar= true
    diffx = _root.hero._x - this._x ;
    diffy = _root.hero._y - this._y ;
    _x += diffx/5 ;
    _y += diffy/5 ;

  • Problem with Date Picker Item

    Hello,
    I'm using APEX 4.2.2.00.11 and I have a problem with the Date Picker. I can't select any day of the second week of the month (it happens for all months).
    Someone know if there are any reason (and how can I solve it) or is an APEX bug?
    Thank you!

    Hi Chimanzee,
    try for : source value
    to_char(sysdate-7,'DD/MM/RRRR')
    hope this helps.
    Leo

  • Problem with People Picker field in sharepoint 2013 list

    hi friends
    i have a problem with people picker
    default newitem.aspx
      custom NewItem.aspx
    why the selection option of the people piker is changing
    how can i get the default functionality in custom page
    please help me

    Hello malli.share,
    try to copy source code from newitem.aspx to custom_newitem.aspx (in SPD you can edit custom_newitem.aspx in advanced mode and paste the code).
    Regards,
    Alexander

  • Im having a problem with my mic on my ipod 5th gen it works but it douse not pick up any sound unless i  talk right next to the mic. how can i fix this

    im having a problem with my mic on my ipod 5th gen it works but it douse not pick up any sound  unless I  talk right next to the mic but it sounds low  . how can i fix this

    - Make sure the mic hole is clear and unobstructed. It is the little hole on the back by the camera lens(if has back camera). For the 16 GB one without the back camera the mic hole is on the top edge near the center.
    - Reset the iOS device. Nothing will be lost      
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings                            
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                               
    iOS: Back up and restore your iOS device with iCloud or iTunes
    - Restore to factory settings/new iOS device.                       
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar                                                              

  • Is anyone having problems with the colour picker?

    I'm having trouble with the colour picker, I've got some type on a 50% tint of black, when I go to the colour picker and change the colour it still stays as a tint of black even though the colour parameters have changed. It's only when I choose a set colour does the display of colour change on screen, then I can change it with the colour picker as normal. Is this something simple that's changed? Is this a bug or am I doing something wrong?

    This is a major problem with Lollipop, but yo said it started 2 months ago.   Several people have fixed problem by removing FaceBook And Face book messenger and then re loading the apps again.   You might want to clear your cache before reloading.  Not sure this is your problem, but worth a try.  Good Luck

  • Problem with iphone 4 picking up wifi

    im having a problem with my iphone 4. i try to connect it to a wireless network but it wont pick up any networks. ive done a network reset and a restore and still that didnt fix the problem. other iphones pick up for example my home wireless network but my wont at all. any help will be aprecciated

    iPhone is not picking networks in the range !! Now this is some problem with the phone. You mentioned about hard reset / soft reset / restore and set it as new device. If nothing worked you can get it replaced at Apple Store (as long as it is not damaged, hope you din't end up throwing it out of window)

  • Have a problem with a brush preset picker  in CS5

    Have a problem with a brush preset picker. By right click  over your document (if you using brush or cloning tool) it’s open, so you choose a brush and size. But in new version, if your option bar is in different monitor (I am using two monitors one has my working area – document, other one tools), its open only in that monitor, where is a option bar. Supposed to open over your working area like it was in CS4. Seems to me, it’s not recognizing second monitor.

    My graphic setting is OK, my CS4 is working fine. I thing it's a bug in new version.
    Yes I have extended desktop mode.

  • I am having problem with my phne not being able to pick up any wi - fi service ?

    Does anyone have a similar problem with their Motorola phone ?

    Do you mean after a phone update? Do you mean just at home? Does it happen everywhere?  Do you have wifi turned on? If its on and your not connecting just clear out the connections (forget) then reset up the connections and see if that helps.  Did you get a Jelly Bean update? Many people have had wifi connections issues because your router is either outdated and not supported with the new os, or it needs a firmware update.  Post back with more information.

  • Printing problem with HP Laserjet 2550

    I have an HP Laserjet 2550 which is having problems with my Macbook Pro with 10.6.3
    Snow Leopard has the drivers for the HP 2550. So when I added the printer it picked up the drivers.
    The problem I am having is that it send the job to the printer but the printer does not print it. When I restart the printer on startup it prints the job. I have to do this every time.
    Is the problem with the Mac or the printer?

    Have you run Software Update to check that you have the latest HP drivers? They have done a couple of revisions since SL was released. Of course, if you are still running 10.6.3 SU will come up with many other updates some of which might be relevant to the problem.
    You might also do some maintenance - repair permissions, etc. This could make a difference. There are lots of other steps that might be taken but try these first.
    Neville

  • Advance level drawing problem with Jframe and JPanel need optimize sol?

    Dear Experts,
    I m trying to create a GUI for puzzle game following some kind of "game GUI template", but i have problems in that,so i tried to implement that in various ways after looking on internet and discussions about drawing gui in swing, but i have problem with both of these, may be i m doing some silly mistake, which is still out of my consideration. please have a look at these two and recommend me one of them, which is running without problems (flickring and when you enlarge window the board draw copies (tiled) everywhere,
    Note: i don't want to inherit jpanel or Jframe
    here is my code : import java.awt.BorderLayout;
    public class GameMain extends JFrame {
         private static final long serialVersionUID = 1L;
         public int mX, mY;
         int localpoints = 0;
         protected static JTextField[][] squares;
         protected JLabel statusLabel = new JLabel("jugno");
         Label lbl_score = new Label("score");
         Label lbl_scorelocal = new Label("local score");
         protected static TTTService remoteTTTBoard;
         // Define constants for the game
         static final int CANVAS_WIDTH = 800; // width and height of the game screen
         static final int CANVAS_HEIGHT = 600;
         static final int UPDATE_RATE = 4; // number of game update per second
         static State state; // current state of the game
         private int mState;
         // Handle for the custom drawing panel
         private GameCanvas canvas;
         // Constructor to initialize the UI components and game objects
         public GameMain() {
              // Initialize the game objects
              gameInit();
              // UI components
              canvas = new GameCanvas();
              canvas.setPreferredSize(new Dimension(CANVAS_WIDTH, CANVAS_HEIGHT));
              this.setContentPane(canvas);
              this.setDefaultCloseOperation(EXIT_ON_CLOSE);
              this.pack();
              this.setTitle("MY GAME");
              this.setVisible(true);
         public void gameInit() {     
         // Shutdown the game, clean up code that runs only once.
         public void gameShutdown() {
         // To start and re-start the game.
         public void gameStart() {
         private void gameLoop() {
         public void keyPressed(KeyEvent e) {
         public void keyTyped(KeyEvent e) {
         public void gameKeyReleased(KeyEvent e) {
              PuzzleBoard bd = getBoard();
              for (int row = 0; row < 4; ++row) {
                   for (int col = 0; col < 4; ++col) {
                        if (e.getSource() == squares[row][col]) {
                             if (bd.isOpen(col, row)) {
                                  lbl_score.setText("Highest Score = "
                                            + Integer.toString(bd.getPoints()));
                                  setStatus1(bd);
                                  pickSquare1(col, row, squares[row][col].getText()
                                            .charAt(0));
         protected void pickSquare1(int col, int row, char c) {
              try {
                   remoteTTTBoard.pick(col, row, c);
              } catch (RemoteException e) {
                   System.out.println("Exception: " + e.getMessage());
                   e.printStackTrace();
                   System.exit(1);
         // method "called" by remote object to update the state of the game
         public void updateBoard(PuzzleBoard new_board) throws RemoteException {
              String s1;
              for (int row = 0; row < 4; ++row) {
                   for (int col = 0; col < 4; ++col) {
                        squares[row][col].setText(new_board.ownerStr(col, row));
              lbl_score.setText("Highest Score = "
                        + Integer.toString(new_board.getPoints()));
              setStatus1(new_board);
         protected void setStatus1(PuzzleBoard bd) {
              boolean locals = bd.getHave_winner();
              System.out.println("local win" + locals);
              if (locals == true) {
                   localpoints++;
                   System.out.println("in condition " + locals);
                   lbl_scorelocal.setText("Your Score = " + localpoints);
              lbl_score
                        .setText("Highest Score = " + Integer.toString(bd.getPoints()));
         protected PuzzleBoard getBoard() {
              PuzzleBoard res = null;
              try {
                   res = remoteTTTBoard.getState();
              } catch (RemoteException e) {
                   System.out.println("Exception: " + e.getMessage());
                   e.printStackTrace();
                   System.exit(1);
              return res;
         /** Custom drawing panel (designed as an inner class). */
         class GameCanvas extends JPanel implements KeyListener {
              /** Custom drawing codes */
              @Override
              public void paintComponent(Graphics g) {
                   // setOpaque(false);
                   super.paintComponent(g);
                   // main box; everything placed in this
                   // JPanel box = new JPanel();
                   setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
                   // add(statusLabel, BorderLayout.NORTH);
                   // set up the x's and o's
                   JPanel xs_and_os = new JPanel();
                   xs_and_os.setLayout(new GridLayout(5, 5, 0, 0));
                   squares = new JTextField[5][5];
                   for (int row = 0; row < 5; ++row) {
                        for (int col = 0; col < 5; ++col) {
                             squares[row][col] = new JTextField(1);
                             squares[row][col].addKeyListener(this);
                             if ((row == 0 && col == 1) || (row == 2 && col == 3)
                             || (row == 1 && col == 4) || (row == 4 && col == 4)
                                       || (row == 4 && col == 0))
                                  JPanel p = new JPanel(new BorderLayout());
                                  JLabel label;
                                  if (row == 0 && col == 1) {
                                       label = new JLabel("1");
                                       label.setHorizontalAlignment(JLabel.LEFT);
                                       label.setVerticalAlignment(JLabel.TOP);
                                  else if (row == 4 && col == 0) {// for two numbers or
                                       // two
                                       // blank box in on row
                                       label = new JLabel("2");
                                       label.setHorizontalAlignment(JLabel.LEFT);
                                       label.setVerticalAlignment(JLabel.TOP);
                                  else if (row == 1 && col == 4) {
                                       label = new JLabel("3");
                                       label.setHorizontalAlignment(JLabel.LEFT);
                                       label.setVerticalAlignment(JLabel.TOP);
                                  else if (row == 4) {
                                       label = new JLabel("4");
                                       label.setHorizontalAlignment(JLabel.LEFT);
                                       label.setVerticalAlignment(JLabel.TOP);
                                  else {
                                       label = new JLabel("5");
                                       label.setHorizontalAlignment(JLabel.LEFT);
                                       label.setVerticalAlignment(JLabel.TOP);
                                  label.setOpaque(true);
                                  label.setBackground(squares[row][col].getBackground());
                                  label.setPreferredSize(new Dimension(label
                                            .getPreferredSize().width, squares[row][col]
                                            .getPreferredSize().height));
                                  p.setBorder(squares[row][col].getBorder());
                                  squares[row][col].setBorder(null);
                                  p.add(label, BorderLayout.WEST);
                                  p.add(squares[row][col], BorderLayout.CENTER);
                                  xs_and_os.add(p);
                             } else if ((row == 2 && col == 1) || (row == 1 && col == 2)
                                       || (row == 3 && col == 3) || (row == 0 && col == 3)) {
                                  xs_and_os.add(squares[row][col]);
                                  // board[ row ][ col ].setEditable(false);
                                  // board[ row ][ col ].setText("");
                                  squares[row][col].setBackground(Color.RED);
                                  squares[row][col].addKeyListener(this);
                             } else {
                                  squares[row][col] = new JTextField(1);
                                  // squares[row][col].addActionListener(this);
                                  squares[row][col].addKeyListener(this);
                                  xs_and_os.add(squares[row][col]);
                   this.add(xs_and_os);
                   this.add(statusLabel);
                   this.add(lbl_score);
                   this.add(lbl_scorelocal);
              public void keyPressed(KeyEvent e) {
              public void keyReleased(KeyEvent e) {
                   gameKeyReleased(e);
              public void keyTyped(KeyEvent e) {
         // main
         public static void main(String[] args) {
              SwingUtilities.invokeLater(new Runnable() {
                   @Override
                   public void run() {
                        new GameMain();
      thanks a lot for your time , consideration and efforts.
    jibby
    Edited by: jibbylala on Sep 20, 2010 6:06 PM

    jibbylala wrote:
    thanks for mentioning as i wasn't able to write complete context here.Yep thanks camickr. I think that Darryl's succinct reply applies here as well.

Maybe you are looking for

  • Display the technical name of the last level of the hierarchy

    Hello, I have a report with hierarchy. Each level of the hierarchy uses different infoObject. I want the report to display the technical name only for nodes from specific infoObject. For example if the infoObject uses 0cust_grp1 (for the first level)

  • How can i change the name of an author or title to make it shorter?

    How can I make a new , shorter, name for items already in my library?

  • How to Stop automatic file saving on IPAD Adobe Reader 11.2

    How can stop my PDF document being saved with the fillable form data when being using Adobe Reader 11.2 on an IPAD - the file is automatically saved when the user returns to the document folder.  The original pdf file was created from a Word document

  • Entering and Displaying English and chinese

    We are running Oracle 8i on a w2k server and have w2k clients configured to enter and view English, Simplified and Traditonal Chinese. Oracle is setup with UTF8. We atn to be able to enter and display both english and chinese characters simultaneous

  • Nomad Zen Xtra - 60G - Major Issues

    I bought the Zen Xtra for my husband for his b-day last April (2004). Over the summer the Zen Xtra worked well and transfer of 307 tracks of songs was successful. Then, in the fall we decided to try setting up playlists through the Creative MediaSour