Playmaker Forum

PlayMaker News => General Discussion => Topic started by: jeanfabre on May 15, 2012, 06:08:37 PM

Title: Vectrosity on its way :) [NOW AVAILABLE]
Post by: jeanfabre on May 15, 2012, 06:08:37 PM
Hello Everyone,

 Just to tease you :) I am currently working on porting the fantastic Vectrosity system to playmaker.

[EDIT] now available: https://hutonggames.fogbugz.com/default.asp?W948 (https://hutonggames.fogbugz.com/default.asp?W948)

 So if you have requests, or early questions, do not hesitate, I am still at the very early stage and Vectrosity being such a rich Api, I will have to make some choices as to how to cover it in a sensible manner.


http://forum.unity3d.com/threads/49941-Vectrosity-fast-and-easy-line-drawing?p=923830&viewfull=1#post923830 (http://forum.unity3d.com/threads/49941-Vectrosity-fast-and-easy-line-drawing?p=923830&viewfull=1#post923830)

 Bye,

 Jean
Title: Re: Vectrosity on its way :)
Post by: Mark_T on May 15, 2012, 09:08:14 PM
hehe, nice. :)

I was thinking if it`ll be possible to have a halo, like a glow effect? maybe using sprites, or small textures?
I don`t know anything about Vectrocity, just thinking out loud. :D

Many thanks for this, Jean.
And not only.
Title: Re: Vectrosity on its way :)
Post by: jeanfabre on May 16, 2012, 01:16:01 AM
Hi Mark_T

 Vectrosity lines can be set with textures, so for glowing, you would create a thicker line with faded egdes for example.

 Currently my biggest concern is to find the right balance between all the various methods and features, that are difficult to expose in PLayMaker, So I need to validate few ideas, else vectrosity will not be convenient to work with within PLayMaker environment, the most noticeable issue if the fact that the basic building block for a vector is not a component, so I can't let the user store it in a FsmObject, so I had to come up with a proxy that I attached when I create a vector. that works well so far, but need to test all possible cases.

Bye,

 Jean
Title: Re: Vectrosity on its way :)
Post by: jeanfabre on June 13, 2012, 05:30:03 AM
Hi,

Here we go:

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

It's a very early build. There are a lot of technical brainstorming to do in order to expose  all the wonders of Vectrosity, not an easy task as the api has so many different signatures and flexibility, that it makes it very hard to condense into actions with their restricted ui interface.

Feedback and use case of what you want to do with Vectrosity most welcome.

Bye,

Jean
Title: Re: Vectrosity on its way :) [NOW AVAILABLE]
Post by: derkoi on August 29, 2013, 05:02:18 AM
Any chance of setting 3d line support please?
Title: Re: Vectrosity on its way :) [NOW AVAILABLE]
Post by: jeanfabre on September 09, 2013, 08:48:52 AM
sigh...

I need to find the time to do this

Bye,

 Jean
Title: Re: Vectrosity on its way :) [NOW AVAILABLE]
Post by: Lane on September 09, 2013, 08:54:02 AM
Can vectrosity do flat text in 3d space?

RageSpline is lacking text abilities, and I need a solution to put text labels in 3d space and be able to update them during runtime with string or float variable changes.
Title: Re: Vectrosity on its way :) [NOW AVAILABLE]
Post by: jeanfabre on September 10, 2013, 02:57:55 AM
Hi,

 I doubt this will live up to your expectations. Vectrosity can do 3d text, but it will be wired, so you only get a basics outline of the text.

What's wrong with Unity 3d text?

Bye,


 Jean
Title: Re: Vectrosity on its way :) [NOW AVAILABLE]
Post by: Lane on September 10, 2013, 09:08:33 AM
I didn't know Unity had 3d text built in.

Two seconds looking at the drop down menu I find it staring me in the face! I'll check it out ;)
Title: Re: Vectrosity on its way :) [NOW AVAILABLE]
Post by: parallel on September 10, 2013, 09:55:25 AM
But we're still missing 3d line support , bump :) 
Title: Re: Vectrosity on its way :) [NOW AVAILABLE]
Post by: jeanfabre on September 13, 2013, 02:47:02 AM
Hi,

 I know... :-\ Don't give up, one day, I'll find the time to do this!!

Bye,

 Jean
Title: Re: Vectrosity on its way :) [NOW AVAILABLE]
Post by: Alatriste on January 07, 2014, 11:48:08 PM
Hi there,

I'm trying to use the vectrosity actions in my project and so far I didn't succeed. (I'm quite new in Playmaker yet, so most probably I missing something)

Basically I want to get the hand drawing effect you can see in the vectrosity demo (http://starscenesoftware.com/vectrositydemo7.html (http://starscenesoftware.com/vectrositydemo7.html)). This is what I'm doing:

1) I imported the vectrosity DLL and the custom actions for playMaker to use Vectrosity.
2) I created 3 different objects: I) a game object "VectrosityControl", with a BoxCollider2D component and the FSM which controls the drawing actions., II) a prefab sprite call "Brush" with III) a material-shader (Particles/Additive).
3) The FSM "VectrosityControl". It's waiting for the left button mouse to be clicked. Then it send an event call "Start Drawing".
4) The "Start Drawing" event contains the following actions:
- Mouse Pick 2D where I storage a vector2 var "Coord" for the "Store Point" field.
- Vectrosity Vector2 Line. (screenshot attached) where I setup the rest of parameters. (I'm not convinced about the var in field2, as that value is never storaged/updated... I don't know what's suppose to go there to be honest.)



After this, I managed to see the vector line appear, although not with the effect that I want. Besides, in the Game Screen I can see the line appearing from the 0,0 coordinates instead of from the place where the mouse has been pressed down.

Many questions, but I hope someone can help me here.
Title: Re: Vectrosity on its way :) [NOW AVAILABLE]
Post by: Alatriste on January 10, 2014, 04:42:14 AM
Ok, So I finally managed to work around and make Vectrosity work in my project in the easier way: loading the draw_mouse example and copying the JS code into my own project.

 I still have to sort out some problems as the line being painted is not where I want it, but what I'd like to ask now is if someone has experimented detecting the collision with Vectrosity elements. I read the Vectrosity official thread in the forum and it seems rather complicated. (again).

Has anybody tried this? Is it even possible within Playmaker?
Title: Re: Vectrosity on its way :) [NOW AVAILABLE]
Post by: jeanfabre on January 10, 2014, 05:12:38 AM
Hi,

 I have no experience with vectrosity based collisions, I would concur that it will be hard for sure :)

Do you expect any kind of shapes or even user custom shapes?

bye,

 Jean
Title: Re: Vectrosity on its way :) [NOW AVAILABLE]
Post by: Alatriste on January 10, 2014, 11:17:33 AM
Actually not. Want I want to achieve is just the player drawing a line and that this line can collide with other objects. I start to believe that I might have to use another approach instead of trying with Vectrosity. I'll post my findings... in a near future, I hope. :)
Title: Re: Vectrosity on its way :) [NOW AVAILABLE]
Post by: jeanfabre on January 13, 2014, 06:02:41 AM
Hi,

 Both can work together, but It will be something involving to develop for sure. I would run this past Eric, the author of Vectrosity, he will know exactly how to tackle this.

I would study also Rage Spline, I think it has more in store to potentially achieve drawings custom physics objects.

 Bye,

 Jean
Title: Re: Vectrosity on its way :) [NOW AVAILABLE]
Post by: MrShoestore on April 01, 2014, 10:47:00 AM
I'm trying to setup using the Vectrosity Custom Actions, but when i bring them into my project I get this error

Quote
Assets/PlayMaker Vectrosity/Actions/VectrosityDrawWithTransform.cs(50,39): error CS1061: Type `Vectrosity.VectorLine' does not contain a definition for `drawTransform' and no extension method `drawTransform' of type `Vectrosity.VectorLine' could be found (are you missing a using directive or an assembly reference?)

I have both playmaker and vectrosity imported and updated to the latest versions.  what am I doing that I'm getting this error when i first load in the custom action package?

EDIT: Ignore me… having a case of the Mondays or something.  I imported the vectrosity package, but not the actual dll
Title: Re: Vectrosity on its way :) [NOW AVAILABLE]
Post by: FritsLyn on July 02, 2014, 09:05:27 AM
When is / will this work be done? (Bump/Shout)

From https://hutonggames.fogbugz.com/default.asp?W948:
Currently supports only VectorLines. Vectrosity can draw points too, but I will make this available at a later date ( please shout to get it done quicker :) )

This is not in the Eco system!

Either it is not possible, or it is not very well documented how to do a simple X1 Y1 Z1 -> X2 Y2 Z2 line - the demo file is not including any 3D as far as I can tell..?

EDIT:

I know theres the 'Draw 3D ray' - but that is only a Color (and I cannot get it to work btw - nothing appears) - but how about some lasers or something like this in 3D:

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

The problem here is that Unity Line renderer is not possible to handle from PlayMaker, and for that reason you are pointing to Vectrocity, but that is not supporting the Line renderer 3D functionality, so .. BUMP!!!
Title: Re: Vectrosity on its way :) [NOW AVAILABLE]
Post by: jeanfabre on July 07, 2014, 10:19:27 AM
Hi,

 Ok, I found the time to update Vectrosity, Sorry for the wait... :)

Please download from the wiki (https://hutonggames.fogbugz.com/default.asp?W948).

 so, now you have the possibility to draw in 3d using "VectrosityVector3Line", so everything work as before only that you now can supply 3d points, draw in actual 3d or not ( check uncheck "DrawIn3d" as well as autoDraw to respect perspective if drawing in real 3d).

 Let me know if you have everything, but basically this is it, now within PlayMaker, 3d lines are possible.

 Bye,

 Jean
Title: Re: Vectrosity on its way :) [NOW AVAILABLE]
Post by: MS80 on July 08, 2014, 05:05:42 AM
Great news! Works just fine!  ;D

One more thing: I think it is not possible to create dotted lines (like in vectrosity "Curve" demo) with playmaker actions?? Could you please integrate this handy feature, I absolutly need it!

PS: Do you plan to integrate actions for building spline curves?
Title: Re: Vectrosity on its way :) [NOW AVAILABLE]
Post by: MS80 on July 12, 2014, 08:25:52 PM
... added a few lines of code with following functions, works like expected:

- continiuos texture (texture stretch over whole line)
- texture scale (uniform scaled texture, 0=default)
- texture offset (to animate flow direction)
- cap length (adds length to each line element)

(http://dashed_dotted_lines.jpg)
Title: Re: Vectrosity on its way :) [NOW AVAILABLE]
Post by: jeanfabre on July 14, 2014, 07:22:23 AM
Hi,

 thanks for this, it's updated on the wiki ( I modified it a bit to be non obtrusive and backward compatible). I also made an entry on the RSS (http://feeds.feedburner.com/PlaymakerEcosystem).

 Bye,

 Jean
Title: Re: Vectrosity on its way :) [NOW AVAILABLE]
Post by: MS80 on July 14, 2014, 08:42:02 AM
Thanks!

You could also add these lines to the "VectrosityVector3Line" action, runs equal to vector2Line! Sadly it seems "cap length" does not work with Vector3Line, do you have any idea why??

Bye,
Martin
Title: Re: Vectrosity on its way :) [NOW AVAILABLE]
Post by: jeanfabre on July 16, 2014, 07:11:22 AM
Hi,

 bump me on this in a week or two, I'll study that more carefully.

 Bye,

 Jean
Title: Re: Vectrosity on its way :) [NOW AVAILABLE]
Post by: Khoa1994 on July 17, 2014, 04:39:03 AM
I plan on buying Vectrosity but not sure whether it can do the following. In my 3D games, I want to draw a circle on 1 surface of a cube. The circle mark the effective area of a bomb. Can I do that with the current set of PlayMaker actions for Vectrosity? The description of the PlayMaker actions package for Vectrosity said that: “Currently supports only drawing in 2d”. Does that mean I can draw lines on 2D planes in 3D games or does that mean I can only draw lines in 2D games?
Title: Re: Vectrosity on its way :) [NOW AVAILABLE]
Post by: jeanfabre on July 17, 2014, 09:18:09 AM
Hi,

 Tuff... :)

 You can draw a circle if you express each points using the action VectrosityVector3Line, so yes, you can, but the MakeCircle is not available in 3d as far as I can see and test so you can't just tell the center radius and number of segments if you want that circle in 3d.

So I would contact first Eric5h5 and ask him if the function MakeCircle ( and other Makexxx) are somehow available to use with .Draw3D(), if there is working example, then I can turn it into PlayMaker actions.

 Typically, you can pre compute them yourself with your calculator, and then inject them points manually.

The trick after that small hurdle ( it's manageable, get back to me if you struggle with the math), is to store that line in the "VectorObject" property and then use the action "Vectrosity Draw With Transform" which is going to make the shape you have define stick to the transform you point to, and so your vectrosity 3dline will be very much a "child" of your transform".

 Bye,

 Jean

Bye,

 Jean
Title: Re: Vectrosity on its way :) [NOW AVAILABLE]
Post by: Khoa1994 on July 17, 2014, 10:29:32 AM
I'll wait for your 3D MakeCircle action. Drawing a 3D circle using VectrosityVector3Line seems like a lot of work and I still have many things to work on for my project.
Title: Re: Vectrosity on its way :) [NOW AVAILABLE]
Post by: Khoa1994 on July 18, 2014, 06:02:56 PM
Hi jeanfabre,
Have you written the MakeCircle action for 3D?
Title: Re: Vectrosity on its way :) [NOW AVAILABLE]
Post by: jeanfabre on July 21, 2014, 07:58:56 AM
Hi,

 no, not yet unfortunatly, you'll need to give me at least a good week. Then please bump me if I haven't doen it then.

 Bye,

 Jean
Title: Re: Vectrosity on its way :) [NOW AVAILABLE]
Post by: Khoa1994 on July 27, 2014, 09:15:20 PM
Hi jeanfabre,
Have you written the MakeCircle action for 3D? I need this action in the next couple days.
Title: Re: Vectrosity on its way :) [NOW AVAILABLE]
Post by: Khoa1994 on July 29, 2014, 06:43:36 PM
Hi jeabfabre,
Tomorrow, I need the MakeCircle Action for 3D. Are you still working on it?
Title: Re: Vectrosity on its way :) [NOW AVAILABLE]
Post by: jeanfabre on July 31, 2014, 08:20:50 AM
Hi,

 ok, I made that action, together with a sample to show how to implement it so that it follows a transform.

 redownload on the wiki please:

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

 Bye,

 Jean
Title: Re: Vectrosity on its way :) [NOW AVAILABLE]
Post by: Khoa1994 on July 31, 2014, 04:33:29 PM
Thanks.
Title: Re: Vectrosity on its way :) [NOW AVAILABLE]
Post by: MS80 on July 31, 2014, 05:52:24 PM
That's great news, will try it soon!

Besides: bumping something up!  ;D

Hi,

 bump me on this in a week or two, I'll study that more carefully.

 Bye,

 Jean
Title: Re: Vectrosity on its way :) [NOW AVAILABLE]
Post by: jeanfabre on August 01, 2014, 01:21:58 AM
Hi,

 bump what? can you reference the post? thanks.

 Bye,

 Jean
Title: Re: Vectrosity on its way :) [NOW AVAILABLE]
Post by: MS80 on August 01, 2014, 04:24:33 AM
Sure, it was about adding features (texture scale, offset, cap length etc.) to Vector3Line, too:

You could also add these lines to the "VectrosityVector3Line" action, runs equal to vector2Line! Sadly it seems "cap length" does not work with Vector3Line, do you have any idea why??

Thanks!
Title: Re: Vectrosity on its way :) [NOW AVAILABLE]
Post by: jeanfabre on August 01, 2014, 05:28:21 AM
Hi,

 ok, I have added a task entry for this, thanks for reminding me of that.

https://trello.com/c/NuxdUftE/6-vectrosity

bye,

 Jean
Title: Re: Vectrosity on its way :) [NOW AVAILABLE]
Post by: Khoa1994 on August 01, 2014, 10:54:08 AM
After importing Vectrosity, Vectrosity PlayMaker and Vectrosity PlayMaker demo scene, I got this error:
Assets/PlayMaker Vectrosity/Includes/VectrosityProxy.cs(6,7): error CS0246: The type or namespace name `Vectrosity' could not be found. Are you missing a using directive or an assembly reference?

Now my game can't run anymore.
Title: Re: Vectrosity on its way :) [NOW AVAILABLE]
Post by: jeanfabre on August 01, 2014, 02:57:06 PM
Hi,

 What version of Unity and Vectrosity do you have? and have you downloaded the latest package from the wiki?

Bye,

 Jean
Title: Re: Vectrosity on its way :) [NOW AVAILABLE]
Post by: MS80 on August 01, 2014, 03:08:35 PM
You likely forgot to extract "Vectrosity_Unity4_3" package after importing! So Vectrosity.dll cannot be found. You can find the packages directly in the Vectrosity folder after importing...
Title: Re: Vectrosity on its way :) [NOW AVAILABLE]
Post by: Tobeee on February 18, 2015, 07:06:05 PM
Will there be a port for vectrosity 4?
Title: Re: Vectrosity on its way :) [NOW AVAILABLE]
Post by: jeanfabre on February 19, 2015, 04:26:16 AM
Hi,

 Eventually yes. Do you have a specific request in mind?

 I updated the trello task, please up vote to show interest.

 https://trello.com/c/NuxdUftE/6-vectrosity

 Bye,

 Jean
Title: Re: Vectrosity on its way :) [NOW AVAILABLE]
Post by: elvis75k on March 11, 2015, 11:26:25 AM
Voted for an update on v4 :)
Title: Re: Vectrosity on its way :) [NOW AVAILABLE]
Post by: elvis75k on March 20, 2015, 04:54:12 AM
Bump! Really need this :/
Title: Re: Vectrosity on its way :) [NOW AVAILABLE]
Post by: jeanfabre on March 23, 2015, 02:02:50 AM
Hi,

 yeah, sorry about that, I have difficulties to catch up with all these addons!

 Bye,

 Jean
Title: Re: Vectrosity on its way :) [NOW AVAILABLE]
Post by: sebaslive on April 07, 2015, 10:04:26 AM
Hey Jean or whomever knows how to use Vectrosity, I just got the plugin and I was wondering if someone can give me a tip or clue as to how to get a line to follow a point while lerping.

example: https://gfycat.com/ClosedEnormousGrouse
example2: https://gfycat.com/InformalAlarmingButterfly
Title: Re: Vectrosity on its way :) [NOW AVAILABLE]
Post by: jeanfabre on April 16, 2015, 01:12:39 PM
Hi,

 that would be very very tricky without a spline system to begin with, Vectrosity is raw lines, and here it's definitly more on the "spline" side of things.

 Typically, using physics could also be a good way out of this, look also for "tail" behaviors, this is very similar it seems.

Bye,

 Jean
Title: Re: Vectrosity on its way :) [NOW AVAILABLE]
Post by: FritsLyn on June 02, 2015, 05:53:40 PM
Hi Jean,

It's much appreciated that there appears to be focus on this again :) Thanks!

I don't seam to be able to get the 'Vectrosity Make Text' to work 100%: The GameObject is created, with material, and even line thickness.. but no readable text, only lines in the bottom of my camera..?

Would it be possible to show a working example, and to make text in 3D space (not just printed on the camera)?

Thank you so very much for your fantastic work, you are a legend :)
Title: Re: Vectrosity on its way :) [NOW AVAILABLE]
Post by: jeanfabre on June 03, 2015, 03:42:45 AM
Hi,

 with the current working version ( with vectrosity 3), 3d lines are not well supported. but for the new version, it will be all there hopefully!

 Bye,

 Jean
Title: Re: Vectrosity on its way :) [NOW AVAILABLE]
Post by: chargr on September 28, 2015, 07:05:40 PM
Any upgrades?

Can't get it to work in unity5 :(

Kinda pointless bought cause can't code
Title: Re: Vectrosity on its way :) [NOW AVAILABLE]
Post by: elvis75k on September 29, 2015, 08:37:14 AM
time passes...
Title: Re: Vectrosity on its way :) [NOW AVAILABLE]
Post by: jeanfabre on September 30, 2015, 03:26:32 PM
Hi,

 yes, sorry guys. I am going backward on this. Everytime I start, I stumble upon so many issues, it's discouraging... it's difficult to progress and provide a proper port that will be maintainable.

Deep breathe, I need to try again this week.

Bye,

 Jean
Title: Re: Vectrosity on its way :) [NOW AVAILABLE]
Post by: elvis75k on December 05, 2015, 04:14:38 PM
christmas is coming  :P
Title: Re: Vectrosity on its way :) [NOW AVAILABLE]
Post by: jeanfabre on December 11, 2015, 07:58:20 AM
I know :)

 Sorry, I just can't find the time and energy to work on this. I need a kick :)

 Bye,

 Jean
Title: Re: Vectrosity on its way :) [NOW AVAILABLE]
Post by: Xx Mad Dog xX on March 05, 2016, 01:23:08 PM
Is there any update on the status of this?
Title: Re: Vectrosity on its way :) [NOW AVAILABLE]
Post by: jeanfabre on March 10, 2016, 05:38:30 AM
Hi,

Unfortunatly no. There is too much going on with working on the Unity modules and pending features not yet supported at the moment...

 Have you contacted the author? maybe PlayMaker reached a descent volume that Eric will be ok to make some official actions for Vectrosity.

Bye,

 Jean
Title: Re: Vectrosity on its way :) [NOW AVAILABLE]
Post by: dittytwo on June 24, 2016, 04:59:54 AM
Hi there
I sent a request to Eric and Eric said not at the moment
http://forum.unity3d.com/threads/vectrosity-fast-and-easy-line-drawing.270846/page-33#post-2678281 for the post on the unity forums

cheers
D2
Title: Re: Vectrosity on its way :) [NOW AVAILABLE]
Post by: jeanfabre on June 24, 2016, 07:47:08 AM
Hi,

 yeah, It's really unfortunate. I am currently too much into just supporting Unity own features related wiki assets and on going developments to address Vectrosity support seriously. It's a bummer, I am well aware of this.


Bye,

 Jean