-
Posts
18.123 -
Joined
-
Last visited
-
Days Won
587
Everything posted by Stan`
-
Since 2.5 I think you could bake with both internal and cycles.
-
I'm not sure that's how it works, they probably only handle tickets on their Phabricator. We might be faster by writing a plugin. https://www.blendernation.com/2018/01/03/textools-for-blender/ might be interesting Probably not, since I don't know where it is, and for what renderer it is present.
-
I have used XNormal for a while, sadly it's not cross platform. Also we still need blender to merge the meshes (cc has a few props such as the statues for instance), generate the UV's export, import as obj in xnormal reexport, split model by materials in blender, and reexport everything.
-
Might want to try with Cycles, it's as white as you want it to be.
-
/** * Renders all non-alpha-blended models with the given context. */ void CallModelRenderers(const CShaderDefines& context, int cullGroup, int flags) { CShaderDefines contextSkinned = context; if (g_RenderingOptions.GetGPUSkinning()) { contextSkinned.Add(str_USE_INSTANCING, str_1); contextSkinned.Add(str_USE_GPU_SKINNING, str_1); } Model.NormalSkinned->Render(Model.ModShader, contextSkinned, cullGroup, flags); if (Model.NormalUnskinned != Model.NormalSkinned) { CShaderDefines contextUnskinned = context; contextUnskinned.Add(str_USE_INSTANCING, str_1); Model.NormalUnskinned->Render(Model.ModShader, contextUnskinned, cullGroup, flags); } } void CallTranspModelRenderers(const CShaderDefines& context, int cullGroup, int flags) { CShaderDefines contextSkinned = context; if (g_RenderingOptions.GetGPUSkinning()) { contextSkinned.Add(str_USE_INSTANCING, str_1); contextSkinned.Add(str_USE_GPU_SKINNING, str_1); } Model.TranspSkinned->Render(Model.ModShader, contextSkinned, cullGroup, flags); if (Model.TranspUnskinned != Model.TranspSkinned) { CShaderDefines contextUnskinned = context; contextUnskinned.Add(str_USE_INSTANCING, str_1); Model.TranspUnskinned->Render(Model.ModShader, contextUnskinned, cullGroup, flags); } } Renderer.cpp Seems like INSTANCING is true for everything that's not transparent, or not skinned (read not having animations): buildings fit that criteria. You guessed it str_1 is = "1" Interned in the memory.
-
Will take months to import and rebake everything. Maybe we could just apply a filter on the texture or something using Image Magic.
-
Now I'm wondering what sets the USE_INSTANCING and the USE_GPU_SKINNING defines, which seem to be required in the condition above. I have the hidden gpu skinning option enabled, but it's very likely you don't ; Experimental probably-non-working GPU skinning support; requires preferglsl; use at own risk gpuskinning = false Thanks only @vladislavbelov can review this one.
-
Well it's pointless now since they removed the internal renderer of Blender in 2.8. But if we have to rebake every single AO in existence of the game, it's definitely A25+
-
Well if you see the tutorial I linked earlier, blender ao's generation was always a bit grey. Which I why I have to cap Cycles with my emissive thing.
-
player_trans_ao_parallax_spec 718 models.
-
Materials are game wide not per building changing one material means changing all the helmets shields units animals trees structures siege engines that use it
-
Fourth Option: I make a patch and we merge it along with some other improvements in A25. This way it gets done, no risk for now
-
I'm not sure going over 1000+ models using AO is gonna be on time for the release
-
Baking yes, but in game? I like to not reveal bugs before a release Makes it more enjoyable for the people
-
Huh. it should I can fix the AO values now if that's wanted, but I'd like to be somehow sure it won't cause bad side effects for the release. (eg too strong AO)
-
https://trac.wildfiregames.com/browser/ps/trunk/binaries/data/mods/public/art/materials
-
No. Those XML files are materials used by other xml files called actors in art/actor/* That's where we control the intensity of the effects. Most models share the same materials. My point was that by tweaking those values you could make AO stronger.
-
The one above is player_trans_parallax_spec <uniform name="effectSettings" value="1.0 50.0 0.0075 0.85"/> should be <uniform name="effectSettings" value="1.0 50.0 0.0075 0"/> Since there is no AO. But that doesn't seem to work. Buildings still have self shadows. This one is used by the left cc player_trans_ao_parallax_spec <?xml version="1.0" encoding="utf-8"?> <material> <alternative material="player_trans_ao_spec.xml" quality="8"/> <define name="USE_PLAYERCOLOR" value="1"/> <define name="USE_PARALLAX" value="1"/> <required_texture name="baseTex"/> <required_texture name="normTex" define="USE_NORMAL_MAP"/> <required_texture name="specTex" define="USE_SPECULAR_MAP"/> <required_texture name="aoTex" define="USE_AO"/> <shader effect="model"/> <uniform name="effectSettings" value="1.0 50.0 0.0075 0.6"/> </material> EDIT For the record <uniform name="effectSettings" value="Normal Specular Parallax AO"/>
-
What is that map? Indeed disabling shadows we get It's just that our AO texture increase the emphasis. EDIT: I think I found the culprit <?xml version="1.0" encoding="utf-8"?> <material> <alternative material="player_trans_spec.xml" quality="8"/> <define name="USE_PLAYERCOLOR" value="1"/> <define name="USE_PARALLAX" value="1"/> <required_texture name="baseTex"/> <required_texture name="specTex" define="USE_SPECULAR_MAP"/> <required_texture name="normTex" define="USE_NORMAL_MAP"/> <shader effect="model"/> <uniform name="effectSettings" value="1.0 50.0 0.0075 0.85"/> </material>
-
-
Because I use blender emissive channel to bake it without interference from other stuff. This way I'm sure whatever I bake is pure AO, not stuff with reflections and whatnot. EDIT: Goodnight It's multiplied in the game. https://trac.wildfiregames.com/wiki/MaterialSystem & https://trac.wildfiregames.com/wiki/MaterialFormat EDIT: Just saw your above post. One thing you can try is to replace the ptol struct by a white texture https://trac.wildfiregames.com/browser/ps/trunk/binaries/data/mods/public/art/textures/skins/structural/ptol_struct.png
-
-
Fun fact, I'm porting it to A24 With their accord. I'll see if we can takle some of those, when the in game gui works again As for the money part Nephy has a patreon
-
Happens sometimes, here is a little video, and the blend ptol-cc-ao.blend importing-ao.mp4 importing-plugin.mp4