Coder Social home page Coder Social logo

itscubetime / fastpbr Goto Github PK

View Code? Open in Web Editor NEW
25.0 3.0 2.0 15.94 MB

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.

Python 100.00%
blender-addon blender blender3d blender-scripts blender-plugin blender-exporter renderscript

fastpbr's People

Contributors

itscubetime 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

Watchers

 avatar  avatar  avatar

fastpbr's Issues

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

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.

blender3.4 Failed to enable the 1.7.0 plug-in

Read prefs: C:\Users\D\AppData\Roaming\Blender Foundation\Blender\3.4\config\userpref.blend
libpng warning: iCCP: cHRM chunk does not match sRGB
The Zen of Python, by Tim Peters

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than right now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!
STACK SIZE: 0<-
Exception in thread Thread-1:
Traceback (most recent call last):
File "G:\Blender_Program\blender-3.4\3.4\python\lib\threading.py", line 1016, in _bootstrap_inner
self.run()
File "G:\Blender_Program\blender-3.4\3.4\python\lib\threading.py", line 953, in run
self._target(*self._args, **self.kwargs)
TypeError: 'MainThread' object is not callable
Attempting
┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│Fast PBR Viewport RenderError: --- │
│No module named 'cv2' │
│--- │
│when attempting to import cv2, we're assuming that you dont have opencv-python installed and will try to install it for you!│
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see pypa/pip#5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
Collecting opencv-python
Downloading opencv_python-4.7.0.72-cp37-abi3-win_amd64.whl (38.2 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0.3/38.2 MB 13.5 kB/s eta 0:46:49
ERROR: Exception:
Traceback (most recent call last):
File "C:\Users\D\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\fast_pbr_viewport_render_init
.py", line 106, in attemptToImportModuleAndInstallItIfItIfTheCorespondingPackageDoesntExist
importlib.import_module(moduleName)
File "G:\Blender_Program\blender-3.4\3.4\python\lib\importlib_init
.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1004, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'cv2'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "G:\Blender_Program\blender-3.4\3.4\python\lib\site-packages\pip_vendor\urllib3\response.py", line 435, in _error_catcher
yield
File "G:\Blender_Program\blender-3.4\3.4\python\lib\site-packages\pip_vendor\urllib3\response.py", line 516, in read
data = self._fp.read(amt) if not fp_closed else b""
File "G:\Blender_Program\blender-3.4\3.4\python\lib\site-packages\pip_vendor\cachecontrol\filewrapper.py", line 90, in read
data = self.__fp.read(amt)
File "G:\Blender_Program\blender-3.4\3.4\python\lib\http\client.py", line 465, in read
s = self.fp.read(amt)
File "G:\Blender_Program\blender-3.4\3.4\python\lib\socket.py", line 705, in readinto
return self._sock.recv_into(b)
File "G:\Blender_Program\blender-3.4\3.4\python\lib\ssl.py", line 1274, in recv_into
return self.read(nbytes, buffer)
File "G:\Blender_Program\blender-3.4\3.4\python\lib\ssl.py", line 1130, in read
return self._sslobj.read(len, buffer)
TimeoutError: The read operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "G:\Blender_Program\blender-3.4\3.4\python\lib\site-packages\pip_internal\cli\base_command.py", line 167, in exc_logging_wrapper
status = run_func(*args)
File "G:\Blender_Program\blender-3.4\3.4\python\lib\site-packages\pip_internal\cli\req_command.py", line 247, in wrapper
return func(self, options, args)
File "G:\Blender_Program\blender-3.4\3.4\python\lib\site-packages\pip_internal\commands\install.py", line 369, in run requirement_set = resolver.resolve(
File "G:\Blender_Program\blender-3.4\3.4\python\lib\site-packages\pip_internal\resolution\resolvelib\resolver.py", line 92, in resolve
result = self._result = resolver.resolve(
File "G:\Blender_Program\blender-3.4\3.4\python\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 481, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
File "G:\Blender_Program\blender-3.4\3.4\python\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 348, in resolve
self._add_to_criteria(self.state.criteria, r, parent=None)
File "G:\Blender_Program\blender-3.4\3.4\python\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 172, in _add_to_criteria
if not criterion.candidates:
File "G:\Blender_Program\blender-3.4\3.4\python\lib\site-packages\pip_vendor\resolvelib\structs.py", line 151, in bool
return bool(self._sequence)
File "G:\Blender_Program\blender-3.4\3.4\python\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 155, in bool
return any(self)
File "G:\Blender_Program\blender-3.4\3.4\python\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 143, in
return (c for c in iterator if id(c) not in self._incompatible_ids)
File "G:\Blender_Program\blender-3.4\3.4\python\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 47, in _iter_built
candidate = func()
File "G:\Blender_Program\blender-3.4\3.4\python\lib\site-packages\pip_internal\resolution\resolvelib\factory.py", line 206, in _make_candidate_from_link
self._link_candidate_cache[link] = LinkCandidate(
File "G:\Blender_Program\blender-3.4\3.4\python\lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 297, in init
super().init(
File "G:\Blender_Program\blender-3.4\3.4\python\lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 162, in init
self.dist = self._prepare()
File "G:\Blender_Program\blender-3.4\3.4\python\lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 231, in _prepare
dist = self._prepare_distribution()
File "G:\Blender_Program\blender-3.4\3.4\python\lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 308, in _prepare_distribution
return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
File "G:\Blender_Program\blender-3.4\3.4\python\lib\site-packages\pip_internal\operations\prepare.py", line 438, in prepare_linked_requirement
return self._prepare_linked_requirement(req, parallel_builds)
File "G:\Blender_Program\blender-3.4\3.4\python\lib\site-packages\pip_internal\operations\prepare.py", line 483, in _prepare_linked_requirement
local_file = unpack_url(
File "G:\Blender_Program\blender-3.4\3.4\python\lib\site-packages\pip_internal\operations\prepare.py", line 165, in unpack_url
file = get_http_url(
File "G:\Blender_Program\blender-3.4\3.4\python\lib\site-packages\pip_internal\operations\prepare.py", line 106, in get_http_url
from_path, content_type = download(link, temp_dir.path)
File "G:\Blender_Program\blender-3.4\3.4\python\lib\site-packages\pip_internal\network\download.py", line 147, in call
for chunk in chunks:
File "G:\Blender_Program\blender-3.4\3.4\python\lib\site-packages\pip_internal\cli\progress_bars.py", line 53, in _rich_progress_bar
for chunk in iterable:
File "G:\Blender_Program\blender-3.4\3.4\python\lib\site-packages\pip_internal\network\utils.py", line 63, in response_chunks
for chunk in response.raw.stream(
File "G:\Blender_Program\blender-3.4\3.4\python\lib\site-packages\pip_vendor\urllib3\response.py", line 573, in stream
data = self.read(amt=amt, decode_content=decode_content)
File "G:\Blender_Program\blender-3.4\3.4\python\lib\site-packages\pip_vendor\urllib3\response.py", line 509, in read
with self._error_catcher():
File "G:\Blender_Program\blender-3.4\3.4\python\lib\contextlib.py", line 153, in exit
self.gen.throw(typ, value, traceback)
File "G:\Blender_Program\blender-3.4\3.4\python\lib\site-packages\pip_vendor\urllib3\response.py", line 440, in _error_catcher
raise ReadTimeoutError(self._pool, None, "Read timed out.")
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.

[notice] A new release of pip available: 22.2.2 -> 23.0.1
[notice] To update, run: G:\Blender_Program\blender-3.4\3.4\python\bin\python.exe -m pip install --upgrade pip
First attempt of importing module failed, launching a new console and attempting from there.
WARNING: Ignoring invalid distribution -illow (c:\users\d\appdata\roaming\python\python310\site-packages)
WARNING: Ignoring invalid distribution -illow (c:\users\d\appdata\roaming\python\python310\site-packages)
WARNING: Ignoring invalid distribution -illow (c:\users\d\appdata\roaming\python\python310\site-packages)
WARNING: Ignoring invalid distribution -illow (c:\users\d\appdata\roaming\python\python310\site-packages)
WARNING: Ignoring invalid distribution -illow (c:\users\d\appdata\roaming\python\python310\site-packages)
ERROR: Pipe to stdout was broken
WARNING: Ignoring invalid distribution -illow (c:\users\d\appdata\roaming\python\python310\site-packages)
WARNING: Ignoring invalid distribution -illow (c:\users\d\appdata\roaming\python\python310\site-packages)
WARNING: Ignoring invalid distribution -illow (c:\users\d\appdata\roaming\python\python310\site-packages)

[notice] A new release of pip available: 22.2.2 -> 23.0.1
[notice] To update, run: G:\Blender_Program\blender-3.4\3.4\python\bin\python.exe -m pip install --upgrade pip
Exception ignored in: <_io.TextIOWrapper name='' mode='w' encoding='gbk'>
OSError: [Errno 22] Invalid argument
WARNING: Ignoring invalid distribution -illow (c:\users\d\appdata\roaming\python\python310\site-packages)
WARNING: Ignoring invalid distribution -illow (c:\users\d\appdata\roaming\python\python310\site-packages)
WARNING: Ignoring invalid distribution -illow (c:\users\d\appdata\roaming\python\python310\site-packages)

[notice] A new release of pip available: 22.2.2 -> 23.0.1
[notice] To update, run: G:\Blender_Program\blender-3.4\3.4\python\bin\python.exe -m pip install --upgrade pip
Fast Pkg install > Output from pip install console

->
Requirement already satisfied: opencv-python in c:\users\d\appdata\roaming\python\python310\site-packages (4.5.5.64)
Requirement already satisfied: numpy>=1.19.3 in g:\blender_program\blender-3.4\3.4\python\lib\site-packages (from opencv-python) (1.22.0)

<-

Traceback (most recent call last):
File "G:\Blender_Program\blender-3.4\3.4\scripts\modules\addon_utils.py", line 333, in enable
mod = import(module_name)
File "C:\Users\D\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\fast_pbr_viewport_render_init_.py", line 129, in
import cv2
ModuleNotFoundError: No module named 'cv2'

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.