Monday, April 17, 2017

asset creation - How to produce a texture to represent a vector field


I would like to be able to produce a texture that essentially represents a 2D vector field (eg red represents vector {1, 0}.


What I would like is to draw a path and the vector at the point on the path should be tangential to the path. Ideally, I would like the path to be thick (i.e. the points on the path are the tangent colour and then all points within r perpendicular to the path at that point are a smaller version of that vector). All other points would have the zero vector.


So for example, if I had a circle path, the vectors would push a particle around the circle.


How would I easily produce this texture? I am currently considering writing a tool that parses a SVG file and produces a bitmap that can be used but I'm wondering if there are existing tools that do this already.


NB: I tried to tag this with "vector-fields" as I believe this could be a common theme (since UE4 supports using them with particles), but don't have enough rep to create the tag.




No comments:

Post a Comment

Simple past, Present perfect Past perfect

Can you tell me which form of the following sentences is the correct one please? Imagine two friends discussing the gym... I was in a good s...