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 - Dinin

Pages: 1 [2]
16
Support / Config.lightMul ?
« on: July 06, 2012, 02:31:59 pm »
Hi !

I can't find Config.lightMul. Isnt it available in jPCT-AE or where can i find it ?


Thanks and Greets
Dinin

17
Support / Re: translate child object on global axis
« on: May 23, 2012, 06:44:41 pm »
yes ... you're great. Exactly what i was looking for.
mthx.

18
Support / Re: translate child object on global axis
« on: May 23, 2012, 05:32:40 pm »
i have a childObject attached to a parentObject.
Now i do a:
Code: [Select]
parentObject.translate(10,0,0);
parentObject.rotateZ(Math.Pi/4);

Now i want to translate the childObject to the world position 60,0,0.
But when i do a:
Code: [Select]
childObject.translate(50,0,0);the childobject is moved depending on the rotation of the parentObject.
So i want to convert the
Code: [Select]
childObject.translate(50,0,0);so that the world position is at 60,0,0

19
Support / translate child object on global axis
« on: May 23, 2012, 07:45:20 am »
Hi !

I want to translate a childobject f.e. 50 units in global x axis.
How can i convert this to the translation of the child object, because translation of child object is done on parents coordinate system.

Thanks and greets
Dinin

20
Support / Re: setOrientation of child Objects
« on: May 19, 2012, 09:13:39 pm »
Because it should 'follow' this object.
So that the translations of the parentobject affect also this object and the child object remains exactly on this position 'on' the parentobject.

btw. is it possible to addChild without changing the translation of the childobject ?

21
Support / setOrientation of child Objects
« on: May 19, 2012, 07:39:50 pm »
Hi !

I'm trying to make a Object3D always facing away from Camera.
So i do:
Code: [Select]
object.SetOrientation(camera.getDirection(), camera.getUpVector())
this works fine, but when i add this object as child to a parentobject this doesn't work any more.

Any suggestions ?

thx and greeds
Dinin

22
Support / Re: Rotate SimpleVector around arbitrary axis
« on: May 19, 2012, 07:35:02 pm »
 :) thanks for help.

23
Support / Rotate SimpleVector around arbitrary axis
« on: May 09, 2012, 03:10:57 pm »
Hi !

I want to rotate a SimpleVector around a arbitrary axis.
Matrix and Object3D has already a Rotate with a parameter SimpleVector for a arbitrary axis, but SimpleVector not.
So i tried to get Rotationmatrix from the Vector to rotate, rotate the matrix around my axis and then ...

SimpleVector has no SetRotationMatrix and so i dont know how to get the rotationmatrix back to SimpleVector.
Perhaps i can use SimpleVector.Rotate(Matrix), but for that i need a 'differenz Matrix' of the old and new (after Rotation of matrix) Matrix, and i dont know how to get.
A simple minus of the 2 Matrix did not work.

Any suggestions how to solve this ?

Thanks and greeds
Dinin

24
Support / Re: Performance Issues
« on: April 13, 2012, 11:48:39 pm »
yes, compile (true,true) did it.
Now it run's much,much faster.

mthx for your help!

25
Support / Re: Performance Issues
« on: April 12, 2012, 01:01:40 am »
yes, this objects are animated.
how to i set static uv coordinates ?
And what is the diffenenz (sorry i'm a newbie in this sector)?

26
Support / Performance Issues
« on: April 11, 2012, 07:22:18 pm »
Hi !

I'm rendering objects with 450 faces and textures (64x64 pix).
The objects are serialized with reduced = true but without texture assigned because textures are set dynamical in runtime.
Now when amount of objects > 60 im running into performance problems (Galaxy SII).
So i looked with traceview and there i see that much cpu time goes to:
- com/threed/jpct/CompiledInstance.fill (25%)
        - com/threed/jpct/GenericContainer.add (31%)
        - java/nio/ShortToByteBufferAdapter.put (20%)

Do you have any idea what i can do to make this faster ?

thx and greets
Dinin

27
Support / Re: setOrientation enlarges Object
« on: February 16, 2012, 09:12:23 pm »
yes ... now it works  :D.
Thanks for this quick help!

28
Support / setOrientation enlarges Object
« on: February 16, 2012, 08:43:28 pm »
Hy !

I try to move objects around and set their orientation to view Direction.

So i do a
Code: [Select]
object3D.translate(translateVector);and a
Code: [Select]
object3D.setOrientation(ViewDirectionVector, new SimpleVector(0,0,1f));But when i make setOrientation the object is enlarged (about 10 times larger).
This also happens if i set Orientation with fixed Vectors like:
Code: [Select]
object3D.setOrientation(new SimpleVector(1f,0,0), new SimpleVector(0,1f,0));
Also scaling the Object has no effect on this object anymore.

What i'm doing wrong ?

Thanks and greets
Dinin

Pages: 1 [2]