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.

Messages - eye1

Pages: 1 2 3 [4] 5
Support / How to rescale a object3D to a desired size.
« on: December 11, 2006, 04:59:55 pm »
I still haven't found the thread :(

Support / show selected object
« on: December 11, 2006, 04:52:41 pm »
create really thin object and set transparency to some percent. I think that may work

Support / JPCT eats so much CPU and Memory
« on: December 11, 2006, 04:49:33 pm »
I use it like this

Code: [Select]

       //fps.. like 25
      int sleepTime = 1000 / fps;
      long first = System.currentTimeMillis();
      long second = 0;
      long actualSleepTime = 0;
      while (bRender) {
         //do some stuff in world here
         second = System.currentTimeMillis();
         actualSleepTime = sleepTime - (second - first);
         if (actualSleepTime < 0) {
            actualSleepTime = 0;
         try {
         catch (InterruptedException ie) {}

Support / Object3D.getTransformedCenter().x returns NaN
« on: December 11, 2006, 01:34:31 pm »

I've got this far that now I know that first somehow I call Object3D.translate(Infinity,,).

X/0 is Infinity... anything else?

Support / JPCT eats so much CPU and Memory
« on: December 11, 2006, 10:34:25 am »
Use sleep between renderings. I do rendering 25 times per minute and it only uses 2,3 percent of CPU (opengl mode)

Support / Object3D.getTransformedCenter().x returns NaN
« on: December 08, 2006, 05:20:39 pm »
Thanks Mizuki.

For now i check every translation for NaN value and replace it with 0. Hope it will work!

The problem also is that this happen time to time, like once twice per day. So it is even harder for me to debug it. The thing i'm working is some live warehouse visualisation which reads data from database and interpolates object movements in real time as accurate as it can.

Support / Object3D.getTransformedCenter().x returns NaN
« on: December 08, 2006, 01:02:49 pm »
Hello again

Since i have NaN in translationMatrix. I think I probably put it inside with Method Object3D.translate.. since I never manipulate non of the Matrixes directlly. Can anyone help me and tell me what kind of calculations returns NaN value. I think X/0 does.. anything else? I checked my code, X/0 could not happen.

Support / Object3D.getTransformedCenter().x returns NaN
« on: December 07, 2006, 06:02:05 pm »

I can't really do much of a debug since I don't have a source, but i think that probably transformed center is calculated with those 3 matrixes. One has a Nan in it and I'm not shure how it got there! Any Ideas?


Support / Object3D.getTransformedCenter().x returns NaN
« on: December 07, 2006, 05:45:31 pm »

I'm transacting, adding, removing.. objects in the World and sometimes I get value NaN from getTransformedCenter().x method... Why does this happen? Does anyone know what am I doing wrong?

Kind Regards, Ivan

Support / How to rescale a object3D to a desired size.
« on: October 04, 2006, 04:45:23 pm »

Is it possible to scale object only by one koordinate x,y,z


Bugs / Object3d.cloneObject() doesn't copy Animation
« on: October 04, 2006, 04:09:22 pm »

Can you tell me what is actually cloned with call cloneObject?

Octree is??

Support / SimpleVector in collection!!!
« on: September 26, 2006, 10:04:38 pm »
Thank you Egon!

What a silly mistake  :oops:  :oops:

And i was reducing nr. of threads in my application, using only synchronized collections, synchronizing iterators and in the end it was so simple.   :oops:  :oops: . And i found the place where i was changing SimpleVector.

Thanks again!!

Support / SimpleVector in collection!!!
« on: September 26, 2006, 01:08:22 am »

I store few SimpleVectors in collection class Hashtable like that

Code: [Select]
protected Hashtable places = new Hashtable();

   public void updateKoordinates()
         SimpleVector place = part.getOrigin();
         place.add(new SimpleVector(-50, -55, 80));
         places.put("0001", place);
         place = part.getOrigin();
         place.add(new SimpleVector(-50, -55, -420));
         places.put("0002", place);
         place = part.getOrigin();
         place.add(new SimpleVector( 50, -55, -420));
         places.put("0003", place);
         place = part.getOrigin();
         place.add(new SimpleVector( 50, -55, 80));
         places.put("0004", place);

   public SimpleVector placePos(String placeNr)
      return (SimpleVector)places.get(placeNr);

The method updateKoordinates() is called only once.
After some time of runing my application and calling method placePos(placeNr)... SimpleVector cordinates are changed. Anyone has idea what could cause that??


Bugs / child --> parent
« on: August 10, 2006, 01:56:22 pm »
Hi Egon.

Tnx 4 your help, I wasn't working for a week on that. So I apologise for late respond.

Here is original post

If i have two 3d objects (actually 4, I'll get to that latter)

First one O1, is just one simple object.

While second one is actually 3 simple objects (Part1, Part2, Part3) which are linked by parent to child connection, like this
Code: [Select]


So I have three level parent to child connection deepth here. I Hope i'm not doing something wrong here.

Than, when I rotate Part1 for 180 degrees, all 3 parts (1,2,3) are rotateted , that is correct. Than I rotate an O1 object also by 180 degrees.

And than when i try to move those objects, my expectations are that if I move them like this:

Code: [Select]


They should move in same direction. But they don't. O1 is moved by absolute (world) axis. While Part(s) are moved by they own axis. In that specific case, they move just the opposite way <--->.

Best regards and by the way I really love your engine, it helped me so much this far.

Pages: 1 2 3 [4] 5