Alternative to Line Renderer?

Hi,

Does anyone know a good alternative to Line Renderer? (mobile friendly)
I’m using it to show which direction (and amount of force) a ball will be shot in a 3d space, but the line seems to rotate as it moves around (the docs also says it would behave this way). I want it to be “flat” and move according to the ground under it.

It makes the whole thing look kind of weird :[

Any help would be appreciated.

  • Lars

http://www.starscenesoftware.com/vectrosity.html

–Eric

Eric, how many separate Line segments can you update every frame with your system on an iPad 2 while maintaining 60 fps?

Well on Physynth (which proudly uses Vectrosity) it’s tonnes and tonnes and tonnes. On iPad 1. On iPad2, I expect you can have up to 20,000 or so if you’re not recalculating. But if you’re recalculating you’ll have to do tests.

Vectrosity scales well - you can choose to recalculate the lines or not, depending on what your intended use for it is. In my case I calculate it once then move the internal gameobject around instead.

In any case on an iPad2, your bottlenecks are still going to be in the shader you’re using and how many overlapping lines are slowing down the the device with fill rate usually, and the iPad2 is really good at fill rate.

Thanks Eric!
I´ll check it out.

You mean “thanks hippocoder”. :slight_smile: I don’t have an iPad 2 myself, but that sounds right.

–Eric

Well, sure. He answered someone else, but it was still very useful info!

Thanks everybody! :slight_smile: