Custom Unit Shader Framework

Custom Unit Shader Framework

Discuss game development here, from a distinct game project to an accessible third-party mutator, down to the interaction and design of individual units if you like.

Moderator: Moderators

Post Reply
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Custom Unit Shader Framework

Post by Forboding Angel »

[2:36:18 AM] So ok, need some help
[2:36:25 AM] I implemented this: https://github.com/gajop/Custom-Unit-Shader-Framework
[2:36:48 AM] Which has a different structure than what evo had previously. A little bit of fixing and all is good.
[2:37:18 AM] However, teamcolor is missing from my units and I honestly have no clue why.
[2:37:47 AM] I know that this seems to change the rendering from the default engine to custom stuff
[2:37:58 AM] so I assume it looks for teamcolor differently than the engine
[2:38:21 AM] But as far as I can tell, it isn't documented anywhere. Does anyone know what I should be looking for?
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Custom Unit Shader Framework

Post by Forboding Angel »

I have pushed what I have to the evo 101 branch: https://github.com/EvolutionRTS/Evolution-RTS/tree/101
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Custom Unit Shader Framework

Post by Beherith »

Check the BAR repo, it has plenty of recent stuff with cus. You do need bleeding edge engine tho
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Custom Unit Shader Framework

Post by Forboding Angel »

That doesn't answer the question though. CUS is working fine. It's simply teamcolor which is no longer showing and Im guessing that it was split out into a shader or something.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Custom Unit Shader Framework

Post by smoth »

what are you doing that caused it to start?
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Custom Unit Shader Framework

Post by Forboding Angel »

I implemented the Custom Unit Shader Framework which is linked int he OP. There isn't much to it. It's a gadget and a bunch of shaders.

https://github.com/gajop/Custom-Unit-Shader-Framework

The ONLY relevant pieces of this repo is what is in luarules and what is in modelmaterials. Everything is is just example stuff.

I have already looked and the dds in the repo are using the exact same method of displaying teamcolor that evo uses. But teamcolor in evo just shows up as being flat black.
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6242
Joined: 29 Apr 2005, 01:14

Re: Custom Unit Shader Framework

Post by FLOZi »

What engine version are you running Forb?

If it's 101 it could be https://springrts.com/mantis/view.php?id=5136 ?
gajop
Moderator
Posts: 3051
Joined: 05 Aug 2009, 20:42

Re: Custom Unit Shader Framework

Post by gajop »

Probably not. I think it's the team color issue Hokomoko fixed in ZK shaders.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Custom Unit Shader Framework

Post by Forboding Angel »

102 rc1
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Custom Unit Shader Framework

Post by Forboding Angel »

gajop wrote:Probably not. I think it's the team color issue Hokomoko fixed in ZK shaders.
This is frustratingly non-specific. I had a look at the shaders zk is using and it doesn't even have a lot of the bits from CUS. I can't utilize something when it doesn't even resemble what I'm trying to fix /frustration.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Custom Unit Shader Framework

Post by Forboding Angel »

FLOZi wrote:What engine version are you running Forb?

If it's 101 it could be https://springrts.com/mantis/view.php?id=5136 ?
I tried using the unit texture preloader (which is an excellent idea imo), but for me it causes spring to crash.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Custom Unit Shader Framework

Post by Forboding Angel »

Ok, found the fix lurking in zk :-)

Submitted PR here: https://github.com/gajop/Custom-Unit-Sh ... ork/pull/1
Post Reply

Return to “Game Development”