Render some lines based on entity data?

So I have some entities that contain a list of clockwise wound points which define a series of edges, or lines. Is there an ECS way I can render these?

Looks like best I can tell the Hybrid Renderer only works with mesh objects. Guess I need to pop out of the ECS ecosystem for this.

I will need tackle the same problem soon, currently I’m just using a gizmo as a temp solution

I think what I’m going to do for now at least is have a System that converts certain entities into GameObjects with the LineRenderer component and then just use that. Honestly right now its more about visualization than anything. I need a visual way to verify that my complex dance of systems and entities has produced the expected result :slight_smile:

I do have something like this GitHub - 5argon/ECSLineRenderer: ECS approach to render a line. though I have not use it for a long so I am not sure would it work well with more complex v0.4 project … but recently someone tagged me on Twitter using it as a debugger x.com

I have just check it and edit code for 0.4, but if it doesn’t work you can try going back 1 commit then try again.

1 Like

That was me! :smile: I’m using it with entities 0.4, but since I copied it in 0.2, I am not sure how it deviated since then. Let me know if I can help with a 0.4 migration.

Also, I am considering using it for tracers, not just debugging, since so far it works well.

1 Like

Wow, I thought I came across the name somewhere!

I add just SubScene conv. support for 0.4 and some ECB.eq overload optimization + put systems in groups and it appears to work so far… the billboard rotation is still not looking right however.

1 Like

Fame, at last! :smile:

If I don’t move the camera it correctly is rotated towards that camera (and the camera is not moved in my tests).

I’ll update with the latest code asap and will report back if there are issues (update: there are no issues).

Thank you for this useful library! :slight_smile: