playMaker

Author Topic: Animate Line Renderer point/vertex/element positions?  (Read 6115 times)

Drakon

  • Playmaker Newbie
  • *
  • Posts: 21
Animate Line Renderer point/vertex/element positions?
« on: September 10, 2011, 10:49:50 AM »
Hi all is it possible to get/set Line Renderer's element/vertex/point positions with Get/Set Property? I'd like to do a 'connect the dots' kind of effect, where the dots are also animatable. Any advice much appreciated.

Drakon
« Last Edit: September 11, 2011, 06:34:23 AM by Drakon »

Andrew.Lukasik

  • Full Member
  • ***
  • Posts: 134
    • my twitter @andrewlukasik
Re: Animate Line Renderer point/vertex/element positions?
« Reply #1 on: March 27, 2012, 12:35:00 PM »
+1
I want to work with with Line Renderer too

(It turns out other needs that too)

Can someone help in this subject? Is it even possible / maybe it needs supportin script?
« Last Edit: March 27, 2012, 12:40:31 PM by Andrew_Raphael_Lukasik »

mkjackson

  • Playmaker Newbie
  • *
  • Posts: 1
Re: Animate Line Renderer point/vertex/element positions?
« Reply #2 on: December 20, 2012, 07:46:25 AM »
+1 Same here... access plz!

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Animate Line Renderer point/vertex/element positions?
« Reply #3 on: December 21, 2012, 04:06:00 AM »
Hi,

 Vectrosity is the way to go, and I created a bridge for it:

https://hutonggames.fogbugz.com/default.asp?W948

Vectrosity can do dot to dot lines and such.

bye,

 Jean

Drakon

  • Playmaker Newbie
  • *
  • Posts: 21
Re: Animate Line Renderer point/vertex/element positions?
« Reply #4 on: May 23, 2013, 11:43:36 AM »
Super Amazing! Any chance at all of a quick How To or a youtube clip please?
Thank you!

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Animate Line Renderer point/vertex/element positions?
« Reply #5 on: May 24, 2013, 06:56:01 AM »
Hi,

 Ok, did an working sample actually.

 I had to create a new cutsomt action to keep texture scaled properly, so I included it in that package. It will be available in the next update of Vectrosity on the wiki.

It's very simple, the trick is simply to create a dot material, the line definition itself doesn't change at all ( apart from the scaling of the texture)

bye,

 Jean

Drakon

  • Playmaker Newbie
  • *
  • Posts: 21
Re: Animate Line Renderer point/vertex/element positions?
« Reply #6 on: September 20, 2013, 07:32:08 AM »
Is there an example scene please? I cannot figure out how to use it - what is Vector Object?
Thanks

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Animate Line Renderer point/vertex/element positions?
« Reply #7 on: September 20, 2013, 08:07:02 AM »
Hi,

 There is a demo in the package itself, under "PlayMaker Vectrosity/Demo" and you can also study the demo on the previous post.

 A Vector Object is the entity that store the definition of the vectrosity line or shape. You should not really care about that right now. Instead, you only need to use the various Vectrosity actions provided.

in the action browser, search for the "vectrosity" category.

Bye,

 Jean



Drakon

  • Playmaker Newbie
  • *
  • Posts: 21
Re: Animate Line Renderer point/vertex/element positions?
« Reply #8 on: September 20, 2013, 02:49:17 PM »
Hi,

thank you very much, just found the demos. Am trying to create a 3d Line - one end attatched to Hud button, the other to an object in scene. There's no direct equvalent to Draw Line action with same material properties built in it seems. I'll try to work it out slowly.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Animate Line Renderer point/vertex/element positions?
« Reply #9 on: September 23, 2013, 01:45:55 AM »
Hi,

 no 3d line support right now. But you can still achieve what you alooking for by finding the screen position of that gameObject, and then draw the line in 2d.

 Like the example on the dotted line, it follows the mouse, so simply replace that mouse vector position with the gameobject screen position.

bye,

 Jean