11-18-2010 01:59 AM
HI Guys,
I'm facing a problem: I want to create a plot that shows me a car and a bus moving according the data I receive from telemetry.
So, I would like to know if you guys can help me on that.
What kind of graph I should use? How can I call a picture (car/bus) to be showed on the graph?
Hope somebody can help me
Regards
Kito
Solved! Go to Solution.
11-18-2010 03:32 AM
As a start I'd suggest playing with a picture control - examples exist on these forums and probably the help files too.
You can control the position programmatically based on your telemetry using a property node.
To show a picture on a graph I would simply position the picture over the graph so that it appears to be 'on' the graph. The trick will be to work out the coordinates to place the picture based on the axes of your graph.
Ian
11-18-2010 04:35 AM
Ok, But the ideia is to use 2D pictures. So what you've suggested I think it is for 3D, right?
But anyway, thanks for your attention
Regards
Kito
11-18-2010 05:29 AM
Nope, nothing to do with 3D pictures - just simple pictures, simple graphs.
See attached as a hasty example (V8.5)
Ian
11-18-2010 07:52 AM
Thank _Ian_....that's a very good start....
Just one more question....
Instead of those "white blocks", can I use only the car and bus pictures (.PNG)? without lines ....
Regards
Felipe
11-18-2010 08:48 AM
Thats a help file job - not difficult.
Use customize control and transparency to get rid of the border round the picture.
11-19-2010 12:17 AM
Everything's been working fine.....thanks a lot for your helping.,,,,,,
Is there any way to rotate the picture according to the movement the picture does?
for example....if the bus goes up the picture should be poiteded up, If the bus goes down (in diagonal direction) the picture should be pointed down to that direction and so on....
Regards
Kito
11-19-2010 03:14 AM
Maybe just monitor which direction the picture is moving and load a different image accordingly - i.e. create a few pictures: up, down, left, right and maybe some for the diagonals too. Then just work out which picture is closest to the direction it is moving.
Conceptually that feels easier than trying to rotate the picture programmatically.
11-19-2010 06:01 AM
For what its worth, heres what I meant - made using a combination of powerpoint clip art and adding transparency. I also tweaked the property nodes to keep the pictures on the plot area.
It is strangely soothing to watch... maybe I should add a bit of pond weed and replace the arrows with goldfish... hey presto, my very own office fish tank!
11-19-2010 08:52 AM
As its Friday lunch time, and everyone knows that you're supposed to have fish on Friday...
(Had I intended to do this from the beginning I don't think I'd be doing it this way, but seeing as the code was there asking to be modified...)