Adam Johnson
e2d18c898a
Implement sound volume animations
9 years ago
Adam Johnson
74610a3eee
Allow for animation value conversioner callables
...
This is useful in the case that we store data that does not quite match
what Plasma uses or expects
9 years ago
Adam Johnson
dbeed6f660
Refactor ATCAnim generation
...
Move all the logic into the AnimationConverter in preparation for
exporting animated sound volumes, spot cones, light color values, etc.
9 years ago
Adam Johnson
47bd42caa8
Relax restrictions on key names
...
These rules made sense in 0.01 when we promoted modifier names. However,
these have been disallowed for over a year now. These restrictions are
sneaky and serve no purpose now.
9 years ago
Adam Johnson
9ab6b16ed2
Implement limited directional lights
9 years ago
Adam Johnson
12e5f8177a
Implement projection lamps
9 years ago
Adam Johnson
c98ddd0ca9
Sort light code properly (alphabetical order, people)
9 years ago
Adam Johnson
638279c85e
Fix some typos in old projection light code
9 years ago
Adam Johnson
8a6d6dbea5
Tweak the material converter to not require valid materials while
...
exporting texture slots
9 years ago
Adam Johnson
f54bba5a7c
Only hide meshes (not lamps -- OOPS!)
9 years ago
Adam Johnson
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?
9 years ago
Adam Johnson
24f7442d88
Allow soft volumes to be added to Lamps
9 years ago
Adam Johnson
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.
9 years ago
Adam Johnson
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!
9 years ago
Adam Johnson
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...
9 years ago
Adam Johnson
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!!!
9 years ago
Adam Johnson
1553985392
Some style nitpicks
9 years ago
Darryl Pogue
f869bbf640
Match lamp export settings to PlasmaMax's settings.
9 years ago
Adam Johnson
ffd0e6ed8a
Be more careful about toggling renderability
9 years ago
Adam Johnson
8970758f8e
bpy.types.Mesh.materials is an ebil liar!
9 years ago
Adam Johnson
80ad230863
Log objects that won't be baked
9 years ago
Adam Johnson
ff0a98115f
Fix incorrect export times
9 years ago
Adam Johnson
deb80dfd17
Add render layer selection to lightmap modifier
9 years ago
Adam Johnson
17c26ac3f4
Lightmap/Autocolor garbage collection
9 years ago
Adam Johnson
2b3656af39
Refactor lighting code to limit bake_image calls
9 years ago
jb
e15eccfac5
Move animated physical code into anim post_export + remove a useless test
9 years ago
jb
b73489337e
Physical objects can be animated
9 years ago
jb
1b0e2e715e
Don't force clamping on stencils
9 years ago
Adam Johnson
55566c908a
Convert os.path usage to pathlib. ++code_quality
...
This closes #26
9 years ago
Adam Johnson
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...
9 years ago
Adam Johnson
9cbb9b791a
kBlendAlpha is illegal with kBlendAlphaMult and kBlendAlphaAdd
9 years ago
Adam Johnson
5c4f167a29
Port better alpha blending from PyPRP
9 years ago
Adam Johnson
4a7f0eaea9
Expose kAlphaTestHigh for halos
9 years ago
Joseph Davies
d8e69fa09b
Fix typo in exception name so error reporting doesn't throw an error.
9 years ago
Adam Johnson
a36c922dce
Implement environment map Vis Regions
9 years ago
Adam Johnson
c57407573a
Implement VisRegions
9 years ago
Adam Johnson
d814d4343a
More lamp powah
10 years ago
Adam Johnson
2e07858ea8
Don't create lights for meshes O.o
10 years ago
Adam Johnson
08eaf47aec
Fix self-parenting child CoordinateInterfaces
10 years ago
Adam Johnson
dfc1b687ab
Don't unconditionally add DynTextMaps
...
They could be referenced in logic nodes, creating a race condition
10 years ago
Adam Johnson
209c65a95b
Actually use UV maps as specified
10 years ago
Adam Johnson
a24a14f090
Actually add DynTextMaps to the layer
...
I swear, one day...
10 years ago
Adam Johnson
338860cadf
Improve DynTextMap generation
10 years ago
Adam Johnson
cb00e75fd4
Don't post process objects with no SceneObject
10 years ago
Adam Johnson
644b22ecfd
Toss modifier display names
...
These would be copied along with entire objects, potentially resulting in
duplicate key names. Better to just toss the whole thing...
10 years ago
Adam Johnson
d27630f501
Delay manipulating the selection
...
We may not be baking anything, so this can be a collosal waste of time.
Observed speedups of several seconds in some ages.
10 years ago
Adam Johnson
314b2fc0d6
Separate out the image packing logic for optimization
10 years ago
Adam Johnson
2d7d58ee39
Move the slow part of alpha testing into korlib
10 years ago
Adam Johnson
d48fd9527f
Begin moving slow things into korlib
...
Korlib will have two components: a python implementation in Korman and a
C++ "_korlib" module that will be insanely fast. Users will apreciate it,
and devs will be glad they don't have to compile the C version.
10 years ago
Adam Johnson
8113be8da6
Remove utils.vector3
...
It's better use the built-in tuple unpacking
10 years ago