Playmaker Forum
PlayMaker News => General Discussion => Topic started 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
-
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.
-
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
-
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
-
Any chance of setting 3d line support please?
-
sigh...
I need to find the time to do this
Bye,
Jean
-
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.
-
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
-
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 ;)
-
But we're still missing 3d line support , bump :)
-
Hi,
I know... :-\ Don't give up, one day, I'll find the time to do this!!
Bye,
Jean
-
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.
-
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?
-
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
-
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. :)
-
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
-
I'm trying to setup using the Vectrosity Custom Actions, but when i bring them into my project I get this error
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
-
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!!!
-
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
-
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?
-
... 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)
-
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
-
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
-
Hi,
bump me on this in a week or two, I'll study that more carefully.
Bye,
Jean
-
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?
-
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
-
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.
-
Hi jeanfabre,
Have you written the MakeCircle action for 3D?
-
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
-
Hi jeanfabre,
Have you written the MakeCircle action for 3D? I need this action in the next couple days.
-
Hi jeabfabre,
Tomorrow, I need the MakeCircle Action for 3D. Are you still working on it?
-
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
-
Thanks.
-
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
-
Hi,
bump what? can you reference the post? thanks.
Bye,
Jean
-
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!
-
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
-
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.
-
Hi,
What version of Unity and Vectrosity do you have? and have you downloaded the latest package from the wiki?
Bye,
Jean
-
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...
-
Will there be a port for vectrosity 4?
-
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
-
Voted for an update on v4 :)
-
Bump! Really need this :/
-
Hi,
yeah, sorry about that, I have difficulties to catch up with all these addons!
Bye,
Jean
-
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
-
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
-
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 :)
-
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
-
Any upgrades?
Can't get it to work in unity5 :(
Kinda pointless bought cause can't code
-
time passes...
-
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
-
christmas is coming :P
-
I know :)
Sorry, I just can't find the time and energy to work on this. I need a kick :)
Bye,
Jean
-
Is there any update on the status of this?
-
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
-
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
-
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