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

918 Commits

Author SHA1 Message Date
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
f52669e78f Allow persistent baked lighting.
You can now bake "finalized" lighting to either vertex colors or a
lightmap image. This can be done either from the toolbox or from the
individual lightmap modifier. The purpose of doing this is to allow the
artist to opt-into a workflow where they can chose when to incur the
performance penalty, instead of on export. The downside is that the
artist now has to manually click a bake button. But, for some Ages,
especially "finished" ones receiving small updates, there is no need to
rebake the lighting each export.
2021-08-01 15:53:06 -04:00
61b0178e05 Fix spurious autocolor generation. 2021-07-31 20:59:41 -04:00
599dccb872 Allow previewing vertex lighting from lightmap mod.
This is the beginning of a workflow loop to (hopefully) improve the
performance of exporting Ages with expensive lighting. This commit
allows you to generate the autocolor layer in the Korman UI and rename
it to `col` to prevent needless re-baking.
2021-07-31 20:59:41 -04:00
6b0b6f8e75 Projection lamps don't need to be LPMovable.
As of the HSPlasma changes to generate proper bounds, this causes
projection lights to affect things more correctly, exposing this
problem.
2021-07-31 20:58:23 -04:00
480b37c89b Add profile button to world export menu. 2021-07-30 21:22:45 -04:00
8c15794dac Fix single-face cube map issue.
If a cube map's image filename did not contain a `_` character, then a
traceback was triggered.
2021-07-30 21:22:04 -04:00
bda85fdf3d Fix #177.
Mark any (re-)generated cube maps as needing to be re-cached.
2021-07-30 21:21:17 -04:00
e6051f6d7e Fix type error with SoundMsg node.
Reported on the forum by dendwaler
https://forum.guildofwriters.org/viewtopic.php?p=75543#p75543
2021-07-28 21:41:02 -04:00
9884e7a061 Fix #260.
Adds the ability to reset and/or delete all modifiers on a single
blender object.
2021-07-27 23:13:50 -04:00
29eb163634 Merge pull request #254 from Hazado/patch-1
Support for quaternion rotation animations
2021-06-14 14:57:31 -04:00
715ac3f414 Re-add data_path arguments for pos and scale controllers. 2021-06-13 21:30:03 -04:00
22ac9ae735 Support all types of rotation animations.
This allows you to explicitly select quaternion animations. These appear
to be the default for bone animations and were silently dropped on the
floor before this change. A selection of quaternion or axis angle
implicitly disables bezier interpolation. Also fix the assumption that
Eulers are always in XYZ order.
2021-06-12 00:37:28 -04:00
4ab6fd7412 Merge pull request #247 from TikiBear/patch-4
Enable Shadow-only Lamps
2021-06-11 13:14:04 -04:00
d1972b7ec8 Merge pull request #251 from Hoikas/rndsound
Implement the Random Sound modifier.
2021-06-09 23:26:28 -04:00
f90a689afa Apply suggestions from code review
Co-authored-by: Adam Johnson <AdamJohnso@gmail.com>
2021-06-09 12:43:38 -07:00
4c621f6457 Support for quaternion rotation animations
Put this together, through trial and error
There are probably better way to do this
Was able to export quaternion animation with it
2021-06-08 20:54:23 -07:00
484813955b Add the "User" surface types.
Because Cyan used these in Relto, and we need them to be available for
ZLZ doggone it.
2021-05-30 19:21:48 -04:00
1ccdd2e116 Adapt sound message node for random sound emitters.
When an emitter is a random sound emitter, then it is no longer possible
to address the individual sounds on that emitter. Instead, you can now
only stop or resume the randomization OR set the volume of the active
sound.
2021-05-05 07:12:37 -04:00
32bd8bd75d Enable Shadow-Only Lamps
Remove bad clause in Shadow-Only lamp logic.
2021-05-03 21:59:42 -07:00
0ac6be879e Implement the Random Sound modifier. 2021-05-02 23:24:19 -04:00
91bace85a4 Merge pull request #249 from Hoikas/grass-shader
Add grass shader modifier (MOUL only).
2021-04-28 19:44:18 -04:00
1a3533f55f Add grass shader modifier (MOUL only). 2021-04-27 21:49:56 -04:00
d07592a3a9 Fix potential crash when converting images exported by GIMP. 2021-04-26 20:40:37 -04:00