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

606 Commits

Author SHA1 Message Date
f94ef379d9 Swim Surfaces don't have to be flat 2018-09-10 20:56:00 -04:00
4779c8c710 Centralize lightmap render layer settings
This allows the artist to control what happens with lightmaps more
easily when there are lots of lightmapped objects in the age.
Fixes #118
2018-09-09 17:16:39 -04:00
a672db70a0 Merge pull request #121 from Hoikas/mod-versions
Modifier Upgrading
2018-09-09 17:16:20 -04:00
647c09e6e6 Implement modifier version upgrading 2018-09-08 20:31:13 -04:00
1f9a872afc Fix another dict check-key then add antipattern 2018-09-08 14:32:53 -04:00
67f2b907e0 Fix #120 2018-09-08 13:33:51 -04:00
2748bc2ab3 Merge pull request #117 from Hoikas/texcache
Texture Cache
2018-09-05 19:28:22 -04:00
fdc6ae3f22 Recache on file updates
Unfortunately, packed images don't appear to store any kind of modify
time attribute. In the case of those, we're just idly hoping that we can
find one on disk.
2018-09-05 19:24:31 -04:00
62f8b59ce2 Add per-image cache controls 2018-09-05 19:24:31 -04:00
72a4cf179e Add export-time texcache controls
Now you can turn off the texture cache entirely or force a recache of
the entire age... :)
2018-09-05 19:24:31 -04:00
2a49634e43 Update korlib for texture caching
Previously, the C korlib used a custom buffer class to avoid a memcpy
operation. However, pyMipmap expects binary string (PyBytes) objects, so
this changes the code to use them. Future work would be to continue
using PyBytes and removing the copy. For now, there are bigger fish to
fry...
2018-09-05 19:24:31 -04:00
654af0e56a Add rudimentary texture cache 2018-09-03 18:35:36 -04:00
eb622e5318 Prefer dict setdefault vs membership tests 2018-09-02 21:36:48 -04:00
7b5eb4f389 Fix "Compose Geometry" out of range progress steps
I like it when we're on step 13 of 7... :D
2018-09-02 21:35:51 -04:00
2b48c6dcc2 Replace a slow string search with isinstance 2018-09-02 21:34:42 -04:00
688407dc82 Ensure the export always has an active_object
Some operators, namely the bake operator, require there to be an
active_object. The lightmap operator manages the selection, so this only
fixes Blender whining about the context being incorrect due to a
technicality.
v0.07
2018-08-31 21:20:12 -04:00
1325a2ad5a Fix game tracker exporting for incorrect versions 2018-08-31 20:23:15 -04:00
1e3f3faa0d Fix potential UnboundLocalError in texture export 2018-08-28 21:36:38 -04:00
dfeb0114de Optimize lightmap dict access 2018-08-28 21:36:20 -04:00
2ebf872fda Check for valid types in add_object 2018-08-28 21:08:14 -04:00
327cf1b5ad Fix spurious responder wait generation
Pull request #114 was causing messages that could wait but had no child
messages to always have waits generated for them. This was causing some
responder states to never be marked completed. This ensures only
messages that need to be waited on have waits generated for them.

Messages that must be waited on include:
- the last waitable message if the responder is attatched to a PFM
- the last waitable message if it's the last message in the state
- any waitable message that has a child message
2018-08-28 20:17:53 -04:00
9a875d262b Merge pull request #115 from Deledrius/plImageLibMod
Add plImageLibMods.
2018-08-28 19:25:15 -04:00
eb75794996 Add plImageLibMods. 2018-08-28 15:35:35 -07:00
0fd9c5cf63 Merge pull request #114 from Hoikas/pfm-resp
Fix responder nodes not notifying python nodes
2018-08-25 21:12:15 -04:00
10b65e9ab9 Merge pull request #105 from Hoikas/cameras
Cameras
2018-08-25 20:51:58 -04:00
97305ee3e9 Clarify camera transitions/cutting
What was previously marked as transition cuts would really only cut goal
and POA tracking. Transition cutting requires the addition of a
transition ovveride. The engine supports cutting transitions on
plCameraMsg receipt by the virtual camera. The option looked sloppy on
regions (and should probably be controlled in the transitions), but it
has been added to camera message nodes for more control.
2018-08-25 20:51:32 -04:00
c91eb32939 Nuke auto circle camera
Tey're probably just a disaster waiting to happen. If you want a circle
camera, that's sufficiently advanced to require a new camera object.
Auto cameras are just a dumb helper.
2018-08-25 20:51:32 -04:00
e2b931fe9e Add Camera Message node 2018-08-25 20:51:32 -04:00
0f26deb65e Camera transition overrides 2018-08-25 20:51:32 -04:00
1ca9456870 Rework camera UI to not be so monolithic 2018-08-25 20:51:32 -04:00
02eb0e71fc Fix some camera bugs due to code shuffling 2018-08-25 20:51:32 -04:00
e21b8d7032 Rail Cameras 2018-08-25 20:51:32 -04:00
c656b0e51a Camera transform and FOV animations 2018-08-25 20:51:32 -04:00
de23d77649 Implement Circle Cameras
This includes circle cameras of the manual and auto-region variety
2018-08-25 20:51:32 -04:00
03746ed681 Fix responder nodes not notifying python nodes
In order for a python script to be notified that a responder attribute
has finished executing, we have to have a callback notify message in the
responder state. Cyan seems to require the artist to do this by hand,
but that seems like such a common operation that we'll add a callback at
the end of every state of any responder linked to a Python node. Cyan's
approach is somewhat more flexible in that you can call back at any
point in the responder, but that seems a bit excessive.
2018-08-25 20:33:26 -04:00
6b3d79a6a1 Merge pull request #103 from Hoikas/image-re
Fix #76
2018-08-25 18:51:36 -04:00
a071dff261 Merge pull request #107 from Hoikas/resp-nodes
Responder State IDs
2018-08-25 18:44:51 -04:00
34403a9720 Fix odd traceback on NodeLinks to invalid sockets
Observed in GoMePubNew blend. I'm assuming this is an old link that was
made to a socket that has since been removed from a node...
2018-08-25 17:31:03 -04:00
2a3a9c59d2 Fix exporting unsaved blends
This would only trigger if the blend file both
- is not saved
- has no valid age name
2018-08-25 17:30:54 -04:00
07e73f7792 Fix export crash introduced by #110
If there were no lightmapping passes, the `max()` call would raise a
ValueError.
2018-08-25 17:30:38 -04:00
f1d36da92a Merge pull request #113 from Deledrius/volsens_typos
Fix Volume Sensor typos.
2018-08-23 23:36:09 -04:00
bae8ad28d1 Fix Volume Sensor typos. 2018-08-23 20:33:25 -07:00
9f99e1974d Update footstep regions for respv2 2018-08-23 21:32:47 -04:00
9ac032ec07 Merge pull request #110 from Hoikas/lightmap-fixes
Fix #108
2018-08-22 19:53:23 -04:00
a7c6a3d07f Merge pull request #112 from Hoikas/page-version
Allow version specific pages
2018-08-21 08:24:01 -04:00
731e65d1c2 Allow version specific pages
This allows the artist to set specific export versions for PRPs,
enabling game version specific age features.
2018-08-20 21:49:34 -04:00
c4d26432ef Merge pull request #109 from Hoikas/export-scene
Fix #106
2018-08-20 16:40:42 -04:00
90a3a97705 Fix #108 2018-08-18 22:03:42 -04:00
5f671fb8e4 Add warning message about small lightmap passes
Each lightmap pass triggers a scene update... a slow, single-threaded
operation.
2018-08-18 21:45:31 -04:00
803f0dd62d Fix #106
Given that the Plasma World (read: age) is defined per scene, it seems
appropriate to limit the export to the current scene. Other scenes could
potentially have other age definitions...
2018-08-18 20:24:59 -04:00