Skip to content
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

Help wanted with importing a map #9

Open
CrabHead opened this issue Jun 11, 2023 · 2 comments
Open

Help wanted with importing a map #9

CrabHead opened this issue Jun 11, 2023 · 2 comments

Comments

@CrabHead
Copy link

Yes you've heard me right a map. For testing i chose C1A0 from Half-Life. It's not very big, just a few rooms and corridors. I extracted the map from Half life source, exported it to .dxf, then from blender i exported it to .fbx and loaded it into the c47edit as a mesh file. There were a lot of mesh types so i chose Z2DOBJ. It loads just fine, but it's untextured thus invisible. However when i try to load it in game, the game crashes.

I think i got the mesh type wrong but i don't know which one to choose since there are so many of them. Can someone help or atleast tell me what i'm doing is impossible to do?

@AdrienTD
Copy link
Owner

Hi,

Please note that the editor is a WIP, and especially model import is something I implemented recently and haven't tested extensively so there will be bugs.

Though right now if you want a better chance in importing models:

  • In Blender, export your map into the glTF format (.glb or .gltf), as I have mainly tested the editor with this format.
  • When creating the object, use ZSTDOBJ. Instead of creating the object you can also replace the mesh of an existing object as a test.
  • Once imported, verify if the textures are imported in the Tools > Textures window, if you see some textures having their size shown as red, that means the size is invalid. To prevent crashes due to incorrect texture size, but sure to disable texture compression and set a renderer that is NOT Glide in the game's settings.

@CrabHead
Copy link
Author

CrabHead commented Jun 13, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants