This is going to be a bit long but needs it to be covered in detail.
While making the new AI garbage truck driveable as a player truck I came across a strange behavior of the truckpaint shader on an animated part, the main lift arms. On only the parts which are a part of the animated windows model(which is what I am piggybacking to use for an exterior animation, defined in cabin definitions) the mask texture specified inside of any paintjob definition is not used, and instead the part will only use the base color as specified in that paintjob def. The same occurs with colormask enabled in a paintjob def. I have screenshots displaying the behaviors below and there will be 4 game.log files for each of the 4 cases I tested, starting from game fully quit to fully quitting before doing the next one, on a profile with no active mods besides the garbage truck.
Windows 10 64bit
Version 1.45.0.54s
Always reproducible
Animated(Windows Model), no .colormask flavor
game.log : https://cdn.discordapp.com/attachments/ ... me.log.txt
Setup in blender
[ external image ]
In game with a paintjob that has an airbrush texture, the arms(animated model) do not use the texture like the rest of the truck, only base color(white)
[ external image ]
In game with a colormask paintjob, colors on the color picker represent which model parts are on which colors of the mask texture; the arms use the base color even though they should be green
[ external image ]
Non-Animated(Cabin Model), no .colormask flavor
game.log: https://cdn.discordapp.com/attachments/ ... me.log.txt
Setup in blender
[ external image ]
In game with a paintjob that has an airbrush texture, the arms(cabin) this time use the texture, but the rest of the animated parts(hydraulics and forks) still use only base color(white)
[ external image ]
In game with a colormask paintjob, colors on the color picker represent which model parts are on which colors of the mask texture; the arms use the correct color but the rest of the animated parts use the base color(white)
[ external image ]
It gets stranger if I enable the .colormask shader flavor inside of Blender and set it to the texture I used for the custom colored paintjob (separate_paint in the screenshots) the animated parts used that texture, which should not affect the final result in game if I recall, and no response to changing the mask colors in-game or the base color.
Animated(Windows Model), .colormask enabled and set to separate_paint texture in blender
game.log: https://cdn.discordapp.com/attachments/ ... me.log.txt
Setup in blender
[ external image ]
In game with a paintjob that has an airbrush texture, the arms use the color of the texture/mask attributes that is set in the blender tools
[ external image ]
In game with a colormask paintjob, colors on the color picker represent which model parts are on which colors of the mask texture; I have changed the green slightly to show that the arms are not affected. They should be a desaturated green but are still the pure bright green.
[ external image ]
Non-Animated(Cabin Model), .colormask enabled and set to separate_paint texture in blender
game.log: https://cdn.discordapp.com/attachments/ ... me.log.txt
Setup in blender
[ external image ]
In game with a paintjob that has an airbrush texture, the arms use the texture correctly but the other animated parts have the same behaviour of using the colormask texture which should not affect the in-game result.
[ external image ]
In game with a colormask paintjob, colors on the color picker represent which model parts are on which colors of the mask texture; I have changed the green slightly to show that this time the arms are affected, with the other animated parts being unchanged.
[ external image ]
The main issues happen once the geometry becomes animated and the material is truckpaint.skinned.
Odd (incorrect?) behaviour of truckpaint shader on animated models
-
- Posts: 33
- Joined: 05 Mar 2021 15:46
Odd (incorrect?) behaviour of truckpaint shader on animated models
#1 Post by Sk3leCreeper » 01 Jul 2022 00:43
Jump to
- Forum Rules and Announcements
- American Truck Simulator
- ↳ Announcements
- ↳ General discussion about the game
- ↳ Frequently Asked Question
- ↳ Help center - player to player
- ↳ Technical Problems
- ↳ Gameplay Questions
- ↳ Mods
- ↳ Maps
- ↳ Map assets
- ↳ Vehicles
- ↳ Trucks
- ↳ Trailers
- ↳ Others
- ↳ Truck accessories
- ↳ Trailer accessories
- ↳ Traffic
- ↳ Skins
- ↳ Sound
- ↳ Help requests
- ↳ Modding Guides
- ↳ Others
- ↳ Physics
- ↳ Media
- ↳ Real world
- ↳ Game
- ↳ Feature Wishlist and Suggestions
- ↳ Game Localization
- ↳ Bugs
- ↳ Bugs 1.49
- ↳ Bugs 1.48.5
- ↳ Bugs 1.48
- ↳ Bugs 1.47
- ↳ Bugs 1.46
- ↳ Bugs 1.45
- ↳ Bugs 1.44
- ↳ Bugs 1.43
- ↳ Bugs 1.42
- ↳ Bugs 1.41
- ↳ Bugs Archive (1.0 - 1.40)
- ↳ Bugs 1.0
- ↳ Bugs 1.1
- ↳ Bugs 1.2
- ↳ Bugs 1.3
- ↳ Bugs 1.4
- ↳ Bugs 1.5
- ↳ Bugs 1.6
- ↳ Bugs 1.28
- ↳ Bugs 1.29
- ↳ Bugs 1.30
- ↳ Bugs 1.31
- ↳ Bugs 1.32
- ↳ Bugs 1.33
- ↳ Bugs 1.34
- ↳ Bugs 1.35
- ↳ Bugs 1.36
- ↳ Bugs 1.37
- ↳ Bugs 1.38
- ↳ Bugs 1.39
- ↳ Bugs 1.40
- ↳ Linux Beta Testing
- ↳ Mac OS Beta Testing
- ↳ Vanilla Gamers
- ↳ Off topic and other voices
- Euro Truck Simulator 2
- ↳ Announcements
- ↳ General discussion about the game
- ↳ Experiences with control devices in game
- ↳ Joystick/joypad
- ↳ Steering wheel + pedals
- ↳ Other
- ↳ What is your favourite online radio station in game?
- ↳ Frequently Asked Questions
- ↳ Help center - player to player
- ↳ Technical Problems
- ↳ Gameplay Questions
- ↳ Mods
- ↳ Maps
- ↳ Map assets
- ↳ Vehicles
- ↳ Trucks
- ↳ Trailers
- ↳ Others
- ↳ Truck accessories
- ↳ Trailer accessories
- ↳ Traffic
- ↳ Skins
- ↳ Trucks
- ↳ Trailers
- ↳ Sound
- ↳ Help requests
- ↳ Modding Guides
- ↳ Others
- ↳ Physics
- ↳ Media
- ↳ Real world
- ↳ Photos
- ↳ Videos
- ↳ Game
- ↳ Screenshots
- ↳ Videos
- ↳ Feature Wishlists and Suggestions
- ↳ Game Localization
- ↳ Wrong translations
- ↳ Basque
- ↳ Bulgarian (Bulgaria)
- ↳ Chinese (China)
- ↳ Croatian (Croatia)
- ↳ Czech (Czech Republic)
- ↳ Danish
- ↳ Dutch
- ↳ English (UK)
- ↳ English (US)
- ↳ Estonian (Estonia)
- ↳ Finnish
- ↳ French
- ↳ German
- ↳ Greek languages
- ↳ Hungarian (Hungary)
- ↳ Italian
- ↳ Japanese (Japan)
- ↳ Lithuanian
- ↳ Norwegian
- ↳ Polish (Poland)
- ↳ Portuguese (Portugal)
- ↳ Portuguese (Brazil)
- ↳ Romanian
- ↳ Russian
- ↳ Serbian
- ↳ Serbian (Cyrillic)
- ↳ Silesian
- ↳ Slovak (Slovakia)
- ↳ Slovenian (Slovenia)
- ↳ Spanish
- ↳ Turkish (Turkey)
- ↳ Ukrainian
- ↳ Vietnamese
- ↳ Afrikaans (South Africa) - not finished
- ↳ Bosnian - not finished
- ↳ Catalan - not finished
- ↳ Chinese (Taiwan) - not finished
- ↳ Dutch (Belgium) - not finished
- ↳ Galician - not finished
- ↳ Georgian - not finished
- ↳ Korean - not finished
- ↳ Latvian - not finished
- ↳ Norwegian Nynorsk - not finished
- ↳ Spanish (Latin America and the Caribbean) - not finished
- ↳ Swedish - not finished
- ↳ Bugs
- ↳ Bugs 1.49
- ↳ Bugs 1.48.5
- ↳ Bugs 1.48
- ↳ Bugs 1.47
- ↳ Bugs 1.46
- ↳ Bugs 1.45
- ↳ Bugs 1.44
- ↳ Bugs 1.43
- ↳ Bugs 1.42
- ↳ Bugs 1.41
- ↳ Bugs 1.40
- ↳ Bugs 1.39
- ↳ Bugs Archive (1.1 - 1.38)
- ↳ bugs 1.3.0
- ↳ bugs 1.4.1
- ↳ Bugs 1.4.3
- ↳ Bugs 1.4.4
- ↳ Bugs 1.4.5
- ↳ Bugs 1.4.6
- ↳ Bugs 1.4.8
- ↳ Bugs 1.4.12
- ↳ Bugs 1.5.2
- ↳ Bugs 1.6.0
- ↳ Bugs 1.6.1
- ↳ Bugs 1.7
- ↳ Bugs 1.7.1
- ↳ Bugs 1.7.2
- ↳ Bugs 1.8
- ↳ Bugs 1.9
- ↳ Bugs 1.10
- ↳ Bugs 1.11
- ↳ Bugs 1.12
- ↳ Bugs 1.13
- ↳ Bugs 1.14
- ↳ Bugs 1.15
- ↳ Bugs 1.16
- ↳ Bugs 1.17
- ↳ Bugs 1.17 Scandinavia
- ↳ Bugs 1.18
- ↳ Bugs 1.19
- ↳ Bugs 1.20
- ↳ Bugs 1.21
- ↳ Bugs 1.22
- ↳ Bugs 1.23
- ↳ Bugs 1.24
- ↳ Bugs 1.25
- ↳ Bugs 1.26
- ↳ Bugs 1.27
- ↳ Bugs 1.28
- ↳ Bugs 1.30
- ↳ Bugs 1.31
- ↳ Bugs 1.32
- ↳ Bugs 1.33
- ↳ Bugs 1.34
- ↳ Bugs 1.35
- ↳ Bugs 1.36
- ↳ Bugs 1.37
- ↳ Bugs 1.38
- ↳ Linux Beta Testing
- ↳ Mac OS Beta Testing
- ↳ Bugs
- ↳ Suggestions
- ↳ Vanilla Gamers
- ↳ Off topic and other voices
- WORLD OF TRUCKS
- ↳ Bugs (1.32 Open Beta)
- SCS Blog and Websites
- Public research
- ↳ American Truck Simulator
- ↳ Euro Truck Simulator 2
- ↳ ETS2 - dashboards at night
- Blender Tools
- ↳ General discussion
- ↳ Frequently Asked Question (FAQ)
- ↳ User Tutorials & Tools
- ↳ Bugs
- Older SCS Truck & Bus Games
- ↳ Hard Truck: 18 Wheels of Steel
- ↳ 18 Wheels of Steel: Across America
- ↳ 18 Wheels of Steel: Pedal to the Metal
- ↳ 18 Wheels of Steel: Convoy
- ↳ 18 Wheels of Steel: Haulin'
- ↳ 18 Wheels of Steel: American Long Haul
- ↳ 18 Wheels of Steel: Extreme Trucker
- ↳ 18 Wheels of Steel: Extreme Trucker 2
- ↳ Euro Truck Simulator
- ↳ German Truck Simulator
- ↳ UK Truck Simulator
- ↳ Trucks & Trailers
- ↳ Bus Driver
- ↳ SCANIA Truck Driving Simulator
- ↳ Mods
- ↳ Maps
- ↳ Models
- ↳ Trucks
- ↳ Trailers
- ↳ Skins
- ↳ Trucks
- ↳ Trailers
- ↳ Others
- ↳ Media
- ↳ Bugs
- Older SCS Hunting Games
- ↳ Hunting Unlimited Series
- ↳ Deer Drive
- Offtopic and other voices
Who is online
Users browsing this forum: No registered users and 1 guest