Team Spartan Cookies & Milk Forums
  • Issue Tracker
  • Donations
  • Search
  • Member List
  • Help

Register

Team Spartan Cookies & Milk Forums Garry's Mod Starfall v
1 2 3 4 5 … 18 Next »
Clarification about textures & materials
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Linear Mode
Clarification about textures & materials
29-04-2023, 01:09 PM,
#8
Person8880 Offline
gpj.ecafllorT
*******
Posts: 2,407
Threads: 45
Joined: Sep 2013
RE: Clarification about textures & materials
Looks like GMod overrides the material for sprites/physbeam to use a static texture, whereas the Half-Life 2 texture is indeed animated. If you ask for sprites/physbeam, it's resolving the material, not the texture, hence why it's static.

If you want the animated variant, use the trails/physbeam material instead.

Edit: Actually, it turns out there is a material-level setting needed to get animations to play (specifically, it needs the "AnimatedTexture" proxy). I didn't find this when searching the Valve wiki originally. Looks like none of the materials that use the physbeam texture have this proxy so it's never animated (not even the original Half-Life 2 material). I'd assume the texture list UI is using knowledge of the VTF file to render its animation frames, which isn't something that's exposed to Lua (can only see the number of frames on a texture, but textures can only be retrieved from materials, not file paths).

Thus the only way to get this to be animated would be to generate a new material for it with the animated texture proxy, which isn't exposed to SF.
Find
Reply
« Next Oldest | Next Newest »


Messages In This Thread
Clarification about textures & materials - by The17thDoctor - 26-04-2023, 08:33 PM
RE: Clarification about textures & materials - by Person8880 - 27-04-2023, 04:51 PM
RE: Clarification about textures & materials - by The17thDoctor - 27-04-2023, 05:23 PM
RE: Clarification about textures & materials - by Person8880 - 27-04-2023, 05:56 PM
RE: Clarification about textures & materials - by The17thDoctor - 27-04-2023, 08:59 PM
RE: Clarification about textures & materials - by Person8880 - 29-04-2023, 12:20 PM
RE: Clarification about textures & materials - by The17thDoctor - 29-04-2023, 12:27 PM
RE: Clarification about textures & materials - by Person8880 - 29-04-2023, 01:09 PM
RE: Clarification about textures & materials - by Person8880 - 29-04-2023, 02:43 PM
RE: Clarification about textures & materials - by The17thDoctor - 30-04-2023, 12:42 PM

  • View a Printable Version
Forum Jump:


Users browsing this thread: 1 Guest(s)
Contact UsTeam Spartan Cookies & MilkReturn to TopLite (Archive) ModeMark all forums readRSS Syndication

Powered By MyBB, © 2002-2026 MyBB Group.