Hi,
At some moment, I do the following call:
rootNode.setLocalScale(new Vector3f(1, 1, exagValue));
Later, when I attach a new child object to the rootNode, the child object looks like the scale was applied twice to it. Is there a way to avoid this?
Thanks,
Dan
Are you setting the scale only on the root node? If you set the scale on the root node, and a child node of that root, it will be applied twice.
I only set it on the rootNode.
A node that is added later seems to have it applied twice. I don't set any local scale on this node.
Thanks,
Dan
Interesting. What if you explicitly set the scale of your child node to (1, 1, 1) after you attach it, just to try out. Does it still get scaled twice? Also, can you post a small snippet demonstrating what you see? Helps alot.
Still the same result. Please see the image below. I set the local scale to (1,1,0.5) and then added the texture on the bottom. It should cover the entire bottom side of the cube.
Thanks,
Dan