4
4
mirror of https://github.com/H-uru/korman.git synced 2025-07-13 18:17:38 -04:00
Commit Graph

1034 Commits

Author SHA1 Message Date
9626b22409 Allow user to specify a light group for light maps 2015-06-13 22:35:34 -04:00
3f2a3928d1 Remove user Lamps from autobake lightgroups 2015-06-13 22:07:26 -04:00
837c7f6693 Implement SDL exclude/volatile states 2015-06-13 21:22:16 -04:00
d303faced6 Fix many "no valid images found to bake to" bugs 2015-06-13 16:41:42 -04:00
d6664e25ae Better light operator settings 2015-06-13 16:14:38 -04:00
48b09e97c2 Partially revert physical tweak 2015-06-13 16:08:35 -04:00
bd6e21a22e Don't screw with the user's context... 2015-06-13 15:58:43 -04:00
7c96745555 Tweaks for physical exporting
- Applying scale to *all* objects in the scene is now a pre-export step.
- Make sure we always export the physical's coordinates--this matches
  Plasma's behavior.
2015-06-13 15:54:22 -04:00
4ae31de59d Don't export auto vertex light if there is an LM 2015-06-13 13:09:19 -04:00
dcf0b4840c More robust mipmap fix 2015-06-13 12:35:58 -04:00
92e2eddff6 Fix for lightmaps not being exoprted 2015-06-13 12:34:02 -04:00
63752d7882 Don't generate 1x1 mip levels due to bug in Plasma
Cyan calculates the level sizes wrongly such that a 1x1 DXT5 mip level
only has one block for alpha and therefore lacks the color block. This can
cause Blender to crash with an access violation.
2015-06-12 21:18:41 -04:00
b68a2a930a A few more layer flags... 2015-06-12 17:03:47 -04:00
54259c455f Register Plasma Modifiers in a more orthodox way.. 2015-06-11 22:35:07 -04:00
41b53a9c31 Merge remote-tracking branch 'hoikas/logic-nodes' 2015-06-11 22:31:56 -04:00
89dd050110 Add "Advanced Logic" Modifier
This modifier allows us to manually construct a Plasma logic node tree and
have it export.
2015-06-11 19:47:37 -04:00
af2229ec64 Expose some useful ResponderModifier flags 2015-06-11 19:47:37 -04:00
1b5b229a33 Export Region Sensors 2015-06-11 19:47:36 -04:00
53b1b66258 Responder nodes now export themselves!
Please note this does not address logic triggers or region sensors. Those
will be added in a future commit.
2015-06-11 19:47:36 -04:00
b9381e078e Replace RespStateList crazy with a nicer solution
Many thanks to Deledrius for pointing out an example of this hackery in
Blender's node groups!
2015-06-11 19:47:35 -04:00
4ecf262c61 Footstep Region Modifier: Logic Node test case
This commit adds a footstep region modifier that exports nothing at the
moment. This is just a test case for logic node generation. If you want to
bake footstep regions into logic nodes, select an object and execute
`bpy.ops.object.plasma_logicwiz()`. :)
2015-06-11 19:47:35 -04:00
5192be428e Begin work on Logic Nodes UI 2015-06-11 19:47:35 -04:00
2ae0c5f7f8 MAJICK: Save the export properties... 2015-06-11 19:46:56 -04:00
f2d4485515 Fix potential issue with export log creation 2015-06-11 18:54:36 -04:00
3dede084b5 Bump to Blender 2.74 because I can... 2015-06-07 16:45:53 -04:00
fdfd939640 Export lamps as RT lights :D
This includes changes to the light baking code to ensure that we don't
bake runtime lights. This code has several places it could be optimized in
the future when we have larger ages to test against.
2015-06-07 12:58:43 -04:00
8bb8683f7c Implement crappy vertex color light baking...
This should make the average age look a little bit better. I hope... If
you want to get rid of this crappy lighting, create a vertex color layer.
Or, better yet, add a stupid lightmap modifier!
2015-06-06 21:15:44 -04:00
65d1d71416 Rudimentary Lightmap Baking
Still lots of considerations:
- Need to make faux lightgroups to avoid baking Plasma RT lights
- Still need to bake vertex colors
- Still need to export Plasma RT lights (D'oh!)

But, this is definitely a step in the right direction!
2015-06-06 00:57:03 -04:00
fa2c7e30cb Reenable more default panels...
- All render/baking stuff
- Vertex Colors
- UV Maps
2015-06-06 00:42:28 -04:00
b5509f71af Ensure we're in object mode before exporting.. 2015-06-05 13:17:46 -04:00
60ced28b77 Implement PanicLinkRegions
This also includes a helper for the manager.add_object god-function that
ensures modifiers are added to the appropriate SceneObject :)
2015-06-04 14:14:44 -04:00
6e00ae79cd Basic physical collision modifier 2015-06-04 14:14:43 -04:00
acf5db5887 Don't crash if there are unknown modifiers...
... This can happen if you save a blend file with a downstream codebase
with some newfangled modifier, then try to export with an upstream plugin
that does not have said modifier.
2014-07-14 23:34:40 -04:00
52752b9dda CI and other modifier improvements
These were picked over from the larger basic physics commit. I don't want
to hold up better modifier stuff while waiting on more physics code.
2014-07-14 23:22:35 -04:00
40ee31c8dd Better plMipmap management 2014-07-14 22:59:13 -04:00
b0d9b8eb68 Remove a debug print I accidentally left in 2014-07-13 18:18:38 -04:00
6ac720d0d5 Export ALL THE UVs! 2014-07-12 17:23:28 -04:00
bd655475f5 moar xform 2014-07-12 17:23:04 -04:00
02603e6021 Fix GeoSpan transforms 2014-07-12 15:13:45 -04:00
5a2691eedb Update DSpan finalize log messages
They now match what we do in the texture management things and stuff
2014-07-12 00:21:15 -04:00
c084a773ad Fix #5
We now harvest information about texture images throughout the export
process and don't pull the trigger until we're totally done. There are
still some issues with regard to confusing UI, but we'll get to it.
2014-07-12 00:15:46 -04:00
f3b7ae3ad5 Pure Python korlib
Yeah, korlib was a bit faster than this implementation, but, honestly,
having a second python module made life more difficult than it needed to
be. This fixes that.
2014-07-11 22:40:33 -04:00
a2bde5ff28 More log tweaking... 2014-07-11 18:09:24 -04:00
3c0d2150b6 Update to Blender 2.71
2.71 upgrades to MSVC++2013, so we can use the newfangled log2. This fixes
a rounding bug as well :)
2014-07-10 19:32:58 -04:00
9424311c65 Improve UV extraction 2014-07-10 19:13:09 -04:00
de5125b079 Correctly handle logger flushing 2014-07-10 19:12:33 -04:00
7b6ac6f582 Don't create new DSpans for every mesh...
Yeah, bad things happen when you forget to implement __eq__
2014-07-10 15:37:31 -04:00
8a8c5fdeb1 Fix #3
If we don't reference the SceneNode from each SceneObject, we can't get
the SceneNode from an ObjInterface. For some strange reason, plClient
overrides the plDrawableSpans SceneNode at runtime. This caused the DSpan
to be removed from all nodes.... :/
2014-07-10 00:04:54 -04:00
fa6c9f890e Automate ObjInterface creation
This fixes DrawInterfaces not having their owner plSceneObject set. It
also makes life easier for when we will export more plObjInterface
subclasses.
2014-07-09 21:34:38 -04:00
2fb944c9ce Fix #2
It appears that we were storing PyHSPlasma objects in class attributes, so
they were being held after the plResManager went away--therefore their
keys were nuked. We should probably be holding keys and not objects, but
this fix works regardless.
2014-07-06 17:43:14 -04:00