Skip to content

WIP === Blender exporter plugin#790

Draft
portaloffreedom wants to merge 6 commits intomasterfrom
blender_exporter
Draft

WIP === Blender exporter plugin#790
portaloffreedom wants to merge 6 commits intomasterfrom
blender_exporter

Conversation

@portaloffreedom
Copy link
Collaborator

@portaloffreedom portaloffreedom commented Jan 3, 2024

pybind11 required

Building the plugin is disabled by default. To configure cmake to build the plugin, build and use the plugin, follow these instructions (Linux instructions):

# configure
cmake -B build-blender-exporter -DWICKED_PIC_CODE=ON -DBLENDER_EXPORTER=ON
# build
cmake --build build-blender-exporter

# complete plugin folder (link wicked built library in plugin folder)
cd BlenderExporter/wicked_blender_exporter
ln -s ../../build-blender-exporter/BlenderExporter/pywickedengine.cpython-3*-x86_64-linux-gnu.so

# make plugin visible to blender 4.1 (with a link)
mkdir -p $HOME/.config/blender/4.1/scripts/addons
cd -p $HOME/.config/blender/4.1/scripts/addons
ln -s /${REPLACE_WITH_YOUR_PATH_TO}/WickedEngine/BlenderExporter/wicked_blender_exporter

The enable the plugin inside blender addons

@portaloffreedom portaloffreedom self-assigned this Jan 3, 2024
@portaloffreedom portaloffreedom marked this pull request as draft January 3, 2024 16:21
pybind11 required

Signed-off-by: Matteo De Carlo <[email protected]>
- correct normal reading from Blender, which respects per face smoothing setting
- exporting UVs
- engine initialization separated into a init function
@portaloffreedom
Copy link
Collaborator Author

(rebased to latest master)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants