×

Discussion Board

Search:

Type: Posts; User: MobileVisuals; Keyword(s):

Page 1 of 11 1 2 3 4

Search: Search took 0.04 seconds.

  1. Re: How to spin an object with both x and z-rotation in M3G?

    postRotate worked very well!
  2. Re: How to spin an object with both x and z-rotation in M3G?

    I can spin the object with both x and z-rotation now. It is a bit more complicated than this, because the object has 3 layers. The best thing would be if each layer could spin in the same z rotation,...
  3. Re: How to spin an object with both x and z-rotation in M3G?

    I got this to work now. This code fixed the problem:

    private final void animationInitialization3() {

    int duration = 4000;
    KeyframeSequence keyframes = new KeyframeSequence(3,...
  4. Re: How to get the current position from a M3G animation?

    I got this to work now! Thanks a lot for the advice. This is the code that solved the problem:

    class MyTimerTask extends TimerTask {

    public void run() {

    {

    ...
  5. Re: How to get the current position from a M3G animation?

    I see, that would be very useful! Which thread do you mean? Do you mean the thread, which is handled by the run method in the TimerTask class?
    Or do you mean that I should start an extra animation...
  6. Re: How to get the current position from a M3G animation?

    I see, but I want to calculate the alpha transparency values of objects based on their distance to the camera in real time. I have to set the keyframe values for KeyframeSequence in...
  7. Re: How to spin an object with both x and z-rotation in M3G?

    I tried with the normalize method, but the rotation doesn't look like I should. Do you know what I am doing wrong? This is my code for a combined 10 degree X and 360 degree Z rotation:

    int...
  8. Re: How to get the current position from a M3G animation?

    Thanks, I can get the current position now. I want to calculate the alpha transparency values of objects based on their distance to the camera in real time. I tried to make a AnimationTrack.ALPHA for...
  9. Re: How to spin an object with both x and z-rotation in M3G?

    I read the info about quaternions in your link, really interesting! I tried the approach in the code snippet, but the normalize method was not included. Is that method available also? So I should use...
  10. Re: How to spin an object with both x and z-rotation in M3G?

    Thanks for the link. I replaced my setKeyframe(0, 0,getRotationQuaternion
    calls with setKeyframe setKeyframe(0, 0, getXRoation(angle) and setKeyframe setKeyframe(0, 0, getYRoation(angle)

    The...
  11. How to get the current position from a M3G animation?

    I use AnimationController, AnimationTrack and KeyframeSequence to move the camera in 3D space. I need to get the current position, but I can't find any way to retrieve the current x,y and z values. I...
  12. How to spin an object with both x and z-rotation in M3G?

    I want to spin an object with both x and z-rotation in M3G. I get a good result when I implement this in OpenGL, but the combined rotation doesn't get right when I try to do this in M3G. The x...
  13. Re: Is it possible to change the positions in a MorphingMesh?

    I just wonder what you mean with "passing an appearance object to the current subMeshCount"?
  14. Is it possible to make a fast M3G animation with spotlights?

    I have read that spotlights are slow and heavy, so their use should be limited to where absolutely necessary. This is according to "Mobile 3D Graphics: with OpenGL ES and M3G" by Morgan Kaufmann. So...
  15. Replies
    13
    Views
    1,842

    Re: How to sort objects in real time?

    I know how to sort the objects now. The problem is that I need to fetch the current positions from a MorphingMesh and put them back into the MorphingMesh after they have been sorted. When I say...
  16. Re: Is it possible to change the positions in a MorphingMesh?

    Could you explain what you mean with passing an appearance object to the current subMeshCount?
  17. Re: Is it possible to change the positions in a MorphingMesh?

    Do you mean passing an appearance object to the current subMeshCount? How is it possible to access the subMeshCount?
  18. Re: Is it possible to change the positions in a MorphingMesh?

    I assume that it is not possible to change the positions in a MorphingMesh?
  19. Replies
    13
    Views
    1,842

    Re: How to sort objects in real time?

    It seems possible to find a method for sorting, but I need to fetch the current positions from a MorphingMesh, then sort them and then put them back into the MorphingMesh. Do you know if that is...
  20. Is it possible to change the positions in a MorphingMesh?

    I need to fetch the current positions from a MorphingMesh, then sort them and then put them back into the MorphingMesh. Is this possible? I can't find any suitable get or set method for this.
    ...
  21. Replies
    13
    Views
    1,842

    Re: How to sort objects in real time?

    Thanks, I got this quick sort to work. My problem is however a bit more complicated than this. This thread explains what I mean:
    ...
  22. How to sort the vertices in real time for a MorphingMesh?

    I am trying to port one of my space animations from OpenGL to M3G. The animation displays a morphing galaxy. I need to sort the vertices in every new frame, to get the Z-buffer to work like it...
  23. Replies
    13
    Views
    1,842

    Re: How to sort objects in real time?

    I checked out LWUIT, but it is too big. It is 750 kb and including it in my app would double it file size.

    I investigated eSWT, but it seems that it only can be used with GUI components. I am...
  24. Replies
    13
    Views
    1,842

    Re: How to sort objects in real time?

    So it is supported on Symbian 3, Series 60 5th edition and Series 60 3rd edition FP2?

    It is not supported on devices from LG and Samsung, which don't use Symbian?

    Is there some way to sort...
  25. Replies
    13
    Views
    1,842

    Re: How to sort objects in real time?

    Thanks, that sounds like a good idea. I tried to import org.eclipse.swt.widgets.Tree, but it wasn't possible. I couldn't find "Embedded Standard Widget Toolkit" among the optional packages. Do I have...
Results 1 to 25 of 267
Page 1 of 11 1 2 3 4