Git Product home page Git Product logo

Comments (8)

DDeokk avatar DDeokk commented on June 12, 2024 1

@DizzyThermal

Yes, that's correct.
Happy implementing

from tkviewer.

DizzyThermal avatar DizzyThermal commented on June 12, 2024

@DDeokk, thanks for providing this info!

If I understand your explanation correctly, the stencil_data could indicate which areas of a tile/object are transparent? When applying a Static Object (with transparency) on top of a Tile (A or B - without transparency), I could determine the transparency of the object using this stencil data? Does that sound right?

Either way. I will look into this more tonight and see where I get with it.

Also, "stencil_data_offset" would be the "unknown_offset" in the "tile_entry" structure, correct?

Thanks again!

from tkviewer.

wattostudios avatar wattostudios commented on June 12, 2024

Hi Dizzy,

I added some info about other EPF archives at http://forum.xentax.com/viewtopic.php?f=18&t=16943&start=15 if you're so interested. Not really sure if you're wanting to take your tool this way or not, but thought I'd provide the info anyway.

watto

from tkviewer.

DizzyThermal avatar DizzyThermal commented on June 12, 2024

Thank you for the DSC/FRM/DNA file structures @wattostudios

The tool's file_reader module is intended to handle all TK file formats, so these are great additions!

As for where/how to present all the different image formats/types in the QT5 GUI is another question. I'm open to suggestions/contributions on GUI/layout structure - as this is not my forte.

Thanks again!

from tkviewer.

DizzyThermal avatar DizzyThermal commented on June 12, 2024

@wattostudios I was successful in reading in the DSC file (ignoring chunks and blocks, for now).

When I try to read the EPF image, my width values are incorrect (i.e., -65514)
I'm not sure if the problem is the calculation of EPF width and height (right-left, top-bottom), or the actual dimensions have offsets. You did mention Width = Width + (0-X-Position), but I'm afraid I'm not sure how to apply it.

My EPF File definition has slightly changed, but it does take the right-left, top-bottom approach to determining width and height:
https://github.com/DizzyThermal/TKViewer/blob/master/file_reader.py#L99

Any help would be appreciated. Thanks!

from tkviewer.

DDeokk avatar DDeokk commented on June 12, 2024

The right-left, top-bottom approach is perfect. I wonder the data type or acquisition of values in your code might matter.

from tkviewer.

DizzyThermal avatar DizzyThermal commented on June 12, 2024

@DDeokk, thanks for the clarification.

I think the remaining question I have is how to interpret the stencil_data..

I have been trying to understand your explanation in the first post, but am struggling to implement it correctly

from tkviewer.

DizzyThermal avatar DizzyThermal commented on June 12, 2024

Stencil implemented to fix transparency issues

from tkviewer.

Related Issues (16)

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.