Comments (6)
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.
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.
Using the Masters ward as reference:
EPF: shield0.dat:Shield0.epf
PAL: char.dat:Shield.pal
After dumping all the EPF frames, I see 20 frames (using Palette[0]):
Focusing on Frame 129 (Front-face of the shield):
Shield.pal has 22 palettes, so if I scrub the palette from 0-21 for Frame 129, I get:
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.
I tried to shift through all the colors of the first palette and wound up with these 256 frames:
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:
I think I'm getting close..
from tkviewer.
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.
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)
- More about EPF HOT 8
- Unable to launch jar HOT 4
- Only able to open CMP/MAP files? HOT 1
- TKViewer 3.2 (Java + Exe) - Mobs dont load HOT 1
- Ability to change color?
- More about PAL HOT 2
- Support for map tiles and map objects HOT 3
- Support for legend icons? HOT 2
- Palette expansion onto parts HOT 4
- FYI HOT 1
- Update modules to accept new NexusTK data formats HOT 1
- Improve performance HOT 1
- Viewer Freeze on Extraction of Static Objects HOT 3
- Object transparent issue HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tkviewer.