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 - Trigve

Pages: [1]
1
General discussions / Re: Multiple texture/sprite alpa splatting
« on: December 23, 2014, 02:12:17 pm »
Of course. I didn't meant that if it is somehow implemented, that it should be included in a minute. Just was curious if you were dismissing the whole concept of multitexturing ;)

2
General discussions / Re: Multiple texture/sprite alpa splatting
« on: December 23, 2014, 02:01:01 pm »
Indeed it should be straight-forward to add it. All it needs is two new pairs of Vector2f in sf::Vertex, and the corresponding OpenGL code in sf::RenderTarget::draw.
I see.

Quote
However, the fact that it is possible doesn't mean that we want to add it to SFML ;)
Are there any reasons for this?

Thank You

3
General discussions / Re: Multiple texture/sprite alpa splatting
« on: December 23, 2014, 12:53:34 pm »
Thanks for the reply,
I was looking at the sources and it looks like it would be possible to add it. Or do you see some obstacles or caveats preventing it? Maybe I'll try it (as proof of concept).

4
General discussions / Multiple texture/sprite alpa splatting
« on: December 23, 2014, 12:07:31 pm »
Hi,
I'm evaluating the SFML for my current project (2D isometric tile based game). In the engine I'm using now, I'm making the terrain as a flat mesh with textures attached and custom pixel/fragment shader. The terrain is practically the tile map. The terrain mesh is using 2 textures, one is for the actual terrain tiles (grass, mud, sand), another is the alpha texture for the splatting between the different terrain type (grass and mud for instance). Each vertex has defined 3 texture coordinates and I'm using them in the shader.
Looking through the documentation the stuff that is most similar to my terrain mesh is using the sf::Vertex to create the mesh. But sf::Vertex supports only 1 texture coordinate and I need at least 3.

Is there any other options to achieve what I want? Would it be possible to add more texture coordinates for sf::Vertex (and therefor multi-texturing support)?

Thank You
Trigve

Pages: [1]
anything