-
Notifications
You must be signed in to change notification settings - Fork 16
Particle effects baking support (EFCT) #77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
Mauler125
wants to merge
23
commits into
main
Choose a base branch
from
particle_effects
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Range interval is half open so it should be just arrayElemCount.
If target falls at the end of the range it must be dropped as well since that falls right outside the indexable items by 1.
…oluteOffset() Fix incorrect *invalid offset (i.e. lands on pad bytes)*. We must apply the current base ontop of the field offset as the offsets in `offsetMap` are relative and `targetOffset` is absolute! This problem only existed for sub-layouts that do not start at offset 0 in the absolute root layout.
Off by one, since it indexes into the array it must be tested against modNamesCount-1.
Must be numColumns.
Always use the DataTable_ParseCellFromDocument() helper to retrieve cells, its also faster.
Use sscanf over regex since its faster and parsing vectors is too simple to justify the use of regex.
Make sure width and height aren't zero since they can be if the texture atlas is corrupt.
Do not read more than 256 chars, this can happen if this section is corrupt.
Use range scan instead of manually advancing the iterator since this turns out to be quite slow actually. Range scan is a lot faster.
BinaryIO now returns true if read and write operations were successful, false if they weren't. The size housekeeping logic has also been rewritten. If we seek forward, we will store this amount now and only add it to the total size if we end up writing something at that location. Previously it would always add to the totalSize even if we weren't writing to the seeked pos which is incorrect!
The stat func is faster but not secure as it requires another file system opening query. Use the stream itself. This isn't a major issue since the rest of the code will use the fast readily available calculated size.
Throw error if any read or write operation fails, because at that stage the file on disk or data in memory is corrupt!
If we read less than requested, we will errors anyways. So just check on good().
Just in case some compiler will complain or push garbage here.
For particle effect dictionary.
Still work in progress but its mostly done (should implement everything particle effects require).
Types for the base of particle effects, still WIP because 180 operators need to be reversed still before it can be properly finished. Currently only the parser works, pak writer hasn't been implemented yet (still work in progress).
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Work in progress particle system support. Currently, only the DMX parser works.
Jobs left to be done: