Giter VIP home page Giter VIP logo

unreal-plugin's Introduction

Sketchfab plugin for Unreal Engine

⚠️ We are currently working on a version for the release of Unreal Engine 5.0 (the latest version of the Sketchfab plugin is only compatible with Unreal Engine 5.0 Early Access).

Unreal Engine plugin to export and import models to and from Sketchfab

Installation

Download the .zip attached to the release matching your OS and UE version and unzip it into the Plugins/ folder of your current project directory, or of the Engine directory structure.

You should end up with a structure such as below:

  • Project installation: PROJECT_DIRECTORY/Plugins/Sketchfab/[Zip content]
  • Engine installation: UE_DIRECTORY/Engine/Plugins/Sketchfab/[Zip content]

If you are using Linux or MacOS, please refer to specific installation steps, issues and workarounds for MacOS and Linux.

Once loaded, the Sketchfab plugins will be available under the Window menu, in the submenus Asset Browser (import) and Exporter:

menu

Latest release

Older releases (Windows only):

Authentication

Please note that a Sketchfab account is required both to download and upload models.

To authenticate yourself, click the "log in" button and enter your Sketchfab credentials. If you encounter errors at this step, please make sure to use the same method you use to connect to sketchfab.com (mail/password, Epic ID, Google, Facebook...).

If you are using an email adress and password, the plugin will ask you to accept additional permissions necessary to download and upload models.

login

If you are a member of an organization, you can choose to use the plugin as an organization member instead of through your personal profile. You will then be able to import and export models from and to projects within your organization.

Download a model from Sketchfab

The Asset Browser plugin allows you to seamlessly search and import:

  • models licensed under Creative Commons licenses from Sketchfab
  • models you published to Sketchfab - included private ones - if you have a PRO plan
  • models you purchased from the Sketchfab Store
  • models from an organization account and associated projects (more info about Sketchfab for Teams)

Browsing through available models

To use the Asset Browser interface, you will first have to select which kind of models you want to browse through (all CC models, purchases or your own models) in the dropdown at the left of the search bar.

Browsing through models is quite similar to Sketchfab's search, and options to filter the results of your search query are available under the search bar:

browser

Double clicking a model thumbnail will give you more information about the selected model and its associated license:

modeldetails

Importing models

You can import models either by selecting Import model on a specific model information window, or by selecting multiple thumbnails from the Asset Browser main window and clicking the Download Selected button.

A progress bar under the model's thumbnail will show the progress of the download.

Once a model has finished downloading, you can import it into your scene by drag-and-dropping the associated thumbnail into your project's Content Browser.

A pop-up will then allow you to modify some import options, as well as prompt you to accept the terms of the selected model's license (all freely downloadable models on Sketchfab are licensed under CC-attribution licenses, which are each associated with various requirements). Here are the import options currently available:

  • Merge meshes: This option will merge all primitives of the downloaded mesh together, resulting in a single Static Mesh. Unchecking it keeps all primitives separated, and can be useful to tweak a model, or to import asset packs for instance.
  • Apply World Transform: Unchecking this option will result in the mesh transforms being ignored upon import.
  • Import Materials: Unchecking this option will only import the geometry of the model, and will ignore materials and textures.
  • Import in New Folder: Checking this option will import every meshes, materials and textures in a new folder of your Content Browser.

importoptions

Please note that downloaded models are cached in a directory on your computer, which you can manually clear by clicking the Clear Cache button.

Importing local gltf models

The Sketchfab plugin allows you to directly import .gltf or .glb models, as well as .zip archives containing such files:

  • Drag and drop the selected .gltf, .glb or .zip archive into the Content Browser of the Unreal Editor.
  • Use the Content Browser "Import" button to select the file to import.

Upload a model to Sketchfab

Beta - available for Unreal Engine versions starting from 4.25 only

The Sketchfab Exporter leverages the GLTF-Exporter plugin to allow direct upload of your 3D models from Unreal to Sketchfab.

The export process should be pretty straightforward if you have already uploaded a model to Sketchfab: fill in information about your model (title, description and tags), select if you want to upload the currently selected objects or the whole level, and set some publication options according to your needs (keep the model as a draft, set it as private or add an optionnal password protection for PRO users).

Depending on how the materials are set-up, you might want to choose to bake the models materials as textures, given that Unreal Engine node materials are not fully compatible with the GlTF file format and Sketchfab.

exporter

You can find more information about the export capabilities - especially regarding materials - of the plugin here. Please note that exporting animations to Sketchfab is not supported yet.

Note regarding upload size limit

Baking textures can often create large files depending on the number of materials and the chosen baking settings. As the maximum size of your uploads depends on your Sketchfab plan, an error message might pop up if this limit is exceeded.

Depending on the characteristics of your models and materials, disabling texture baking - or lowering the baking resolution - as well as making sure that only selected objects are exported can be good ways to get your model to an appropriate size for your plan.

Known issues and limitations

General limitations

  • The plugin currently only imports and exports Static Meshes, meaning animations will not be taken into account, and rigged models will be imported in a default pose, which might not match the corresponding model's pose on Sketchfab.
  • The plugin leverages the GlTF file format for import and export. Some material channels are therefore not supported given the file specification, as well as the differences of rendering technologies between Unreal Engine and Sketchfab (Anisotropy, Cavity, Refraction transparency, Sheen...).
  • Due to visual optimizations performed on sketchfab.com, some depth sorting issues might arise with models using a texture as blending transparency. A possible workaround is to switch the material transparency to opaque if applicable, or manually edit the transparency textures and materials.
  • If you encounter bugs or unexpected behaviour, do not hesitate to report an issue, attaching information about your OS, UE version, and screenshots or log reports if available.

Login errors

If you don't manage to log in to Sketchfab through the plugin (generally due to O.S. errors or web browser incompatibilites, specifically on Linux and MacOS), you can still import Sketchfab models into your project.

To do so, manually download the .zip archive containing the GlTF archive directly from the model page on Sketchfab.com.

You will then need to follow instructions to import a gltf file from your computer.

MacOS and Linux

MacOS

Minizip installation

Before installing the plugin, you will need to install minizip. The prefered installation method is to use Homebrew to install it, which you can install by executing the following command in a terminal window:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Once homebrew is installed, you can install minizip through the following command:

brew install minizip

The MacOS plugin looks for dynamic libraries located in /usr/local/lib/libminizip.dylib.

MacOS known issues

  • The plugin was only tested with MacOS BigSur 11.5 and 11.6. Issues might arise on different versions. In particular, login issues happened while testing the plugin on MacOS Monterey with UE 5.0ea. If you encounter similar issues, please refer to login errors workaround.
  • The plugin was tested with Unreal Engine 4.27 and 5.0ea.
  • Visual issues might arise regarding thumbnails and the login interface scaling on MacOS depending on your screen resolution and DPI settings.

Linux

Minizip installation

Before installing the plugin, you will need to install minizip (libminizip-dev) on your system, by adapting the following command to your package manager:

sudo apt-get install libminizip-dev

The linux plugin expects shared libraries to be located in /usr/lib/x86_64-linux-gnu/libminizip.so.

Linux known issues

  • For Unreal Engine 5.0 early access on Linux, special signs on keyboards other than QWERTY might not be recognized. In particular, you might need to switch your keyboard to QWERTY to input the @ sign (Shift + 2) during the login process, which is for instance not recognized on a AZERTY keyboard.
  • Login is impossible with Unreal Engine 4.27 due to the version of the internal web browser used by Unreal Engine (CSRF error). Please refer to login errors workaround in order to import models.

unreal-plugin's People

Contributors

aurl avatar loicsketchfab avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

unreal-plugin's Issues

UE5 Preview

Hi, any plans to port to UE5 preview? the UE5 Alpha plugin doesnt work with UE5P

Not working

Doesn't appear to be working with 4.26.1
Don't know about other versions as this is my first time trying this plugin.

The models just never download or import. The plugin opens, I can search models, I can login with my SketchFab account, but the Download button does nothing except turn the white bar under the model thumbnail gray. When I try to drag and drop the model into the content browser nothing happens. I'm pretty sure its not even downloading.

SketchFab

Could not import GLTF file scene.gltf

Could not import GLTF file scene.gltf
Failed to open file: C:/Users/??/AppData/Local/UnrealEngine/4.26/SketchfabCache/a3e1493da19d46fca7ae38b376bf9210__temp/scene.gltf

Refusing to download

The assets refuse to download, tried refreshing and even left for two hours and nothing changed

Unreal Engine 5.02

The plguin is not working on UE5 latest release.
Getting this error:
image

And it give another error if I try to rebuild

Hope to see update to this plugn soon

Linux Version

I would like to test the Plugin for Unreal Engine on Ubuntu 20.04.
Can you provide Source Codes?

UE5 Support?

Is there a chance we can get this compiled for UE5?

Does not seem to work with UE 4.26.1

I get an error when starting UE 4.26.1 with this Plugin


Message

Plugin 'Sketchfab' failed to load because module 'SketchfabGLTF' could not be loaded. There may be an operating system error or the module may not be properly set up.

OK

Unable to login

When I try to login to Sketchlab on UE 4.21, it says to update or use a browser compatible with ReCaptcha so I cannot use the plugin. How to solve this?

Plugin

nao entendo a demora para atualizar o plugin

Wish for scale / rotation options

Plugin works well in UE 4.25.
Can not login with Google account (says "unsupported browser"), but with email/password login goes fine.
I really really wish this could have scaling and rotating options in future.
Thank You!

Content?

The attached Binary Release Version does not work for UE 4.18 or any other version. Do you provide updates or at least the source that sombody can continue development?

Adding to C++ projects breaks compilation

Hi! Maybe I am doing something wrong, but it seems that adding a binary-only plugin to a C++ project breaks the compilation. If I add the plugin contents to my project plugins directory and try to recompile the project, the compilation fails with the following error:

Could not find definition for module 'SketchfabGLTF', (referenced via default plugins -> Sketchfab.uplugin)

As a workaround, I have created stub build files in ProjectFolder/Plugins/Sketchfab/Source with the following contents:

ProjectFolder/Plugins/Sketchfab/Source/SketchfabAssetBrowser.Build.cs:

using UnrealBuildTool;

public class SketchfabAssetBrowser : ModuleRules
{
	public SketchfabAssetBrowser(ReadOnlyTargetRules Target) : base(Target)
	{
		bUsePrecompiled = true;
	}
}

ProjectFolder/Plugins/Sketchfab/Source/ZipUtility.Build.cs:

using UnrealBuildTool;

public class ZipUtility : ModuleRules
{
	public ZipUtility(ReadOnlyTargetRules Target) : base(Target)
	{
		bUsePrecompiled = true;
	}
}

ProjectFolder/Plugins/Sketchfab/Source/SketchfabGLTF.Build.cs:

using UnrealBuildTool;

public class SketchfabGLTF : ModuleRules
{
	public SketchfabGLTF(ReadOnlyTargetRules Target) : base(Target)
	{
		bUsePrecompiled = true;
	}
}

Should these files be included with the plugin or did I miss something during the plugin installation process?

I am using UE4.26.2 on Windows 10.

Plugin doesn't import skeletal meshes

Whenever I try to drag & drop any Sketchfab model (which is rigged and has animation) in Unreal's Content browser, it is always imported as a Static mesh with no animations, instead of being imported as a Skeletal mesh. The only thing that get imported are textures, materials and static mesh.

UE5 binaries or source release?

Can the plugin be compiled under UE5 ? If so, I'd like to request a binary release for Unreal Engine 5 or a source release to compile myself.

Missing Modules

Every time I try to use the plugin I get these errors:

The following modules are missing or built with a different engine version:
SKGLTFMaterialBaking
SKGLTFMaterialAnalyzer
SKGLTFExporterRuntime
SKGLTFExporter
SketchfabGLTF
SketchfabAssetBrowser
Would you like to rebuild them now?

Rebuilding doesn't work. I am using the Sketchfab-windows-50ea version of the plugin and UE Version: 5.0.2-20280985+++UE5+Release-5.0

Light map resolution = 4

When importing assets into UE4 (4.27) from sketchfab plugin, it cames with Light Map Resolution = 4 instead of 64!

It's a nightmare because we just realize after building up all the scene (it often tooks 2hs). So we need to change every asset and build again... waste of time.

IMG_8425 2

Texture maps are deleted when I restart my Unreal Engine project (4.27 plugin running UE4.27.1) - Read description.

When I download and import objects from the Sketchfab plugin into my Unreal Engine project, everything works fine. All the textures and materials are in their appropriate folders.

However, when I close and restart my project, all texture maps associated with their materials are deleted leaving my materials with missing texture maps. I have tried saving all assets before closing my project, however the issue still persists. Upon further investigation it seems that the texture maps are being saved as temporary files (Look at file path below). Is there something that I am doing incorrectly or a way I could fix this?

"C:/Users/tl/AppData/Local/UnrealEngine/4.27/SketchfabCache/063de1e307b04e4fab96c328a4a58d36__temp/textures/material_normal.png"

Login window error

Hello Guys I'm trying to log in Sketchfab but it drops the next message

"Forbidden (403)
CSRF verification failed. Request aborted.
You are seeing this message because this site requires a CSRF cookie when submitting forms. This cookie is required for security reasons, to ensure that your browser is not being hijacked by third parties.
If you have configured your browser to disable cookies, please re-enable them, at least for this site, or for “same-origin” requests.
More information is available with DEBUG=True."
image
I'm a noob here so I don't know how to enable cookies on this one :) thanks a lot for your help :)

Can't install plugin because of 'SKGLTFExporter'

I wanted to install the plugin on my Mac for UE5 and UE4.27.
I installed minizip and tried to install the plugin through a project and the engine itselfe and both didn't work because of this error message:

Plugin 'Sketchfab' failed to load because module 'SKGLTFExporter' could not be loaded. There may be an operating system error or the module may not be properly set up.

I run my Unreal Engine projects on my M1 Macbook Air.
Also the dynamic library /usr/local/lib/libminizip.dylib doesn't exist after installing minizip.

Thanks for any help.
Bildschirmfoto 2022-01-23 um 12 16 03

Any action with downloaded model crash the Editor.

Tested model:
https://skfb.ly/6ZQWp

Crash log:
`Assertion failed: Owner->IsMeshDescriptionValid(0) [File:D:/Build/++UE4/Sync/Engine/Source/Runtime/Engine/Private/StaticMesh.cpp] [Line: 2560] Bad MeshDescription on /Game/Models/Track/Track.Track

UE4Editor_Core
UE4Editor_Core
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_Engine
UE4Editor_CoreUObject
UE4Editor_Engine
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_AssetTools
UE4Editor_ContentBrowser
UE4Editor_ContentBrowser
UE4Editor_ContentBrowser
UE4Editor_Slate
UE4Editor_ContentBrowser
UE4Editor_ContentBrowser
UE4Editor_Slate
UE4Editor_Slate
UE4Editor_Slate
UE4Editor_Slate
UE4Editor_Slate
UE4Editor_ApplicationCore
UE4Editor_ApplicationCore
UE4Editor_ApplicationCore
UE4Editor_ApplicationCore
user32
user32
UE4Editor_ApplicationCore
UE4Editor
UE4Editor
UE4Editor
UE4Editor
UE4Editor
kernel32
ntdll`

Thanx!

All textures disappeared after close up

Downloaded few models inside UE 5, closed the project and after I start it again all textures are gone. It was ok few weeks ago. Any ideas how to solve the issue or who to contact regarding this?

UE4Editor-SKGLTFExporter.dylib tries to load minizip from wrong directory on M1 Mac

According to the MacOS install instructions, the MacOS Sketchfab plugin looks for minizip under /usr/local/lib/libminizip.dylib. However, as mentioned in the Homebrew docs, Homebrew tries to install stuff in /opt/homebrew on M1 Macs, instead of /usr/local on Intel Macs. As a result, the plugin can't find minizip and crashes.

For reference, homebrew installed minizip on my computer at /opt/homebrew/Cellar/minizip/1.2.11/lib/libminizip.dylib

UE4

hello, how to get rid of the huge size of 3d models

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.