Git Product home page Git Product logo

Comments (5)

cochrane avatar cochrane commented on May 23, 2024

Special shout-out to TR5,10, which manages to feature both in the same area. E.g. coords 45190, 30012, -10496, rotation 60, 0, 0

from opentomb.

Lwmte avatar Lwmte commented on May 23, 2024

I must note that before animated textures were broken, there was a special script command UVRotate, which resembled TR4/5 script command with the same name. When such command was present in level script, it forced UV rotation animating method on particular animation texture sequences. So what we see here is classic animation sequences are working, while UV-rotated ones are broken. They are just two different types.

What may give you some clues is, recently TeslaRus made a code which kind of converted UV-rotated ones to classic mode, by generating pre-calculated frames with different texture coordinates. He did this to simplify code, because dealing with UV coordinates on the fly could be tricky with shader code (as I remember that). It is done in TR_GenAnimTextures function.

What is more weird is that UVRotate type works on entity polygons! As example, see TR4's first level, where you have a big waterfall and pool ("your average priceless seaweed" et cetera). Both types are working there.

from opentomb.

vvs- avatar vvs- commented on May 23, 2024

BTW, @TeslaRus actually has fixed that issue in his branch. Somebody need to port it to master.

from opentomb.

TeslaRus avatar TeslaRus commented on May 23, 2024

To port this changes, first are needed port / review animation textures applying. I.E. I apply animation to the transparency textures BEFORE adding to BSP tree, so I can split any polygons as I want, without animation textures broking (+it works faster: less textures coordinates transformation, but information about lighting are loosed (it is fixable)). I did not touch opaque textures. + I change anim sequences structures (UV animation type refactoring).
About fixing: not at all working... library.tr4: water surfaces (not streams) is frozen (sequences count = 0 in level data, anim_textures count = 1). May be in Core Design was "default textures animations"...

from opentomb.

Lwmte avatar Lwmte commented on May 23, 2024

Closing this, as it's directly related to #17.

from opentomb.

Related Issues (20)

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.