forked from Fast-64/fast64
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[F3D] Rewrite BSDF to F3D converter and add an F3D to BSDF converter
Rewritten BSDF to F3D converter with support for picking up on which and how layers are used for merging them correctly in bad model imports, support for glTF2 styled color mul, picking up on uv gen, filtering, mapping, etc, if a material is lit, if a material is a cutout, transparent or opaque (even in 4.2) Brand new F3D to BSDF converter for outside fast64 context workflows where simple materials are desired. I mainly targeted glTF and obj compatible models. The new implementations should also make non sm64 people pretty happy aha! Code may need some clean up, I'll consider undrafting tomorrow morning but all the features and bugs should be review ready.. hopefully
- Loading branch information
Showing
10 changed files
with
1,307 additions
and
163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
from .f3d_material_converter import * | ||
from .f3d import * | ||
from .sm64 import * | ||
from .oot import * # is this really needed? | ||
from .panels import * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,32 @@ | ||
from bpy.types import PropertyGroup | ||
from bpy.props import PointerProperty | ||
|
||
from .f3d_parser import * | ||
from .f3d_material import * | ||
from .f3d_render_engine import * | ||
from .f3d_gbi import * | ||
from .bsdf_converter import F3D_BSDFConverterProperties, bsdf_converter_register, bsdf_converter_unregister | ||
|
||
|
||
class F3D_Properties(PropertyGroup): | ||
""" | ||
Properties in scene.fast64.f3d. | ||
All new scene f3d properties should be children of this property group. | ||
""" | ||
|
||
bsdf_converter: PointerProperty(name="BSDF Converter", type=F3D_BSDFConverterProperties) | ||
|
||
|
||
classes = (F3D_Properties,) | ||
|
||
|
||
def f3d_register(register_panel=True): | ||
bsdf_converter_register() | ||
for cls in classes: | ||
register_class(cls) | ||
|
||
|
||
def f3d_unregister(register_panel=True): | ||
for cls in reversed(classes): | ||
unregister_class(cls) | ||
bsdf_converter_unregister() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
from .operators import bsdf_converter_ops_register, bsdf_converter_ops_unregister | ||
from .ui import bsdf_converter_panel_draw | ||
from .properties import F3D_BSDFConverterProperties, bsdf_converter_props_register, bsdf_converter_props_unregister | ||
|
||
|
||
def bsdf_converter_register(): | ||
bsdf_converter_ops_register() | ||
bsdf_converter_props_register() | ||
|
||
|
||
def bsdf_converter_unregister(): | ||
bsdf_converter_ops_unregister() | ||
bsdf_converter_props_unregister() |
Oops, something went wrong.