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

410 Commits

Author SHA1 Message Date
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
abaf574a68 POC Plasma Synch panel
TODO: This is not hooked up to anything.
2014-06-08 17:48:47 -04:00
acd62b2730 Cleanup Plasma Age+Environment panels
Now they look like something a real human would use, rather than a
many-appendaged monster.
2014-06-07 23:27:00 -04:00
f38d32e37c Remove operators when unloading Korman.
No need to keep cruft around!
2014-06-07 22:41:19 -04:00
81b5ca888c Merge branch 'master' of https://github.com/H-uru/korman
Conflicts:
	korman/exporter.py
2014-06-07 22:22:57 -04:00
59d37ed830 Begin separating the exporter.
I want the logic and the helper functions to be separate, doggone it!
2014-06-07 22:20:46 -04:00
ef673ef99a Merge pull request #1 from Lunanne/PEP8
Pep8
2013-07-11 12:55:33 -07:00
916ae79833 Clean up 2013-07-11 21:29:59 +02:00
680cb90086 Plasma Game -> Korman 2013-06-29 18:01:15 -04:00
6da45b02e5 Bump (and fix) blender version 2013-06-29 15:20:24 -04:00
345b024b2c Cleaner PageAddOperator 2013-06-29 15:19:20 -04:00
f9d554d391 Less fiddly ExportException 2013-04-05 20:18:58 -04:00
a0e2d1504c Blender 2.66 looks nice... 2013-04-05 20:18:57 -04:00