Custom Unit Shader Framework
Moderator: Moderators
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Custom Unit Shader Framework
[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?
[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?
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: Custom Unit Shader Framework
I have pushed what I have to the evo 101 branch: https://github.com/EvolutionRTS/Evolution-RTS/tree/101
Re: Custom Unit Shader Framework
Check the BAR repo, it has plenty of recent stuff with cus. You do need bleeding edge engine tho
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: Custom Unit Shader Framework
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.
Re: Custom Unit Shader Framework
what are you doing that caused it to start?
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: Custom Unit Shader Framework
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.
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.
Re: Custom Unit Shader Framework
What engine version are you running Forb?
If it's 101 it could be https://springrts.com/mantis/view.php?id=5136 ?
If it's 101 it could be https://springrts.com/mantis/view.php?id=5136 ?
Re: Custom Unit Shader Framework
Probably not. I think it's the team color issue Hokomoko fixed in ZK shaders.
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: Custom Unit Shader Framework
102 rc1
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: Custom Unit Shader Framework
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.gajop wrote:Probably not. I think it's the team color issue Hokomoko fixed in ZK shaders.
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: Custom Unit Shader Framework
I tried using the unit texture preloader (which is an excellent idea imo), but for me it causes spring to crash.FLOZi wrote:What engine version are you running Forb?
If it's 101 it could be https://springrts.com/mantis/view.php?id=5136 ?
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: Custom Unit Shader Framework
Ok, found the fix lurking in zk 
Submitted PR here: https://github.com/gajop/Custom-Unit-Sh ... ork/pull/1

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