Skip to content

add Inter-Quake Model (IQM) Importer - #4265

Merged
kimkulling merged 3 commits into
assimp:masterfrom
Garux:IQM
Jan 17, 2022
Merged

kimkulling merged 3 commits into
assimp:masterfrom
Garux:IQM

Conversation

@Garux

@Garux Garux commented Dec 18, 2021

Copy link
Copy Markdown
Contributor

Basic import support here. Possible imporvements:

  • iqe ASCII flavor support (intended for export only however)
  • import animations (srsly no clue on this topic)
  • figure out what are 4-component tangents in this format (tangents w/o bitangents are not enough)
  • support version 1 format
  • support all possible custom vertex array data types (only trivial compatible ones atm)

@Garux

Garux commented Dec 18, 2021

Copy link
Copy Markdown
Contributor Author

Am i supposed to fix all these MSVC warnings?
While latter are question of style, the first 'block': unreferenced formal parameter is questionable.
It's really unused in LE code, good solution would be https://en.cppreference.com/w/cpp/language/attributes/maybe_unused.
And after all these are fine diagnostic warnings, but not pointing to actual errors.

@RichardTea

RichardTea commented Dec 21, 2021 •

Copy link
Copy Markdown
Contributor

Thanks for this new format!

Yes, assimp needs to build without warnings.
Hiding variables is almost certain to cause future bugs, if only because a bad merge will still compile but do something else entirely...

There's very few big-endian targets left in common usage - x86/amd64 and ARM are all LE - so the whole function should be elided for almost all build environments.

I'd suggest you no-op the swap_block() function unless AI_BUILD_BIG_ENDIAN is defined.
It's not really a "maybe", after all.

@Garux

Garux commented Dec 24, 2021

Copy link
Copy Markdown
Contributor Author

Fixed these warnings.
However the fact, that only MSVC emits these warnings, looks like inconsistency. May be they must be disabled for MSVC or enabled for others?

@kimkulling

Copy link
Copy Markdown
Member

Looks good, CI is on its way. Sorry for the delay!

@kimkulling
kimkulling merged commit 3cca102 into assimp:master Jan 17, 2022
@kimkulling

Copy link
Copy Markdown
Member

Merged, thanks a lot for this great contribution.

@RichardTea

RichardTea commented Jan 23, 2022 •

Copy link
Copy Markdown
Contributor

@Garux
Excellent, thank you!

Fixed these warnings. However the fact, that only MSVC emits these warnings, looks like inconsistency. May be they must be disabled for MSVC or enabled for others?

In my experience the three major compilers emit slightly different sets of warnings, usually all valid.
I assume a lot of it is due to the order of parsing, optimisations and code generation in the toolchains - in this case you won't get a warning if the unused variable is passed onto the swap function, but you will if swap was already inlined by a previous step.
I'm sure clang and gcc also inline it eventually of course!

@tellypresence tellypresence added IQM Bugs related to the IQM format. 3D Format Support Feature request for new 3D format importer labels Apr 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3D Format Support Feature request for new 3D format importer IQM Bugs related to the IQM format.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants