kodi's code

Post your example zscripts/ACS scripts/etc here.
Forum rules
The Projects forums are only for projects. If you are asking questions about a project, either find that project's thread, or start a thread in the General section instead.

Got a cool project idea but nothing else? Put it in the project ideas thread instead!

Projects for any Doom-based engine (especially 3DGE) are perfectly acceptable here too.

Please read the full rules for more details.
Post Reply
User avatar
kodi
 
 
Posts: 1355
Joined: Mon May 06, 2013 8:02 am

kodi's code

Post by kodi »

In this thread I'll try to consolidate and post minor bits of interesting ACS, shaders and visual effects that I come up with while working on other projects.

Starting out with dynamic hudmessage rotation in the form of a compass.
It uses the alpha channel as an argument for the angle of rotation. Only works in the GZDoom 1.x renderer, including Zandronum and Gloome at the moment.

Offset rotation for projectile weapons
Spoiler:
Last edited by kodi on Tue May 24, 2016 4:24 pm, edited 1 time in total.
User avatar
Nash
 
 
Posts: 17434
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: kodi's code - shader based rotating compass

Post by Nash »

Doesn't seem to work in the latest dev build? The compass' translucency just fades in and out depending on my angle but doesn't actually rotate.

(What's really hilarious though is for a splitsecond when the screen melt transition starts, the ENTIRE screen gets rotated)
User avatar
kodi
 
 
Posts: 1355
Joined: Mon May 06, 2013 8:02 am

Re: kodi's code - shader based rotating compass

Post by kodi »

Works for me in the latest 1.x build. Only one I can test with.

But yeah, I get the whole-screen rotation for a split sec on loadup too. Thought I was having a migraine first time I saw it!
User avatar
Nash
 
 
Posts: 17434
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: kodi's code - shader based rotating compass

Post by Nash »

Well, then I'm sorry to break this to you but this doesn't work with 2.x. :S Moreover, Graf is slowly bringing back a fallback renderer into GZDoom so very soon there will be no more need for separate 1.x and 2.x branches - everything will be merged into 1 program and GZDoom will automatically "downgrade" the renderer to the shaderless pipeline if it detects that your system can't run the latest OpenGL. What that all finally amounts to is that your effect won't work with users who use the main GZDoom renderer, it will only work with users who use GZDoom's fallback renderer...

(If you look at the recent commits on the GZDoom repo, almost the whole bulk of it lately has been nothing but work on said fallback renderer)
Post Reply

Return to “Script Library”