playMaker

Author Topic: Draw Bézier Curve Action  (Read 14775 times)

holyfingers

  • Playmaker Newbie
  • *
  • Posts: 34
  • 3D-artist and fledgling Unity Dev.
    • View Profile
    • holyfingers.co.uk
Re: Draw Bézier Curve Action
« Reply #15 on: October 09, 2017, 05:21:53 AM »
Hey there, updated the two scripts to remove errors in Unity 2017.1, haven't got round to putting them back up on Ecosystem yet since Snipt dissappeared.

Also removed the Snipt links from previous post as they were redirecting to an unrelated Github repo!?

Updated Draw Curve and Draw Spline actions attached...
Twitter: @holyfingers

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15440
  • Official Playmaker Support
    • View Profile
Re: Draw Bézier Curve Action
« Reply #16 on: October 11, 2017, 04:05:46 AM »
Hi,

 thanks :) on the Ecosystem now!

 Bye,

 Jean

Groo Gadgets

  • Beta Group
  • Full Member
  • *
  • Posts: 144
    • View Profile
Re: Draw Bézier Curve Action
« Reply #17 on: October 11, 2017, 08:27:29 AM »
Very nice! Thanks for the share!   ;D

holyfingers

  • Playmaker Newbie
  • *
  • Posts: 34
  • 3D-artist and fledgling Unity Dev.
    • View Profile
    • holyfingers.co.uk
Re: Draw Bézier Curve Action
« Reply #18 on: November 07, 2017, 09:40:30 AM »
Another quick update, you can now specify a GameObject variable for the created lineRenderer...

Cheers,

Nick
Twitter: @holyfingers

omgitstri

  • Playmaker Newbie
  • *
  • Posts: 46
    • View Profile
    • My Prototypes
Re: Draw Bézier Curve Action
« Reply #19 on: November 07, 2017, 01:58:18 PM »
This is great! Thank you!
Tri Nguyen
Game Designer at Nvizzio Creations

craigz

  • Beta Group
  • Full Member
  • *
  • Posts: 213
    • View Profile
    • Haven Made
Re: Draw Bézier Curve Action
« Reply #20 on: September 01, 2019, 01:37:57 AM »
Just wanted to bump on this :D anyone else having issues with 2019 and these actions? Eeee! :D

Thanks,
craigz

holyfingers

  • Playmaker Newbie
  • *
  • Posts: 34
  • 3D-artist and fledgling Unity Dev.
    • View Profile
    • holyfingers.co.uk
Re: Draw Bézier Curve Action
« Reply #21 on: September 01, 2019, 08:12:03 AM »
Hey, it's been a long time since I looked at these but doing a quick test here using the scripts linked above, Unity 2019.1.14f1 and Playmaker 1.9.0.p18 and everything seems to be behaving? What kind of errors are you seeing?
Twitter: @holyfingers

Broken Stylus

  • Beta Group
  • Hero Member
  • *
  • Posts: 628
    • View Profile
Re: Draw Bézier Curve Action
« Reply #22 on: September 02, 2019, 05:45:38 AM »
Woah! That's a brutally good action, can't believe I missed it.
Any idea on how to create a progressive blur to smoothen the edges though?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15440
  • Official Playmaker Support
    • View Profile
Re: Draw Bézier Curve Action
« Reply #23 on: September 13, 2019, 02:02:47 AM »
Hi,

 Don't forget these actions are on the Ecosystem.

Bye,

 Jean

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15440
  • Official Playmaker Support
    • View Profile
Re: Draw Bézier Curve Action
« Reply #24 on: September 13, 2019, 02:06:24 AM »
Hi,

 as for the smoothness and anti aliasing, I think it's to do with using a graphic with alpha edges, but I never got good results myself, I resort to post processing antialiasing to solve the problem.

Bye,

 Jean

Krillan87

  • Beta Group
  • Full Member
  • *
  • Posts: 185
    • View Profile
Re: Draw Bézier Curve Action
« Reply #25 on: February 03, 2021, 04:13:34 AM »
Hi!

I've been playing around with these two actions but I can not make them work at all. I do not even see a line. Do I need to add a specific component to a game object or something? Like a line renderer or a Sprite shape controller?

I seems like I am missing something basic here...

Krillan87

  • Beta Group
  • Full Member
  • *
  • Posts: 185
    • View Profile
Re: Draw Bézier Curve Action
« Reply #26 on: February 03, 2021, 06:16:58 AM »
Hi!

I've been playing around with these two actions but I can not make them work at all. I do not even see a line. Do I need to add a specific component to a game object or something? Like a line renderer or a Sprite shape controller?

I seems like I am missing something basic here...

Okey I found the issue when I took a closer look at the original "Draw Line" action. With these custom actions you can not set the Sorting layer on the action, so the draw lines will automatically be on Default layer (with in my 2d game will not work out). Would be nice to update the action to include that we can define what sorting layer the Draw Curve should happen on!

Thanks!

Broken Stylus

  • Beta Group
  • Hero Member
  • *
  • Posts: 628
    • View Profile
Re: Draw Bézier Curve Action
« Reply #27 on: February 03, 2021, 11:45:19 AM »
Perhaps using this?