Flickering problem when using setLocalScale()


When I execute the following program I get a flickering white rectangle (kinda reminds me of a CRT in a very low refresh rate) :

/* Start /

package jmetutorial;

import java.nio.

import com.jme.util.;

import com.jme.app.

import com.jme.scene.shape.;

import com.jme.scene.

import com.jme.math.;

import com.jme.util.geom.BufferUtils;

public class Main extends SimpleGame {

    public static void main(String[] args) {

        Main app = new Main();




    protected void simpleInitGame() {

        Vector3f[] vertexes={

            new Vector3f(0,0,0),

            new Vector3f(1,0,0),

            new Vector3f(0,1,0),

            new Vector3f(1,1,0)


        int[] indexes={



        TriMesh square=new TriMesh("Square", BufferUtils.createFloatBuffer(vertexes), null, null,

            null, BufferUtils.createIntBuffer(indexes));

        // try to scale





End */

When I comment out "square.setLocalScale(10f);" the flickering stops.

I'm using Linux 32 bit, rendering using lwjgl (latest CVS), in a window (not full screen).

Got a 3d accelerated card with dri enabled.

If there is any other information I could provide that will be helpful, I'll be happy to look it up.

PS: I use to hang out in "irc://irc.freenode.irg/jme", if you wonna help me in a more "interactive" fashion …

You are not calling updateGeometricState on the Trimesh after scaling  :stuck_out_tongue:

am I suppose to ?

in the tutorials they dont do it …

In the tutorials they don't scale, do they?

In some tutorials they scale …

Here is a screencast of my problem, you can see that it starts flickering when I use setLocalScale().

You need the theora codec to view it.