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

Rewrite #33

Draft
wants to merge 150 commits into
base: main
Choose a base branch
from
Draft

Rewrite #33

wants to merge 150 commits into from

Conversation

SomaZ
Copy link
Owner

@SomaZ SomaZ commented Feb 24, 2024

Fixes:
#31
Adds:
#26
#24
#23
#19

SomaZ added 30 commits April 19, 2022 05:05
nothing finished, don't use yet
getting closer

- PK3 support for everything besides images
- broke ftx loading for now
- need to change the license for the lib files to MIT when I have some time for that
- TODO: fix entity ui code, fix patching bsp files, finialize map importing code, finalize entity loading with new backend
- nearly all entity importing features restored (Model2 handling missing, empty model entities are skipped for now)
- images still need implementation for the VFS
- license blocks removed from the lib files for now
- lots of cleanup
- replacing imp module with importlib
Brushes can now be imported without splitting all faces. This will be handy if one wants to separate them from the bsp model.

Bsp models are now imported on object creation and not ahead of time.

Also lots of prep for finishing map importing.
Needs fixing of imported uvs later.
to get closer to ingame lightgrid sampling.
Now the lightmaps match with q3map2 exported lightmaps, which makes it easier to work with in the end.
Only q3 map format is currently supported. BP and V220 will be added later on.
Looks like I've missed this one earlier. script_paths only has named arguments since blender 3.x
Now you can just set the light values of imported lights in the entity properties. It will automatically scale the light values correctly.

Will need to rewrite parts of the light adding code for spotlights to handle their orientation and radius correctly.
Needed to validate the imported mesh before iterating over the meshs polygons. Not sure of that fixes it for bsp models because I couldn't test that for the lack of faulty bsp files. Tested with md3 files though.
Very basic implementation of a md3 asset library builder. It will use the addons base path and will import all md3 files (also from VFS) into one file which gets saved automatically in the selected asset library. Models are put into catalogs based on their relative path to the base path. On import, all models are put into scene collections that are excluded from the scene afterwards so the viewport doesn't explode. Blender starts generating preview thumbnails for the models in the asset library afterwards. I recommend waiting for blender to finish this task and saving the file afterwards again.

Future updates will add classnames to the imported objects, so one can easily drag and drop models into a scene for entity modding.
SomaZ added 30 commits March 25, 2024 23:13
Changes names of the fog objects, removes the distance cull setting from worldspawn distancecull value, set some sane values for speeding up volume rendering.
so they don't get lost to blenders garbage collector over and over again.
I added this in the lib for the bsp entity editor, but it is of no use here.
It was displayed in all properties panels.
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

Successfully merging this pull request may close these issues.

None yet

1 participant