TangentBinormalGenerator warning

I’m getting these warnings. I know they’re only warnings but I’m wondering if there’s anything I could do to have them disappear.



[java]Oct 11, 2011 11:03:27 AM com.jme3.util.TangentBinormalGenerator processTriangleData

WARNING: Angle between tangents exceeds tolerance for vertex 868.

Oct 11, 2011 11:03:27 AM com.jme3.util.TangentBinormalGenerator processTriangleData

WARNING: Angle between tangents exceeds tolerance for vertex 869.

[/java]

Logger.getLogger(“com.jme3.util”).setLevel(Level.SEVERE); (or something like that?) Idk what exactly these warnings mean though, I guess its not just some model but created with games in mind?

1 Like

It’s only Spheres.



[java]

Sphere sphere = new Sphere(30, 30, radius);

sphere.setTextureMode(Sphere.TextureMode.Original);

TangentBinormalGenerator.generate(sphere);

[/java]

I re-enabled some of the warnings so I could debug what is happening with the generator. Note that its usually a good idea to generate the tangents offline as it can be time consuming

1 Like

What do you mean by offline? As in before it’s attached to a node?

madjack said:
What do you mean by offline? As in before it's attached to a node?

No, assuming you're using the J3O format, you should generate them and save them in the J3O file itself. I am pretty sure jMP has an option to do this
1 Like