Shader programming and advanced effects

All other topics around Descent and D2X-XL

Moderators: Frustikus, simX, Aus-RED-5

User avatar
karx11erx
D2X-XL Master
D2X-XL Master
Posts: 8112
Joined: Mon Sep 24, 2007 8:48 pm
Location: Wilferdingen, Germany
Contact:

Shader programming and advanced effects

Postby karx11erx » Fri Nov 23, 2007 9:52 am

Technically D2X-XL (and I) are far enough to implement shader controlled full screen effects like e.g. a screen distortion when firing the Fusion gun.

I have gotten the hang of shader programming and know a few things to regard there (like how shader output is being processed by the graphics card), and I can render into some arbitrary texture instead of directly to the screen buffer, allowing me to post process the rendering result before outputting it to screen.

Btw, don't forget to read my worklog, I have posted some interesting (well, for me :P) articles there (probably going way over your heads :mrgreen: Not (only :roll: ) because I am so smart, because I have been digging into that stuff for years now).

Don't beat me, that's my sense of humor (I know I know, only my brother understands it, and even he doesn't everytime)! :away:
Last edited by karx11erx on Fri Nov 23, 2007 11:36 am, edited 1 time in total.
User avatar
MetalBeast
Posts: 922
Joined: Mon Sep 24, 2007 7:25 pm
Location: Frankfurt/M, Germany
Contact:

Postby MetalBeast » Fri Nov 23, 2007 10:16 am

It sounds great, but I have one request to you.

If you are going to implement a shader-functions for textures, just make it possible to write shader-scripts like in Q3/D3/HL2 engines. It is most comfortable possibility for modders to make shaders for their own maps.

Also you can change shader for the most textures without recompiling/editing the level.
User avatar
karx11erx
D2X-XL Master
D2X-XL Master
Posts: 8112
Joined: Mon Sep 24, 2007 8:48 pm
Location: Wilferdingen, Germany
Contact:

Postby karx11erx » Fri Nov 23, 2007 11:35 am

Shader functions for textures? Do you want to start coding in GLSL, probably w/o even knowing where and how D2X-XL uses them? :think:

Ich habe glaube ich was anderes gemeint. Normalerweise landet alles, was OpenGL zeichnet, direkt in einem mit dem Bildschirm verknüpften Speicherbereich. Du kannst aber auch eine Textur anlegen (das geschieht im OpenGL-Treiber und bedeutet nur, dass man einen Speicherbereich gewisser Grösse mit bestimmten Eigenschaften reserviert) und OpenGL sagen "zeichne da rein". Da es für OpenGL eine normale Textur ist, kannst Du sie hinterher wieder in anderen Zeichenoperationen verwenden und dabei natürlich auch modifizieren, z.B. mit einem Shader-Programm (ich schreibe bewusst nicht "Pixel Shader", da ein Shader-Programm immer aus einem Vertex- und einem Pixel- (besser: Fragment-) Shader besteht).

Die Kameras in D2X-XL arbeiten z.B. so: Die Szenerie wird schlicht aus Sicht der Kamera in eine Textur gezeichnet und diese Textur wird dann auf die der Kamera zugeordnete Fläche des Levels aufgebracht.
User avatar
MetalBeast
Posts: 922
Joined: Mon Sep 24, 2007 7:25 pm
Location: Frankfurt/M, Germany
Contact:

Postby MetalBeast » Fri Nov 23, 2007 12:04 pm

ok, I did misunderstand this ;)
User avatar
karx11erx
D2X-XL Master
D2X-XL Master
Posts: 8112
Joined: Mon Sep 24, 2007 8:48 pm
Location: Wilferdingen, Germany
Contact:

Postby karx11erx » Fri Nov 23, 2007 12:05 pm

Kam mir auch so vor. :)
-JoFFa-
Posts: 612
Joined: Sat Sep 29, 2007 2:12 pm

Postby -JoFFa- » Fri Nov 23, 2007 12:58 pm

At last. If its going to be as you describe it - i think finally i get to create a nod of beauty like in say Quake 4...Can i offer my skills of an architect and artist for a position of a lead designer?
User avatar
Aus-RED-5
Forum Moderator
Posts: 1490
Joined: Tue Sep 25, 2007 9:02 am
Location: Adelaide, South Australia
Contact:

Postby Aus-RED-5 » Fri Nov 23, 2007 1:03 pm

How can you offer anything when you haven't even finished the pyro you were working on?

Finish that or give it up for d/l and maybe we'll (Diedel) think about it. j/k ;) :P :P
----System Specs----
Case: Corsair Obsidian 650D Black
Motherboard: ASUS Sabertooth X58
CPU: Intel Core i7 960 3.20ghz
Heat Sink: Corsair H100 CPU Water Cooler
Memory: Corsair 6GB (3 x 2048mb) DDR3 1600 Dominator (PC12800 - TR3X6G1600C8D)
Video Card: ATi SAPPHIRE Radeon HD 7970 3GB GDDR5 OC Edition
Hard Drives: SSD Corsair Force Series 3 F120 120GB & WD5003ABYX Enterprise RE4 500GB
Media Player: LG BH10LS30 BluRay Burner
Power Supply: Corsair HX-850
OS: Windows 7 Pro 64Bit
Monitor: Benq XL2420T LED
User avatar
karx11erx
D2X-XL Master
D2X-XL Master
Posts: 8112
Joined: Mon Sep 24, 2007 8:48 pm
Location: Wilferdingen, Germany
Contact:

Postby karx11erx » Fri Nov 23, 2007 1:32 pm

Aus-RED-5 wrote:How can you offer anything when you haven't even finished the pyro you were working on?

Finish that or give it up for d/l and maybe we'll (Diedel) think about it. j/k ;) :P :P


X2 :lolol:
User avatar
Aus-RED-5
Forum Moderator
Posts: 1490
Joined: Tue Sep 25, 2007 9:02 am
Location: Adelaide, South Australia
Contact:

Postby Aus-RED-5 » Fri Nov 23, 2007 1:36 pm

deep down you know we really mean it..... :P
----System Specs----
Case: Corsair Obsidian 650D Black
Motherboard: ASUS Sabertooth X58
CPU: Intel Core i7 960 3.20ghz
Heat Sink: Corsair H100 CPU Water Cooler
Memory: Corsair 6GB (3 x 2048mb) DDR3 1600 Dominator (PC12800 - TR3X6G1600C8D)
Video Card: ATi SAPPHIRE Radeon HD 7970 3GB GDDR5 OC Edition
Hard Drives: SSD Corsair Force Series 3 F120 120GB & WD5003ABYX Enterprise RE4 500GB
Media Player: LG BH10LS30 BluRay Burner
Power Supply: Corsair HX-850
OS: Windows 7 Pro 64Bit
Monitor: Benq XL2420T LED
epsy
Posts: 14
Joined: Sat Oct 27, 2007 11:48 am
Contact:

Re: Shader programming and advanced effects

Postby epsy » Sat Nov 24, 2007 11:21 pm

karx11erx wrote:Technically D2X-XL (and I) are far enough to implement shader controlled full screen effects like e.g. a screen distortion when firing the Fusion gun.
microwave-style canon (in MP)?
wobbling robots before death instead of just rolling with explosions(kind of a sick effect)? :mrgreen:
User avatar
karx11erx
D2X-XL Master
D2X-XL Master
Posts: 8112
Joined: Mon Sep 24, 2007 8:48 pm
Location: Wilferdingen, Germany
Contact:

Postby karx11erx » Sun Nov 25, 2007 12:00 am

You can do almost anything with shader programs. Think of the big strider gun screen distortion effect.

Return to “General Discussions”

Who is online

Users browsing this forum: No registered users and 2 guests