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

Register

Team Spartan Cookies & Milk Forums Garry's Mod Starfall v
« Previous 1 2 3 4 5 … 18 Next »
Get RenderTarget texture names
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Linear Mode
Get RenderTarget texture names
10-06-2021, 12:49 PM,
#5
frdhog Offline
Hasn't finished a ship in 2 years
****
Posts: 72
Threads: 31
Joined: Feb 2016
RE: Get RenderTarget texture names
After trying it out, I can't deny the usefulness of sending the object itself but I feel it would be more efficient to just send the texture name itself.

But through my testing, I have found that the name alone doesn't seem to be very helpful as it can't be used with the Material, render.getTextureID or render.setTexture functions. This means we are unable to use 2D render operations such as drawTexturedRectRotated or drawTexturedRectUV. Although I admit a similar effect could be gained with some 3D contexts.

Getting the name would give the ability to get the width and height get if they were lost of somehow, but that would be better suited to a metatable addition.

I realise a texture name may just create more problems (having to create compatability with other render operations) but it allows alternative transportation methods, such as the net library.
Website Find
Reply
« Next Oldest | Next Newest »


Messages In This Thread
Get RenderTarget texture names - by frdhog - 09-06-2021, 07:47 PM
RE: Get RenderTarget texture names - by The17thDoctor - 09-06-2021, 08:02 PM
RE: Get RenderTarget texture names - by Red The Blue Color - 10-06-2021, 10:16 AM
RE: Get RenderTarget texture names - by The17thDoctor - 10-06-2021, 10:35 AM
RE: Get RenderTarget texture names - by frdhog - 10-06-2021, 12:49 PM
RE: Get RenderTarget texture names - by Person8880 - 10-06-2021, 04:23 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.