Git Product home page Git Product logo

Comments (6)

DizzyThermal avatar DizzyThermal commented on June 12, 2024 1

Created a topic on ResHax.com to get some hopefully get some collaboration going :)

https://reshax.com/topic/375-nexustk-epfpal-frame-color-animations/

from tkviewer.

DizzyThermal avatar DizzyThermal commented on June 12, 2024 1

I need to breakout the file formats and EPFViewer into its own project, but I do intend on open sourcing the tools 😁

I think the "missing colors" might just be color offsets - on top of cycling the palettes. I still haven't found the perfect "Merchant armor" color.

I'm going to try to do this sometime this week, work got busy - stay tuned!

from tkviewer.

DizzyThermal avatar DizzyThermal commented on June 12, 2024

Using the Masters ward as reference:
mastersward

EPF: shield0.dat:Shield0.epf
PAL: char.dat:Shield.pal

After dumping all the EPF frames, I see 20 frames (using Palette[0]):
image

Focusing on Frame 129 (Front-face of the shield):
Shield0 epf-129

Shield.pal has 22 palettes, so if I scrub the palette from 0-21 for Frame 129, I get:
image

I don't think that simply changing the palette index will achieve the color animation of NTK/Baram.

Maybe the palette index itself doesn't change, but the color within the palette changes - not sure.

EPF/PAL TL;DR:
A palette is an array of 256 colors.. EPFs - for every pixel - point to a particular color within a palette. So each "pixel" in an EPF is 1 byte (0-0xFF -- opposed to 4-bytes rr/gg/bb/aa) pointing to a color within the 256-color palette.. I've never nailed down the correct industry term for this graphics format, maybe Indexed Color Palette?

Anyways, just some notes..

from tkviewer.

DizzyThermal avatar DizzyThermal commented on June 12, 2024

I tried to shift through all the colors of the first palette and wound up with these 256 frames:
image

If there's 8 frames in the animation, I'd think 256 colors / 8 frames = 32 color offset, but if I do that it doesn't seem to work:
image

I think I'm getting close..

from tkviewer.

zaventh avatar zaventh commented on June 12, 2024

Looks like you solved this. Perhaps those findings has implications for #27 as well. I took a look at it for a bit but this was my first time really delving deep into these file formats so I didn't get too far. Maybe I could borrow those fancy tools you have? 🙂

from tkviewer.

DizzyThermal avatar DizzyThermal commented on June 12, 2024

What I wanted to know animation loops was figured out and implemented in this Godot 4.x project:
https://github.com/DizzyThermal/EPFViewer

Closing the issue

from tkviewer.

Related Issues (15)

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.