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

Author Topic: Quads with Transitions  (Read 1236 times)

0 Members and 1 Guest are viewing this topic.

Roose Bolton of the Dreadfort

  • Full Member
  • ***
  • Posts: 113
  • Full-time Procrastinator, Part-time programmer.
    • View Profile
    • Personal Portfolio/Website/Blog
Quads with Transitions
« on: December 12, 2012, 04:04:02 pm »
Hey All,

so been playing with what im going to do with the background for my space game and I think I am going to use a simple QUAD with each corner set to a different colour to get a nice transitional background.

Now is it possible to get a QUAD strip to do this too?

so I have 4 quads in a big square like

QUAD QUAD
QUAD QUAD

if I set each vert to a diff colour will they all blend together?
Trying so very hard to finish at-least one project.

Watch out for the RAII police, they will get you.

www.bantersaurus-games.com

masskiller

  • Sr. Member
  • ****
  • Posts: 284
  • Pointers to Functions rock!
    • MSN Messenger - kyogre_jb@hotmail.com
    • View Profile
    • Email
Re: Quads with Transitions
« Reply #1 on: December 12, 2012, 04:25:06 pm »
Quote
if I set each vert to a diff colour will they all blend together?

Depends on how you do it, if you have a texture or not and what colors you use. Note that sf::Vertex is a wrapper for openGL vertexes (sf::Sprite is kind of one as well, just that sf::Vertex actually grants you freedom of truly using vertexes as such) so if you set all the colors of a self-made quad different they will blend. Now, since what you want is to do this with four quads I don't really know, you can get the desired effect, but it depends on what parameters you use for them.
Programmer, Artist, Composer and Storyline/Script Writer of "Origin of Magic". If all goes well this could turn into a commercial project!

Finally back into the programming world!

 

anything