Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP === Blender exporter plugin #790

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from
Draft

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