Giter Site home page Giter Site logo

nm004 / img2tempdecal Goto Github PK

View Code? Open in Web Editor NEW
6.0 6.0 0.0 84 KB

Image tempdecal.wad converter

Home Page: https://tempdecal-conv.pages.dev

License: MIT No Attribution

Rust 41.04% TypeScript 17.47% CSS 5.26% HTML 36.24%
counter-strike half-life svencoop tempdecal

img2tempdecal's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

img2tempdecal's Issues

Large spray surface area check is unnecessary

The surface area check for Goldsrc sprays appears to be unnecessary. I am able to load sprays with a surface area of 14336 in other Goldsrc titles such as Counter-Strike 1.6 (at least in Goldsrc builds 9920 (current) and 8284 (legacy), I haven't checked with anything earlier than that), so the toggle should be removed and the surface size should always be set to 14336.

For example, here is a spray I have made (in PNG format) with dimensions 112x128:

}LOGO

tempdecal.zip

and here it is in Counter Strike:

20240413090106_1

I believe this misconception started since HLTagConverter wasn't able to process images larger than 12288 for some reason, so everyone assumed that was the maximum size. A very similar thing happened with Source engine sprays, where everyone assumed spray dimensions had to be a multiple of 2 because VTFEdit insisted on it when you imported images (it was trying to create mipmaps for textures, which DO require 2^n dimensions, but DXT textures only need to have their dimensions be a multiple of 4 if you have exactly one mipmap).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.