Start with a texture image (with multiple paths e.g. [color=#0000BF]path1 [/color]is a list of Vector2 coordinates). Along each path is a [color=#0000FF]2D sprite[/color] (e.g. Circle or diamond shape). The texture image will be mapped onto a plane as in the sample “RenderToTexture”. When user click on the[color=#0000FF]2D sprite[/color] (which could be a circle or diamond shape sprite placed on top or drawn) on the texture image, the [color=#004080]sprite[/color] move along the e.g. [color=#0000BF]path1 [/color] along the polygon line defined by the list of Vector2 coordinates. I am not sure if this animation could be achieved in similar way as the sample MaterialAnimation.
Urho2D Question(1):
How to use Urho2D to draw vector graphics (e.g. polyline, filled polygon diamand 2D shape onto a Texture Image? Please point to Forum discussion.
MaterialAnimation Question(2):
For each user click on 3D space on the Plane, the 3D coordinate is mapped onto the 2D coordinate of the 2D texture. If the click position corresponds to one of the 2D sprite or 2D vector polygon, a callback event is triggered that the final position (P2) and the path which the sprite (e.g. sprite2) will follow (e.g. Path1) will be retrieved from a database.
How could we create e.g. ValueAnimation or perhaps something else, to pass the information of the new coordinate position for sprite2 to move along e.g path1 at each frame?
MaterialAnimation Question(3):
Is there something similar to Material.SetShaderParameterAnimation that will accept paramters ( sprite to move (sprite2), coordinate for each frame).
[color=#008000]Would the community think this is a useful “use case” to combine Urho2D and Urho3D in way as describe above to add new features to the already fantastic Urho framework?[/color]
Perhaps something similar has been discussed as I just started to learn Urho and I have not read all the forum discussion. Please point me to the relevant forum links. Thnx.