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 … 3 4 5 6 7 … 18 Next »
Image converter
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Linear Mode
Image converter
02-06-2020, 08:22 PM,
#1
jean730 Offline
TSCM Member
***
Posts: 16
Threads: 8
Joined: Dec 2014
Image converter
Hi,
I made a converter to draw images in starfall.
Your image must be a square.
You first need to convert your image with gimp into an html table.
Change the extension of the script from txt to py (Couldn't upload on the forum as .py)
Convert the html table with the python script ,specify the resolution by setting the size variable in the script.
Redirect the output of the script to a file.
Place this file in your starfall folder.
You can then import the file in your starfall project and use the image.
Avoid images that are too big because the upload time increases with the resolution (~10s for 600x600)
For performance reasons it draws one column per tick and stores the image in a rendertarget once entirely drawn.
[Image: screenshot_tscm.jpg]
Have fun !


Attached Files
.txt   htmltosf.txt (Size: 1.39 KB / Downloads: 19)

I love cookies Heart !
Find
Reply
« Next Oldest | Next Newest »


Messages In This Thread
Image converter - by jean730 - 02-06-2020, 08:22 PM
RE: Image converter - by Blackcrow - 02-06-2020, 08:31 PM
RE: Image converter - by The17thDoctor - 02-06-2020, 08:35 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.