jme3 line segments?

Hi everybody,

I'm trying to draw line segments of variable width in jme3.  I've noticed that the first-class line segment object is gone from the scene package in jme3.  Here's what I've done so far:

  1. Just used a mesh set to line mode.  Unfortunately I can't figure out a way to make a call to glLineWidth or an equivalent, so we're stuck at basically 1 pixel (or the default) on the lines.

  2. Rolled my own variable width line using triangle strip mode.  This seems a little hacky and has some nonuniform/fugly display issues.

    Can anybody think of a better way?  Is the old line class buried somewhere I can't find in jme3?  Specifically what I'm trying to draw are lines attaching multiple particles in space that need to get updated pretty darn often.  Recalculating big meshes on every update would be kinda untenable.


I guess it would be rather easy to just add a Mesh.setLineWidth() method, no? Or is there something else I am missing?

This function is still missing.

Also, can't find Line in scene package of jme3…  :expressionless:

You use the "Mesh" class to render lines.

With the latest SVN, you can now specify line width for mesh.