4
4
mirror of https://github.com/H-uru/korman.git synced 2025-07-14 02:27:36 -04:00
Commit Graph

891 Commits

Author SHA1 Message Date
d7372acebd Fix #281.
The default definition of `pre_export()` (for documentation purposes)
was hiding the real default implementation of `pre_export()`, causing
any modifiers relying on said default implementation to export nothing.
2021-08-20 17:02:43 -04:00
ccc921b4dc Merge pull request #278 from Hoikas/movable_lamps
Don't mark lights in a group as `kLPMovable`.
2021-08-19 16:38:38 -04:00
db1e088112 Don't mark lights in a group as kLPMovable.
It looks like simply attaching a lamp to a group already has fairly
major implications for how it's exported. If you're adding a lamp into
a group, then you are basically saying, "I only want to affect these
specific objects.", so marking them as movable (meaning, "apply me
to all objects") doesn't really make sense in that context.
2021-08-18 06:30:38 -04:00
533719e94e Merge pull request #277 from Hoikas/chain_satan
Clearly deliniate the circles of hell.
2021-08-17 12:08:29 -04:00
aff3a42bd4 Clearly deliniate the circles of hell.
If we've unleashed Satan on a material, he will perform his dark magick
on the material colors. Therefore, we need to prefix the satanic
materials with something other than "RTLit_" lest the plain old runtime
lit materials be infected by the prince of darkness.
2021-08-17 02:50:53 -04:00
809581ed60 Fix non-determinism in Python material attributes.
The dumb string lookup probably worked most of the time, but with recent
changes that can cause layers and materials to be renamed to things not
matching the pattern exactly, it's better to explicitly lookup the keys.
This will prevent Dynamic Text Maps from seemingly "breaking" for no
reason just because the lighting strategy changes.
2021-08-16 06:15:09 -04:00
982a54dbf5 Merge pull request #274 from Hoikas/fix-weird-node-warping
Fix weird node warping.
2021-08-16 03:57:02 -04:00
014a21b295 Remove manual stack walking for bottom layers. 2021-08-15 04:06:14 -04:00
8c62ef677a Bump HSPlasma for plLayerInterface.bottomOfStack. 2021-08-15 03:34:12 -04:00
a2d4d3f7e2 Add ./build.ps1 -Dev.
This will let you build just the C++ parts of Korman for local usage. It
probably needs to be paired with a batch file to supply the needed
arguments.
2021-08-15 03:33:07 -04:00
9cd8eecf61 Fix Blender 2.79b+VS2013 build issues. 2021-08-15 03:32:28 -04:00
b100652d58 Fix ./build.ps1 -Classic to work with VS2013. 2021-08-15 02:18:08 -04:00
5a4479ffa7 Ensure parent objects generate CoordinateInterfaces. 2021-08-14 07:47:09 -04:00
524232352c Merge pull request #275 from TikiBear/patch-11
Warn if more than 8 RT lamps are on a material.
2021-08-14 03:15:29 -04:00
eb7914fb4b use container count
Co-authored-by: Adam Johnson <AdamJohnso@gmail.com>
2021-08-14 00:01:14 -07:00
8994203b9f use container count
Co-authored-by: Adam Johnson <AdamJohnso@gmail.com>
2021-08-14 00:00:51 -07:00
c705ec182d Warn if more than 8 RT lamps are on a material.
I'm probably late to the party, but I have found that PotS can't handle more than 8 RT lamps on one material. This might vary by target engine, though, so no failure pronouncement is made.
2021-08-13 22:53:34 -07:00
3cb1d43e96 Bonus: Minor performance improvement. 2021-08-14 00:27:01 -04:00
fec2891751 Apply visual transforms for objects with no CI.
Per report on the forum, objects with enable/disble visuals can go
missing https://forum.guildofwriters.org/viewtopic.php?p=75582#p75582
2021-08-14 00:26:00 -04:00
e2bfec6da9 Merge pull request #272 from Hoikas/ci2
Add Korman Buildsystem for CI.
2021-08-12 18:19:33 -04:00
6a67325229 Bump HSPlasma GIT_TAG for Korman 0.12. 2021-08-12 18:09:06 -04:00
ff9e0e3eab Merge pull request #273 from Hoikas/logic_persistence
Update LogicWiz modifiers for deferred logic export.
2021-08-12 17:40:42 -04:00
13478aeb7e Unify programatic generation of PFM nodes. 2021-08-11 21:51:22 -04:00
b36218aa57 Update LogicWiz modifiers for deferred logic export.
In a previous changeset, the Advanced Logic modifier was changed to
defer exporting logic until the very end of the export process. This
means that many nodes are designed with the assumption that all
non-logic PRP objects are fully exported by the time they are exported.
LogicWiz modifiers, however, violated this assumption by exporting
during the main export() phase.

So, this adds a new `pre_export()` phase for all modifiers that lets
them generate logic trees and even entirely new Plasma Objects safely.
Futher, old LogicWiz modifiers have been tweaked to not leak junked
objects if the export fails in the middle of those modifiers.
2021-08-11 21:05:53 -04:00
a0d04cd928 Bump version for Korman 0.11a. v0.11a-b4k 2021-08-10 21:06:36 -04:00
4e8593597e Merge tag 'v0.11a' into ci2 2021-08-10 21:06:24 -04:00
2bb1c174c7 Add "Blender for Korman" and build/package process.
This will allow us to automate releases with the Blender 2.79
"experimenntal nightly" codebase. This is great because the newer
Blender uses Python 3.7 (instead of 3.5). This pulls from my fork of
Blender, which has a number of build improvements added on top.
v0.10-b4k
2021-08-10 21:06:04 -04:00
88ce61f3c5 Merge pull request #270 from Jrius/vcol_artifacts_removal
Vcol artifacts removal
2021-08-10 15:58:18 -04:00
a193e60644 Avoid BMesh Blender crash 2021-08-06 23:28:45 +02:00
8c6e49ea50 Smarter handling of BMesh. Sharp edges are ignored only if auto-smooth
is on, just like Blender does.
2021-08-06 15:22:16 +02:00
fc77f67ecc Vertex color smoothing, preserving sharp edges 2021-08-06 11:42:04 +02:00
4adbeb7cc2 Merge pull request #269 from Hoikas/lighting_no_uvtouching
Don't touch my UV maps!
2021-08-05 12:11:28 -04:00
0435a943b6 Move uv select all per @Jrius. 2021-08-05 12:10:46 -04:00
9c6d862fff Merge pull request #268 from DoobesURU/AddBackExp2Fog
Add Back Exp2 Fog
2021-08-05 11:39:51 -04:00
b46188b22e Update Fog Type Descriptions 2021-08-05 11:22:22 -04:00
b18ce1c5c0 Fix "no valid lights" in lightmap preview op. 2021-08-04 18:09:19 -04:00
0f5f9f34c8 Regenerate lightmap UVs on ephemeral meshes. 2021-08-04 18:09:19 -04:00
dc93d93b32 Apply suggestion from CR.
Co-authored-by: Jrius <2261279+Jrius@users.noreply.github.com>
2021-08-04 17:09:04 -04:00
d22b7170b7 Fix mesh manager chicken/egg problem. 2021-08-04 14:47:18 -04:00
1c21295432 Apply suggestions from CR.
Co-authored-by: Jrius <2261279+Jrius@users.noreply.github.com>
2021-08-04 14:01:53 -04:00
069818e7bd Add Back Exp2 Fog
Reintroduces the Exp2 Fog option and also updates the "none" fog function description.
2021-08-03 20:33:28 -04:00
6f83192909 Add a few more profiling helpers.
Especially useful is the log print before converting the mesh verticies.
This is the slowest part of Korman, per profiling.
2021-08-03 19:54:29 -04:00
6af1a40072 Don't touch my UV maps!
It's better to trust the artist to know what they are doing if they
provide a uv map for the lightmap modifier to use. Closes #265.
2021-08-03 16:29:07 -04:00
15bbcc3d89 Fix #266.
This ensures that autocolor layers are disposed before their temporary
mesh objects are disposed.
2021-08-03 15:09:33 -04:00
1a60a47ef5 Merge pull request #261 from Hoikas/lighting_noregen
Persistent Baked Lighting
2021-08-02 20:17:47 -04:00
304f23bd00 Don't touch my Col layer!
In user testing, the "Bake All" operator overwriting the "Col" layer was
blowing away too much manual shading, reducing the usefulness of the
feature severely. This changes us to using the "autocolor" layer and
making it a somewhat ephemeral coloring layer. Any "autocolor" layer
generated by the exporter should be removed when the export finishes.
Otherwise, it should persist.
2021-08-02 15:28:02 -04:00
9517c06741 Remove incorrect crash hack.
This didn't seem to fix the problem in previous testing; however, it
seems to have been fixed in force push change.
2021-08-01 15:53:27 -04:00
8634cf3e89 Simplify lightmap packing. 2021-08-01 15:53:27 -04:00
b2859a3a41 Don't track lightmaps by name.
That's bugprone and can lead to pain.
2021-08-01 15:53:27 -04:00
7eb9111236 Add vcol clear warning.
This is so artists who manually paint their vertex colors on won't be
surprised when they are nuked from orbit.
2021-08-01 15:53:27 -04:00