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

298 Commits

Author SHA1 Message Date
7e387fda48 Don't bake shadows for objects with no drawables
I fail to understand why Blender thinks this is legit, but oh well...
Also, as a bonus, we no longer clobber values in the GoodNeighbor tracker.
I wonder how many bugs this will fix?
2016-06-20 18:54:04 -04:00
0b1c4a4f45 Add an operator to reset modifiers to default 2016-06-20 18:39:02 -04:00
dfa448adcb Ensure modifier dependency sanity post-deletion
This changeset ensures that if a dependant modifier's dependency is
deleted that the aforementioned modifier is deleted as well. Since this is
something of a large change, we ask for the user to confirm the operation
before actually doing so.
2016-06-20 18:08:37 -04:00
24f7442d88 Allow soft volumes to be added to Lamps 2016-06-20 14:22:56 -04:00
04d7af8827 Tighten up static light baking object select algo.
It tried to bake some stupid stuff before, eg objects with no materials.
The bug was related to items being removed from a list during a loop. This
has been corrected by looping backwards by index.
2016-06-19 22:14:55 -04:00
46a094057f Lightmap Mod: Don't expose tracebacks to the user
Rather, inform the user in a standardized way when nothing was baked.
Beats the heck out of seeing a random traceback!
2016-06-19 21:22:55 -04:00
f603295225 Shit. 2016-06-19 20:42:13 -04:00
e65f7a3965 Fix a wait bug in Responder Command reenabling
Responder commands now wait until the current command finishes, even if
the command is the last in the chain. Previously, the final command would
reenable the logic modifier when the penultimate command finished.
2016-06-19 19:49:55 -04:00
b1db07132a Merge pull request #35 from Hoikas/sounds
Sounds
2016-06-19 19:40:17 -04:00
fd3026021a Implement Sound logic nodes 2016-06-19 19:38:14 -04:00
8e262f815c Allow message nodes to export multiple messages
This shim is needed in some cases for plSoundMsg
2016-06-19 19:20:27 -04:00
36f0ac194d Implement SoundEmit modifier
This sound emitter modifier is almost as fully functional as PlasmaMAX's various sound emitter components. Additional functionality was added to C korlib so that artists can specify OGG Vorbis sound files. If korlib is not compiled, only WAVE sounds can be utilized in Korman. This fixes some of the more fiddly bugs related to exporting to CWE that were seen in PyPRP.

Sound nodes to be implemented...
2016-06-19 19:19:12 -04:00
b29f4ebf75 Implement Plasma Sound loading
This allows us to use Blender's Sound datablocks, despite it actively
opposing our attempts to do so. Meaning the artist can pack their sounds.
:)
2016-05-30 21:01:59 -04:00
cb6541675a Change to Blender 2.77 style bpy.types.Image.bindcode.
This idiotic change was introduced in stealth mode from 2.76 to 2.77. It has something to do with 3d textures, supposedly. I think the person who made this change is simply an asshat...
2016-05-21 20:13:59 -04:00
8c43462ae0 Merge pull request #28 from Jrius/master
Animated physicals + no clamped stencils
2016-02-21 15:56:41 -05:00
5289bf0735 Fix NULL LayerAnimation base layer crash
Ok, so, the exporter incorrectly assumed it created all plLayerAnimations.
In reality, nodes could create the plLayerAnimation first. If the material
exporter recreates the object, bad things happen, and an invalid
plLayerAnimation is added to the hsGMaterial. UruExplorer then goes
KABLOOEY!!!
2016-02-19 18:26:17 -05:00
jb
36a3750372 Only one underscode in make_physical_movable (ack !) 2016-02-19 22:34:36 +01:00
jb
ce2d393099 Move make_physical_movable and make it private 2016-02-18 22:03:26 +01:00
e1251dd545 Merge branch 'rt-lights' 2016-02-15 21:55:30 -05:00
1553985392 Some style nitpicks 2016-02-15 21:55:12 -05:00
f869bbf640 Match lamp export settings to PlasmaMax's settings. 2016-02-15 21:49:17 -05:00
ffd0e6ed8a Be more careful about toggling renderability 2016-02-15 18:53:26 -05:00
1dfaace9b1 Don't arseplode if lightmaps are not baked 2016-02-15 18:44:05 -05:00
8970758f8e bpy.types.Mesh.materials is an ebil liar! 2016-02-15 18:39:09 -05:00
1ad2b73a74 Don't wreck the layer selection in LM previews 2016-02-15 18:25:56 -05:00
a11b1a92b2 __enter__ must return a value 2016-02-15 18:18:42 -05:00
80ad230863 Log objects that won't be baked 2016-02-15 18:14:07 -05:00
ff0a98115f Fix incorrect export times 2016-02-15 17:55:45 -05:00
jb
f895348b21 Move physics handling code outside of post_export 2016-02-15 21:40:59 +01:00
57ae752e50 Merge pull request #31 from Deledrius/plDist_plFade
Add plDistOpacityMod and plFadeOpacityMod.
2016-02-15 15:25:25 -05:00
0aaf048468 Add plDistOpacityMod and plFadeOpacityMod. 2016-02-15 12:22:24 -08:00
26cca8889a Merge pull request #30 from Hoikas/lightmaps
Lightmap Modifier Refactor
2016-02-15 13:06:13 -05:00
deb80dfd17 Add render layer selection to lightmap modifier 2016-02-15 08:52:31 -05:00
17c26ac3f4 Lightmap/Autocolor garbage collection 2016-02-15 08:52:30 -05:00
2b3656af39 Refactor lighting code to limit bake_image calls 2016-02-15 08:52:30 -05:00
2883289e06 Merge pull request #29 from Deledrius/NameConstant_fixes
Fix parsing of Python scripts which use variable Booleans.
2016-02-12 19:19:36 -05:00
b350f0b67b Use return statement consistently. 2016-02-11 20:19:16 -08:00
a15e01bcfa Fix parsing of Python scripts which use variable Booleans.
Some of Cyan's old scripts predate Python supporting Booleans,
which leaves us with variables where we expected constant values.
This change intercepts these cases and replaces them, avoiding an
exception in Korman when it tries to shove one of these strings
into a boolean attribute.

Also included is a new visitor for proper name constants, support
for which was added in Python 3.4.  This will allow future scripts
to use them and be recognized correctly.
2016-02-11 20:19:06 -08:00
jb
e15eccfac5 Move animated physical code into anim post_export + remove a useless test 2016-02-10 22:26:46 +01:00
jb
b73489337e Physical objects can be animated 2016-02-07 12:09:07 +01:00
jb
1b0e2e715e Don't force clamping on stencils 2016-02-07 11:32:36 +01:00
55566c908a Convert os.path usage to pathlib. ++code_quality
This closes #26
2016-02-01 21:14:12 -05:00
9e66db01a0 Flip the flopped images
Export all images right-side up. OpenGL flips them because fail, so we
have to do a bit of work to correct that. Thankfully, this operation is
not as slow as I thought.

NOTE TO SELF: remember, texture page updating would be nice to have...
2016-01-30 22:11:59 -05:00
e499690f05 Merge pull request #25 from Hoikas/addcolorxalpha
Port better alpha blending from PyPRP
v0.03
2016-01-24 22:17:01 -05:00
9cbb9b791a kBlendAlpha is illegal with kBlendAlphaMult and kBlendAlphaAdd 2016-01-24 22:11:33 -05:00
5c4f167a29 Port better alpha blending from PyPRP 2016-01-24 22:02:49 -05:00
bc66d8ac7a Implement a LinkToAge Message Node
Closes #16
2016-01-24 21:40:45 -05:00
4a7f0eaea9 Expose kAlphaTestHigh for halos 2016-01-24 21:29:10 -05:00
7d75474d1c Merge pull request #24 from Deledrius/blendererrorerror
Fix typo in exception name so error reporting doesn't throw an error.
2016-01-20 00:08:57 -05:00
d8e69fa09b Fix typo in exception name so error reporting doesn't throw an error. 2016-01-19 21:05:46 -08:00