Shader 'Tutorial' Widget

Shader 'Tutorial' Widget

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
User avatar
TheFatController
Balanced Annihilation Developer
Posts: 1177
Joined: 10 Dec 2006, 18:46

Shader 'Tutorial' Widget

Post by TheFatController »

I was just having a conversation with a friend about how there doesn't seem to be any good sources online that go through basic gl shader examples for educational purposes, then we decided it would also be much easier to learn shaders if there was a free interactive editor that would let you work out how the code translates to effects in real time (in the same way that http://regexpal.com/ lets you test regular expressions).

I realised this is probably possible in the Spring engine using an widget that generates a text box and buttons you could let people cycle though a list of examples and modify them ingame and hit refresh or be able to write their own from scratch etc.

This could then even be bundled into a demo mod package with installer and published around the internet and may potentially be quite popular if no such tool currently exists (and would promote the engine).

Anyhoo I can't write this as I lack the required shader knowledge to begin with but if anyone wants to comment or steal the idea please go right ahead..! :wink:
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: Shader 'Tutorial' Widget

Post by AF »

Such a tool could easily be written using QT c++

These days though they use editors that look like noodles
User avatar
Tribulex
A.N.T.S. Developer
Posts: 1894
Joined: 26 Sep 2009, 21:26

Re: Shader 'Tutorial' Widget

Post by Tribulex »

AF wrote:Such a tool could easily be written using QT c++

These days though they use editors that look like noodles
WELL DO IT
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: Shader 'Tutorial' Widget

Post by AF »

I'd like several months worth of extra time delivered in large steel containers to this address.....
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Re: Shader 'Tutorial' Widget

Post by Argh »

I was just having a conversation with a friend about how there doesn't seem to be any good sources online that go through basic gl shader examples for educational purposes
Uh, that's certainly not true, but they're harder to find than is perhaps ideal:

Here's a good starting-point, for people just getting acquainted, and has links to many other tutorials:
http://nehe.gamedev.net/data/articles/a ... article=21
Post Reply

Return to “Lua Scripts”