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

822 Commits

Author SHA1 Message Date
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
7917077ee0 Make white actually be white... 2014-07-05 21:18:16 -04:00
40cea4f0c6 Allow NONE textures to export 2014-07-05 21:17:51 -04:00
a42589099c Fix default page creation
This was broken in the manager/convert separation :/
2014-07-05 19:37:34 -04:00
ef9e17af61 Basic Modifiers
So this is a fairly massive chunk. I tried to get our Plasma Modifiers to
match the Blender Modifier UI fairly well. In the process, I discovered
that Blender "helpfully" hides the modifier button on Empty objects. Bah.

Significant Changes:
- Hid all of the Blender Physics mess
- The Physics context is now the Plasma Object context
- Moved Plasma Object and Plasma Synchronization to the Context Formerly
  Known as Physics
- Added a Plasma Modifier Panel

Here's how you create Plasma Modifiers:
- Add your PropertyGroup to properties.modifiers
- Make sure you have a pl_id naming your modifier, a category, and a label
- Implement the export() method to actually export something useful (not
  goat porn, please)
- Implement your UI draw function in ui.modifiers.
- Wasn't that easy?
2014-07-04 23:56:38 -04:00
55b17ce0af Fix access violation in korlib
When "Use Alpha" was disabled, we didn't write any alpha into the buffer,
which caused squish to overrun (it expected alpha).
2014-07-04 23:41:41 -04:00
e24ca6ff9b Fix incorrect matrix conversion 2014-07-04 23:05:36 -04:00
32dcac54f5 Rudimentary material exporter 2014-06-25 19:25:52 -04:00
2c97257b8d Tweak debug output 2014-06-17 20:11:33 -04:00
3811ad25d5 Don't put -1 in the age file... 2014-06-17 19:04:30 -04:00
144a1f4824 Fix FNI file to not suck 2014-06-16 21:29:52 -04:00
106ed1fb7d Basic opaque meshes exporting...
There are no textures, there are no vertex colors, there are no UVWs...
Just the mesh. Deal with it.
2014-06-16 21:24:17 -04:00
242ed01afb Move exporter logic out of prop_object...
... And commence more work on the exporter. We now export
CoordinateInterfaces! Go us.
2014-06-08 21:22:34 -04:00