Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - brfsmn

Pages: [1]
1
Graphics / Re: Interpolating color over multiple nodes
« on: May 17, 2020, 10:03:32 pm »
You could manually interpolate the colours between the ones you wish to interpolate for each of the vertices between those two. Looks like it might be a simple task. Depends on what you mean specifically and if I've fully understood what you meant.


This is an example of what I am trying to accomplish.

https://i.imgur.com/KUfK76H.png

The difference here is that he is using rectangular elements and I am using triangles but that's irrelevant.
On second thought, I think color interpolation for every triangle on its own might do job but if it didn't and I want to implement it myself, I would have to use shaders as eXpl0it3r suggested?

2
Graphics / Interpolating color over multiple nodes
« on: May 16, 2020, 04:05:28 pm »
I have a mesh or a drawing with multiple connected triangles and every node or vertex of these triangles in the mesh has a certain value (stress, strain etc.) and I want to draw a heat map for these values over my mesh.

In SFML tutorial, it was demonstrated that you could assign a color to every vertex in triangle native type, then color of triangle would be interpolated over color of the 3 nodes.

Is there's a way to get color interpolation to use specified 'neighboring nodes' and not just nodes in its own set of shape?

Pages: [1]
anything