Jump to content
  • entries
    114
  • comments
    273
  • views
    599830

Minor spattering of info

Sign in to follow this  
Servant of the Lord

1568 views

Not much to say, and not much to show, but I haven't posted in several weeks so I figure I need to post something.

I've been running some tests using SFML and OpenGL, to see what kind of framerates I could get when drawing my 2D tiles (the results of the performance results are still inexplicably low), and in doing so, I confusedly ended up with some weird OpenGL mistakes from mixing up by the order that the vertices were supposed to go in:

dal7.png

Being new to GLSL (and OpenGL in general), I was playing around with getting my existing color blending algorithms working with OpenGL shaders:

08gi.jpg

Anyway, eventually (after heatedly interrogating other GDNet members in the chat room) I realized (okay, fine, "admitted I was wrong and acknowledged" wink.png) that I didn't actually need to use GLSL shaders to achieve the results I wanted:

ybjf.jpg

But, I do need to use GLSL shaders to use one texture as the alpha mask for another texture. huh.png
I thought there would be built in OpenGL functions for that, for sure.

It took me several days to trick SFML into letting me do that, by intermingling OpenGL function calls and GLSL shaders and depending on SFML implementation details:

xa6k.png

That's a rotated texture that has been flipped horizontally, with a independently rotated and/or flipped texture applied as the alpha channel.

If you came here expecting artwork... I haven't really worked on much recently. ohmy.png
Today I did make some pottery and jewelry boxes, but that's about it for the past several weeks!
pknr.png


Oh, as mentioned in my previous dozen or so journal entries, you now have the great privilege of following me on twitter! *waits expectantly for the world to burst into rejoicing*
rolleyes.gif


[size=2]*still waiting expectantly*
Sign in to follow this  


2 Comments


Recommended Comments

Thanks! Sent a follow request to you as well. =)

 

My profile pic is three years outdated, I need to take a new one - I still have the mustache, but now I have a beard like a half-crazed mountain man (!) and shoulder-length hair. I really need to do something with the beard...

Share this comment


Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!