ItsCubeTime / FastPBR

Fast PBR Viewport Render is a tool that lets you fetch curvature, AO, normal maps, transparency, matID and height from the camera youre currently looking through or directly from your viewport. It uses Blenders "Render viewport" operator which renders pretty much exactly what you see on screen or what the camera you are looking through currently has within frame. Therefore its extremely flexible as "what you see is what you get" and as you can use it ANYWHERE to render ANY sort of geometry or scene. It works by modifying your render settings and renderer (it uses Eevee and workbench for maximum performance), it can render out several 4K maps in the matter of seconds, making it versatile and useable for projects where you need to do a lot of rendering (and hence cant afford any time lost for waiting). It also comes equipped with a flexible, configurable and automatic file naming and folder hierarchy system that lets you move and name your images wherever you want based on custom & automatically generated variables that describes your images.
25 stars 2 forks source link

It asks for an external Python module and still doesn't activate although I install it [3.4] #2

Open MicheleGiunto opened 1 year ago

MicheleGiunto commented 1 year ago

Whenever I try to enable the addon Blender freezes for a bit. Then it shows this Traceback (most recent call last): File "(path-to)\Blender\3.4\scripts\modules\addon_utils.py", line 333, in enable mod = import(module_name) File (path-to)\Blender\3.4\scripts\addons\fast_pbr_viewport_render__init__.py", line 129, in import imgui ModuleNotFoundError: No module named 'imgui'

I tried opening a Windows terminal and running

pip install imgui[full]

Still no luck activating it.

ItsCubeTime commented 1 year ago

Hi 👋Thats strange. Not impossible that 1.6.2 had some first-time install issue that I wasnt aware of. Can you try the latest release that I just uploaded? https://github.com/ItsCubeTime/FastPBR/releases/latest

I also recorded a fresh-install video for you: https://youtu.be/wev76s-1FG0

I should add btw that running

pip install <pkgname>

in a terminal calls the pip installation on your path - not the one in your Blender installation, so if you were to install pip packages manually (something you shouldn't have to do, as my addon will install all dependencies for you) you would have to make sure its the pip installation that comes with blender that you're calling. Running something like:

import subprocess
import sys
subprocess.check_call([sys.executable, "-m", "pip", "install", "imgui"])

in Blenders Python console could probably work though - this is in fact exactly what my addon is running under the hood (for several dependencies, but again, my addon does this for you)

MicheleGiunto commented 1 year ago

Thank you very much dude!