Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for 'tsnmapcalc' Flavor #4

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

Michaleczeq
Copy link

Small modification that adds support for 'tsnmapcalc' flavor mostly used in road templates models, where road texture use normal map.

Small modification that adds support for 'tsnmapcalc' flavor mostly used in road templates models, where road texture use normal map.
Fast fix that add tsnmapcalc to Shader Editor
theHarven pushed a commit to theHarven/BlenderTools that referenced this pull request Feb 18, 2024
* Added support for "dif.spec.amod.dif.spec" shader. It's not perfect, but it should be enough to work with models. (Col_alpha: 0.25 = full Base, 0.0/0.5 = Full Over. Idk why it's divided that way.)
* Added condition to allow aliasing materials with "tsnmap" flavor, like it is made in "/material/terrain/" dir.
* Fixed aux[0] and aux[1] (changed from float2 to float4 - texgen_X_rot and unused/nmap rot? idk)
Added support for custom unloading/loading locators in "Spawn Point" -> "Custom" setting.

Custom (un)loading settings allow you, to set parking difficulty, max trailer lenght and trailer type like "Company" tool in ME.
* Fixed error when you try import old .pip file, without "Flags" attribute inside "SpawnPoint".
* Custom spawn point fixes (now unload/load is separeted from parking difficulty)
* Added visual colored shape showing depot place, size and difficulty
* BGL module was replaced by GPU in one place
* Some blf.size fixes (removed unnecessary arg)
* Fixed upside-down reflection in env shaders
* Updated .bin file with new shaders (eut2.interior)
* Small fix of comments in amod shader
* First implementation of "eut2.interior.lit" and "eut2.interior.curtain.lit" shaders (there is also "eut2.interior.spatial.lit", but SCS not use it anywhere now).
It's without "interrior mapping" effect, but allow to create new models with that shaders.
Because ConverterPIX not support new attributes from mat, after import from .scs, you MUST open .pit file, and replace all:
interior_unit_room_dimensions --> aux[0]
interior_atlas_dimensions --> aux[1]
interior_glass_color --> aux[2]
* Fixed "amod" shader - changed "decal_blending_factors" attribute to "aux" (and removed old properties)
* Added support for "Decal blending factors" attributes in material tab
* Updated "amod" nodes to better reflect that shader in blender
* Corrected TexGen description in shader_presets.txt
* Added support for old tg0 (aux[0]) and tg1 (aux[1]) float2 values
* Changed tool version (added ".1" to version number)
 to distinguish my edits from official SCS version. Author is also added.
* Reverted "upside-down" envmap fix (caused problems elsewhere)
* Fixed wrong order of “envmap” and “shadow” flavors in lamp shader
* Fixed problems with exporting models with "interior" shader (missing UV1 in model data) by adding "Material Mapping" setting below attributes (need more testing)
* Added "Interior Window Tool" in sidebar, which allows you to enable/disable glass reflection effect on interior shader (by changing UV tile). It's possible, that other shaders with "glass" reflections also support that.
* Added support for "anim" flavor in "lamp" shader
* Added support for "dif.spec.mult.dif.iamod.dif.add.env" shader
- Fixed "aux[5]" in "eut2.building.asafew.a.lvcol.day" shader.
- Added support for "baked" shader (with flavors).
- Changed "Specular Color" input in "add_env" node from required to optional (because "baked" shader don't use it)
- Fixed problem with imported
- Added parts starting with "_col" to collisions
- Added automatic replace for outdated "window.day/night" shaders to "window.lit".
- Added missing flavors in some "building" shaders
- Added support for "building.add.env.lvcol.day"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant