Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - eye1

#61
Bugs / child --> parent
August 03, 2006, 01:56:49 PM
I'm doing some research on the problem 4 now.

Best regards and by the way I really love your engine, it helped me so much this far.
#62
Bugs / child --> parent
August 03, 2006, 02:42:35 AM
Hy

I'm having problem!

I move two objects with method translate()

Here is my prompt output, just to be shure objects get same direction vector
RBG: (-3.0,0.0,0.0)
CONT: (-3.0,0.0,0.0)
TABLE: (0.0,3.0,0.0)
CONT: (0.0,3.0,0.0)

But objects move just the oposite way. And it doesen't matter if i rotate the other object also. (RBG & TABLE are childs in hierarchy)

I have no clue what colud it be
:(


Sorry, 4 all those questions :oops:
#63
Bugs / child --> parent
August 03, 2006, 01:00:35 AM
Thanks!

I'll try that.
#64
Bugs / child --> parent
August 02, 2006, 11:56:36 PM
I'm pretty shure it doesn't

Is it possible to get an absolute position of child object in world.
#65
Bugs / Re: child --> parent
August 02, 2006, 10:57:34 PM
Quote from: "eye1"Hello

I'm using this code to retrieve current position of Object in world

  private SimpleVector getParentTrans(Object3D model)
  {
     Object3D[] parents = model.getParents();
     SimpleVector sv=new SimpleVector();
     for (int i = 0; i < parents.length; i++) {
        if (parents[i] != null) {
           sv.add(parents[i].getTranslation());
           sv.add(getParentTrans(parents[i]));
        }
     }
     return sv;
  }

  public SimpleVector getCurrPosition()
  {
     SimpleVector sv = model.getOrigin();
     sv.add(model.getTranslation());
     SimpleVector par = getParentTrans(model);
     System.out.println("PAR: "+par);
     sv.add(par);
     return sv;
  }


it looks like it works fine!!!


But when I unlink child from parent it look like it is not removed from array which is returned by method Object3D.getParents(). Is that a bug, or i made a mistake??

Regards

Hello again.

Should above code work also when objects are rotated?

I'm thinking of going back to my previus child-->parent translations.
#66
Projects / Warehouse Visualisation
August 01, 2006, 03:46:44 PM
I will use jpct engine to create commercial product.
3D live warehouse visualisation.  It will be mainly used to visualize automatic HRL warehouses. It will be used for marketing purposes in company i work.

Thaks 4 this great engine. It really helped me so far.
#67
Bugs / child --> parent
August 01, 2006, 01:03:53 AM
I found a workaround, and now i translate objects seperatlly.
Thanks 4 help!
#68
Bugs / child --> parent
July 31, 2006, 06:02:00 PM
Hello

I'm using this code to retrieve current position of Object in world

  private SimpleVector getParentTrans(Object3D model)
  {
     Object3D[] parents = model.getParents();
     SimpleVector sv=new SimpleVector();
     for (int i = 0; i < parents.length; i++) {
        if (parents[i] != null) {
           sv.add(parents[i].getTranslation());
           sv.add(getParentTrans(parents[i]));
        }
     }
     return sv;
  }

  public SimpleVector getCurrPosition()
  {
     SimpleVector sv = model.getOrigin();
     sv.add(model.getTranslation());
     SimpleVector par = getParentTrans(model);
     System.out.println("PAR: "+par);
     sv.add(par);
     return sv;
  }


it looks like it works fine!!!


But when I unlink child from parent it look like it is not removed from array which is returned by method Object3D.getParents(). Is that a bug, or i made a mistake??

Regards