Skip to main content
GameDev.net gamedev.net
🔒 Locked

Visual glBlendFunc Tool

Started by AndersR May 30, 2010 at 7:07 PM 12 replies 6.1k views
Original Post
AndersR
AndersR
Hi everybody. I recently needed a better overview over how glBlendFunc worked and I wanted a quick and easy way to test all kinds of parameters without having to recompile. It resulted in this HTML5 tool: (it requires Firefox, Chrome or Opera)
http://www.andersriggelsen.dk/OpenGL/

It supports all the parameters glBlendFunc() takes and you can also specify a color for glBlendColor.

There is also a checkbox for using premultiplied alpha textures.

What do you think? Is it helpful to you in any way? :)
MarkS
MarkS
This is awesome, but I'd prefer a standalone app where I can input my own images. The concept is excellent though.
No, I am not a professional programmer. I'm just a hobbyist having fun...
Hodgman
Hodgman
Pretty neat tool ;)

As above, it would be cool if you could supply your own images (maybe you could let the user enter 2 URLs?), or at least be able to see the RGB and Alpha channels of the built-in images.
AndersR
AndersR
Supplying your own images should be simple though, I will add that :)

Also being able to see the alphachannels seperately is a good idea. Will add that :)
AndyEsser
AndyEsser
Very very helpful, it's just found it's way into my bookmark list.

Well done and thank you!
AndersR
AndersR
I have added those features now.
Do a hard refresh by pressing Ctrl+F5 if you have the old page cached.

I'm currently trying to find a way to get around a &#106avascript security feature that removes the ability to load remote images from other websites.<br>
swiftcoder
swiftcoder
Quote:
Original post by AndersR
I'm currently trying to find a way to get around a &#106avascript security feature that removes the ability to load remote images from other websites.<!--QUOTE--></td></tr></table></blockquote><!--/QUOTE--><!--ENDQUOTE-->You need a server-side script (generally in php), which resides on your server (so that &#106avascript can access it), and proxies the remote image (since php doesn't have the same security restriction vis a vis remote sites).<br><br>If you google for 'AJAX proxy', you should get many results.
Tristam MacDonald. Ex-BigTech Software Engineer. Future farmer. [https://trist.am]
AndersR
AndersR
Quote:
Original post by swiftcoder
You need a server-side script (generally in php), which resides on your server (so that &#106avascript can access it), and proxies the remote image (since php doesn't have the same security restriction vis a vis remote sites).<br><br>If you google for 'AJAX proxy', you should get many results.<!--QUOTE--></td></tr></table></BLOCKQUOTE><!--/QUOTE--><!--ENDQUOTE--><br><br>Yeah, I was hoping I could get around the problem another way (security concerns) but it seems that is impossible. I have made a simple proxy script now. Ctrl+F5 to be sure you have the latest copy running in your browser :)<br></td></tr></table></blockquote>
MarkS
MarkS
Very nice!
No, I am not a professional programmer. I'm just a hobbyist having fun...
AndersR
AndersR
I have just added an option for glBlendEquation. You can now visualize three times as many effects as before :)
MathewS
MathewS
Not too bad, didnt expect to see this using HTML5

Quote:
Original post by maspeir
This is awesome, but I'd prefer a standalone app where I can input my own images. The concept is excellent though.


I found this one not too long ago, http://www.codehead.co.uk/glsandbox.html
----------------------www.westernwars.comwww.ebgaming.com
AndersR
AndersR
I chose to do this in HTML5 since you could keep it as a bookmark and access it from any computer without having to install any software.
I actually started implementing a little in a standalone application but realized the HTML5 version had more benefits for what I needed it to do (except for maybe execution speed).
Dim_Yimma_H
Dim_Yimma_H
This seems pretty useful. Bookmarked it!
Gabriev
Gabriev
Nice online tool!
Thank you
--------------------------------BlueMu is a 2D Platformer Game Engine, programmed in C++ and OpenGL with a in-game map editor.It is currently still a prototype!
rubiax
rubiax

Enthusiastic independent developer and Xbox Live Indie Games repeat offender Nathan Fouts comes back with a postmortem of Explosionade, a game conceived to be developed in one month to help with cash flow for his studio's efforts in developing larger titles.





View the full article

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.