Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Program Announcements / DBP Shader Helper

Author
Message
MikeS
Retired Moderator
21
Years of Service
User Offline
Joined: 2nd Dec 2002
Location: United States
Posted: 8th Apr 2006 06:02 Edited at: 8th Apr 2006 06:08
From the readme:

The DBP Shader Helper tool is a small application I've made to hopefully make Shader developers lives a little more easier with Dark Basic Pro.

What this tool will do?
It will load a .fx file, and then attempt to apply it to a sphere based on the .fx files information(textures, etc.).

You can then generate a text file with the 'Generate Helpfile' option, and also preview it inside the program. It will give you a list of constants that do or do not need to be set inside DBP. A hook value of '1' for example, DBP understands how to apply to an object, thus you don't need to manually code it with DBP.

What this tool will not do, or guareentee to do, is make DBP compatible shaders. It will
only help make Shader developers life a little more easier.

More information can be found on the subject of shaders on the official TGC forum here:

Ultimate Shader thread 1
http://forum.thegamecreators.com/?m=forum_view&t=28992&b=1

Ultimate Shader thread 2
http://forum.thegamecreators.com/?m=forum_view&t=49137&b=1

Special thanks goes out to Neophyte, for the basis of this tool was
inspired by his tutorial.

Download:
http://forum.thegamecreators.com/xt/xt_apollo_download.php?i=837971



A book? I hate book. Book is stupid.
(Formerly Yellow)

Attachments

Login to view attachments
ALPHA ZERO PRODUCTIONS
20
Years of Service
User Offline
Joined: 28th Sep 2003
Location: Mom ! I forgot where we live !
Posted: 8th Apr 2006 06:04
cool

MikeS
Retired Moderator
21
Years of Service
User Offline
Joined: 2nd Dec 2002
Location: United States
Posted: 8th Apr 2006 06:04 Edited at: 8th Apr 2006 06:10
And here's a screenshot showing what the help file generated looks like.



Please let me know if you find any bugs,want me to add more to the generated help file, or anything else.



A book? I hate book. Book is stupid.
(Formerly Yellow)

Attachments

Login to view attachments
JulesD
19
Years of Service
User Offline
Joined: 7th Feb 2005
Location:
Posted: 8th Apr 2006 09:32 Edited at: 18th Apr 2006 06:35
I've had a Shader Helper Program in the works for a while, it's coming along very slowly.




[quote]Click on images for a bigger image.

Rainbow Shader on teapot & metal shader on torus.
Baggers
19
Years of Service
User Offline
Joined: 31st May 2004
Location: Yonder over dem dere hills
Posted: 9th Apr 2006 10:10
JulesD: Try using the edit button. You are currently hijacking this thread.

MikeS: Nice stuff man. I really should get into shaders sometime, I know so little about them. Ah well all in time I guess.

M.I.A is pending
Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 9th Apr 2006 11:28
Yeah I haven't touched shaders at all. I think this will be very handy when I do though. Thx

MikeS
Retired Moderator
21
Years of Service
User Offline
Joined: 2nd Dec 2002
Location: United States
Posted: 9th Apr 2006 18:04
@JulesD: Yeah, if you could please edit your posts when you get them working, I can delete the other ones for you.

@Baggers and Lost in Thought

Thanks guys. There is still a possibility that I might actually expand this tool a bit more which will help both of you out even more. I've got some parsing routines I could use to actually parse the .fx files, and then export the DBP code. Then it'd just be a matter of setting up the proper matrix math for the shader(Which I'm a newb in unfortuantly).

I'm pretty sure all the native DBP .fx files included will work with this program, as you see the cartoon shader above works quite well. So why not have a go at modifying that one to get started.



A book? I hate book. Book is stupid.
(Formerly Yellow)
Chris Franklin
18
Years of Service
User Offline
Joined: 2nd Aug 2005
Location: UK
Posted: 9th Apr 2006 19:01 Edited at: 9th Apr 2006 19:01
Very cool if only my card could support something above ps 1.5

Theme park simulator wip

MikeS
Retired Moderator
21
Years of Service
User Offline
Joined: 2nd Dec 2002
Location: United States
Posted: 9th Apr 2006 19:33
[For next release]
- Output your video card shader information.
- Code export examples(partial functionality)

You guys have given me some ideas for the next version, thanks.



A book? I hate book. Book is stupid.
(Formerly Yellow)
Chris Franklin
18
Years of Service
User Offline
Joined: 2nd Aug 2005
Location: UK
Posted: 9th Apr 2006 23:52

If this is possible could you make it so it can convert shaders to a lower ps version?

Theme park simulator wip

JulesD
19
Years of Service
User Offline
Joined: 7th Feb 2005
Location:
Posted: 10th Apr 2006 01:06 Edited at: 18th Apr 2006 06:36
Links above should work now.
Xander
21
Years of Service
User Offline
Joined: 3rd Mar 2003
Location: In college...yeah!
Posted: 10th Apr 2006 01:24
Cool, nice work Mike. I will be adding shaders to my game eventually, and know literally 0 about them. This will help me out once I get around to it.

(By the way, I got caught up working on my new game, and since the change mesh command is slow as all heck, I am sort of giving up on the shatter project for now sorry to disappoint you; I'll let you know if there is anything else I need your help on for my game )

Xander Moser - Bolt Software - Firewall
MikeS
Retired Moderator
21
Years of Service
User Offline
Joined: 2nd Dec 2002
Location: United States
Posted: 10th Apr 2006 02:08
@Sunrise

That'll be up to you really. There's lots of shaders out there that will be compatible with lower end cards. Automatically converting them would be quite difficult I'm afraid. Lots of shaders however, usually have some sort of fall back version to use on lower end cards though.

@JulesD

No problem, I took care of it. If you want you can try to edit your other post to get some screenshots in.

@Bolt

Thanks.

That's alright Bolt, I understand, for I'm quite flexible(Not to mention, I've learned a bit about the 'change mesh' command now to!). Send whatever you need help on my way. I'll keep working with these shaders so we can get them into Firewall 2 right away.



A book? I hate book. Book is stupid.
(Formerly Yellow)
MikeS
Retired Moderator
21
Years of Service
User Offline
Joined: 2nd Dec 2002
Location: United States
Posted: 14th Apr 2006 20:37
Program now outputs maximum pixel and vertex shader values.

Here's an example of the new helpfile export. Now outputs the effect constants with proper names of variables and default values(see bottom 3 lines).

scanline.fx




A book? I hate book. Book is stupid.
(Formerly Yellow)
MikeS
Retired Moderator
21
Years of Service
User Offline
Joined: 2nd Dec 2002
Location: United States
Posted: 4th Jun 2006 08:17
Just a little bump.

-Program can now load up to 4 textures, and has the options of using 1 as a sphere map, and the other as a bump map.

-Users may also scroll through the source code in the preview to see all of the source now.

My goal is to develop this to the point where it can be fully compatible with most of the basic shaders with Freddrix's shader pack. I might even dive into some Lua Scripting in order to get the effects running properly in real time by tweaking parameters.



A book? I hate book. Book is stupid.
(Formerly Yellow)
FoxBlitzz
20
Years of Service
User Offline
Joined: 19th Nov 2003
Location: United States
Posted: 4th Jun 2006 20:03
Hmm... how about a parallax-mapping preview, where you pick two textures to use?

AMD Athlon 64 X2 4200+
1GB DDR-SDRAM (May increase to 2GB one day)
512MB ATI Radeon X1800 Series - Finally! A card that does pixel shaders correctly!

Login to post a reply

Server time is: 2024-05-03 20:43:18
Your offset time is: 2024-05-03 20:43:18