dfelinto / blender Goto Github PK
View Code? Open in Web Editor NEWclone of git://git.blender.org/blender.git + my branches
License: Other
clone of git://git.blender.org/blender.git + my branches
License: Other
Здравствуйте, хотелось бы запросить новую функцию.
Интеграция JOSM в blender как плагин, что бы можно через него так же просто рисовать и отправлять данные, в OSM.
Очевидные плюсы:
Если это не возможно реализовать, хотелось бы попросить хотя плагин импорт и экспор, без сложностей из JOSM в blender и обратно.
Прошу Вас связаться и помочь в данной идеи с разработчиками проект https://josm.openstreetmap.de/
Очень надеюсь, что это возможно будет реализовать!
translated with deepL.com:
Hello, I would like to request a new feature.
Integrating JOSM into the blender as a plugin, so that you can easily draw and send data to OSM through it as well.
Obvious advantages:
If this is not possible, we would like to ask for an import and export plugin, without any problems from JOSM to blender and back.
I ask you to contact and help with this idea with the developers of the project https://josm.openstreetmap.de/
I very much hope that it will be possible to implement it!
Hi,
I recently had been experimenting a lot with Blender's Simulations but could not find the settings or tricks that would help me produce something like a muscle tear or a skin tear or cloth tear. I just wanted to point this out as I did see some softwares like Houdini perform this, although I don't exactly know how Houdini works.
hi
Can I ask why blender 3.4 has in the header of a .blend file '304' instead of '340' ?
Because '304' seems to me 3.04 but '340' is 3.40 ?
see: https://fossies.org/linux/blender/doc/blender_file_format/mystery_of_the_blend.html
"I think the wheel timing stuff could be kicked from walk mode
wheel up *= 1.1
wheel down *= 0.909090
something like that should be fine"
I don't know python too well but for some reason whenever I try to import a .fbx file Blender seems to hang for a while until you have to make it crash and possibly lose some work if you haven't saved.
If you have multiple UV's in use and you are using the attribute node to make them show correctly when it comes to baking it looks as though its ignoring the attribute node... or something else is happening that looks similar.
see city.blend
When I tried to build the project with make command, it throwing the following errors which is related git submodule, which I am un aware of and even google could not help, great if some one can add read.me to the project or guide me to resolve this error, I appreciate your effort in reading my error. Thanks
The problem is when I'm baking animation and if object rotation mode is set 'quaternion' but one of it's bones has different rotation mode (XYZ, ZYX, euler) I receive the following error.
Python: Traceback (most recent call last):
File "C:\Software\Steam\steamapps\common\Blender\2.92\scripts\startup\bl_operators\anim.py", line 290, in execute
do_clean=self.clean_curves,
File "C:\Software\Steam\steamapps\common\Blender\2.92\scripts\modules\bpy_extras\anim_utils.py", line 80, in bake_action_objects
return iter.send(None)
File "C:\Software\Steam\steamapps\common\Blender\2.92\scripts\modules\bpy_extras\anim_utils.py", line 111, in bake_action_objects_iter
yield tuple(iter.send(None) for iter in iter_all)
File "C:\Software\Steam\steamapps\common\Blender\2.92\scripts\modules\bpy_extras\anim_utils.py", line 111, in <genexpr>
yield tuple(iter.send(None) for iter in iter_all)
File "C:\Software\Steam\steamapps\common\Blender\2.92\scripts\modules\bpy_extras\anim_utils.py", line 299, in bake_action_iter
euler = pbone.matrix_basis.to_euler(obj.rotation_mode, euler_prev)
ValueError: Matrix.to_euler(): invalid euler order 'QUATERNION'
The error seems not much readable and my suggestion is to add check and raise more descriptive exception at
blender/release/scripts/modules/bpy_extras/anim_utils.py
Lines 297 to 303 in c4ef90f
For example like this:
if ...
else: # euler, XYZ, ZXY etc
if obj.rotation_mode != rotation_mode:
raise Exception(
'Object and bone rotation mode does not match. ' \
f'Object rotation mode is {obj.rotation_mode} and ' \
f'bone {name} rotation mode is {rotation_mode}.')
if euler_prev is not None:
euler = pbone.matrix_basis.to_euler(obj.rotation_mode, euler_prev)
pbone.rotation_euler = euler
del euler
euler_prev = pbone.rotation_euler.copy()
pbone.keyframe_insert("rotation_euler", index=-1, frame=f, group=name)
What do you think?
(walk has a fix for that)
@ideasman42 mind if I implement what I did in Walk mode to the Fly mode?
Mainly I'm using a flag/bitwise system for each direction instead of setting fps->dir fps->axis
I build successfully(get bpy.so and folder name 2.78).When import bpy
, python3 is crashed down.
Here is the log:
BLT_lang_init: 'locale' data path for translations not found, continuing
Color management: using fallback mode for management
bpy: couldnt find 'scripts/modules', blender probably wont start.
Freestyle: couldn't find 'scripts/freestyle/modules', Freestyle won't work properly.
ImportError: No module named 'bpy_types'
ImportError: No module named 'bpy_types'
pyrna_srna_ExternalType: failed to find 'bpy_types' module
ImportError: No module named 'bpy_types'
ImportError: No module named 'bpy_types'
pyrna_srna_ExternalType: failed to find 'bpy_types' module
ImportError: No module named 'bpy_types'
pyrna_srna_ExternalType: failed to find 'bpy_types' module
F1109 11:27:29.472208 1904091136 utilities.cc:322] Check failed:!IsGoogleLoggingInitialized() You called InitGoogleLogging() twice!
*** Check failure stack trace: ***
@ 0x1051d3041
@ 0x1051d6ff2
@ 0x1051d3929
@ 0x1051db2b7
@ 0x1050ef3e0
@ 0x10315359c
@ 0x10355d5d6
@ 0x100058627
@ 0x100058a3e
@ 0x1001164ee
@ 0x10010f65b
@ 0x10010e547
@ 0x100065479
@ 0x1000f0478
@ 0x1000f2510
@ 0x1000f038b
@ 0x1000f05d6
@ 0x1000f05d6
@ 0x1000f05d6
@ 0x1000f05d6
@ 0x1000f2510
@ 0x1000f2617
@ 0x10004031a
@ 0x10000d713
@ 0x1000104b6
@ 0x10010d0d3
@ 0x10010d8d1
@ 0x10355a0e7
@ 0x10355c980
@ 0x10316403e
@ 0x103153654
@ 0x10355d5d6
[1] 36914 abort python3
Hi
am installing the blender in my ubuntu machine as per the documentation here
http://wiki.blender.org/index.php/Dev:Doc/Building_Blender/Linux/Ubuntu/CMake
i can complete the steps untill the "Install the dependencies", but can't compile it with the "Compile Blender with CMake "
cd ~/blender-git/blender make
while run this command am getting the error as like in the attached image
-- Configuring incomplete, errors occurred!
Would be better if the Width and Height fields were changed so that they were aligned vertically on top of each other so that the new 2.70 feature for being able to select both the fields at once to drag change the value works on them (ie click the width field, move the cursor down to the height field while holding the click, and then it drags both fields at the same time, when you move the cursor left/right).
Example:
Width: 512px Margin: 16px
Height: 512px
blender/source/creator/CMakeLists.txt
Line 1234 in 87a0770
Hi,
Mine is a basic 3D CAD drawing application written in C++
I am trying to integrate cycles in my application. I could build cycles scene and session in memory. Now I need to bake textures of each object and export the scene. I could not find how to bake textures. Spent more than a year but no luck. Tried exploring how blender is doing but lost in its RNA and python stuff.
Can you please provide a code sample?
Thanks in advance.
(Walk has a fix for that)
implement a delta mouse system instead
Was really curious to check out your Cycles bake branch, but when trying to git submodule update
, I got the following error:
fatal: Authentication failed for 'https://github.com/dfelinto/blender-translations.git/'
Clone of 'https://github.com/dfelinto/blender-translations.git' into submodule path 'release/datafiles/locale' failed
I'm guessing this is either a private repo, or one that has been moved to a new location. Any chance that can be made public, or the reference can be updated/removed?
Current Object Previews (Thumbnails) are generated with very subtle light condition even on default Cube very hard to see something. Is it possible to increase strength or light type used for this purpose, to make this feature more useful?
2.79b
https://www.dropbox.com/s/b7tacek4m72iiw1/Screen%20Shot%202019-12-06%20at%2020.44.49.png?dl=0
2.82
https://www.dropbox.com/s/i8velz3bvj02avn/Screen%20Shot%202019-12-06%20at%2020.30.14.png?dl=0
Am I right?
2.79 Scene / 2.82 Collection both use Cycles scene lights
For 2.79 Object are used studio lights (GLSL)
For 8.82 Object is used Cycles with temporarily generated Point light?
Thank you for help and sorry if I'm on a totally wrong place to ask.
Hello everyone,
I recently set my Blender 2.93.4's default UI font to Merryweather. When I type anything into text editor of Blender, all the letters overlap each other by huge margin; making it almost difficult to read. I tried this with the default font and everything works fine with it. Also, there is no option to manually set the spacing between the letters in the text editor.
Recent commits in master have broken the python module build (specifically: make bpy)
error: no matching function for call to ‘GHOST_WindowNULL::GHOST_WindowNULL(GHOST_SystemNULL*, const STR_String&, GHOST_TInt32&, GHOST_TInt32&, GHOST_TUns32&, GHOST_TUns32&, GHOST_TWindowState&, const GHOST_TEmbedderWindowID&, GHOST_TDrawingContextType&, bool, int)’
As temporary fix I rolled back the most recent commits to (../ghost/intern/* files)
More specifically (so far only on linux) I ran the following command
git checkout e2102e9
make bpy (to perform actual build)
Image Textures made internally don't refresh after baking... But when switching to cycles the problem solves itself. (EEVEE texture space don't refresh itself) tried reconnecting node sockets but nothing worked so far.
https://imgshare.io/images/2021/02/06/1.png
https://imgshare.io/images/2021/02/06/2.png
I need to use the original mesh (with no multires modifier applied) for the tangent calculation, otherwise the result is all purple
when I bake and go to the image I find it a black image or an alpha image
all the type(combined,normal.color,etc)
what is the problem
Hi there,
I'm getting this error when compiling the bake-cycles branch on Fedora 20, 64bit: http://www.pasteall.org/50638/bash
This is with git rev b7e189c.
I am trying to build the python module on Ubuntu 12.04. I pulled the master branch and installed all dependencies using install_deps.sh.
When, I have WITH_PYTHON_MODULE=OFF - I can easily build blender. However, WITH_PYTHON_MODULE=ON, the compile breaks. I get the error as described below.
Any hints on how to fix it?
Thanks,
Pulkit
In file included from
/blender/intern/ghost/intern/GHOST_SystemNULL.h:34:0,
from
/blender/intern/ghost/intern/GHOST_ISystem.cpp:45:
/blender/intern/ghost/intern/GHOST_WindowNULL.h: In constructor ‘GHOST_WindowNULL::GHOST_WindowNULL(GHOST_SystemNULL*, const STR_String&, GHOST_TInt32, GHOST_TInt32, GHOST_TUns32, GHOST_TUns32, GHOST_TWindowState, GHOST_TEmbedderWindowID, GHOST_TDrawingContextType, bool, GHOST_TUns16)’:
/blender/intern/ghost/intern/GHOST_WindowNULL.h:57:18: error: no matching function for call to ‘GHOST_Window::GHOST_Window(GHOST_TUns32&, GHOST_TUns32&, GHOST_TWindowState&, GHOST_TDrawingContextType&, const bool&, bool, const GHOST_TUns16&)’
m_system(system)
^
/blender/intern/ghost/intern/GHOST_WindowNULL.h:57:18: note: candidates are:
In file included from
/blender/intern/ghost/intern/GHOST_WindowNULL.h:31:0,
from
/blender/intern/ghost/intern/GHOST_SystemNULL.h:34,
from
/blender/intern/ghost/intern/GHOST_ISystem.cpp:45:
/blender/intern/ghost/intern/GHOST_Window.h:67:2: note:
GHOST_Window::GHOST_Window(GHOST_TUns32, GHOST_TUns32, GHOST_TWindowState, bool, bool, GHOST_TUns16)
GHOST_Window(
^
/blender/intern/ghost/intern/GHOST_Window.h:67:2: note: candidate expects 6 arguments, 7 provided
/blender/intern/ghost/intern/GHOST_Window.h:50:7: note: GHOST_Window::GHOST_Window(const GHOST_Window&)
class GHOST_Window : public GHOST_IWindow
^
/blender/intern/ghost/intern/GHOST_Window.h:50:7: note: candidate expects 1 argument, 7 provided
In file included from
/blender/intern/ghost/intern/GHOST_ISystem.cpp:45:0:
/blender/intern/ghost/intern/GHOST_SystemNULL.h: In member function ‘virtual GHOST_IWindow* GHOST_SystemNULL::createWindow(const STR_String&, GHOST_TInt32, GHOST_TInt32, GHOST_TUns32, GHOST_TUns32, GHOST_TWindowState, GHOST_TDrawingContextType, bool, bool, GHOST_TUns16, GHOST_TEmbedderWindowID)’:
/blender/intern/ghost/intern/GHOST_SystemNULL.h:83:112: error: cannot allocate an object of abstract type ‘GHOST_WindowNULL’
return new GHOST_WindowNULL(this, title, left, top, width, height, state, parentWindow, type, stereoVisual, 1);
^
In file included from
/blender/intern/ghost/intern/GHOST_SystemNULL.h:34:0,
from
/blender/intern/ghost/intern/GHOST_ISystem.cpp:45:
/blender/intern/ghost/intern/GHOST_WindowNULL.h:38:7: note: because the following virtual functions are pure within ‘GHOST_WindowNULL’:
class GHOST_WindowNULL : public GHOST_Window
^
In file included from
/blender/intern/ghost/intern/GHOST_WindowNULL.h:31:0,
from
/blender/intern/ghost/intern/GHOST_SystemNULL.h:34,
from
/blender/intern/ghost/intern/GHOST_ISystem.cpp:45:
/blender/intern/ghost/intern/GHOST_Window.h:304:25: note: virtual GHOST_Context* GHOST_Window::newDrawingContext(GHOST_TDrawingContextType)
virtual GHOST_Context *newDrawingContext(GHOST_TDrawingContextType type) = 0;
^
In file included from
/blender/intern/ghost/intern/GHOST_ISystem.cpp:45:0:
/blender/intern/ghost/intern/GHOST_SystemNULL.h:84:2: warning: control reaches end of non-void function [-Wreturn-type]
}
^
make[2]: *** [intern/ghost/CMakeFiles/bf_intern_ghost.dir/intern/GHOST_ISystem.cpp.o] Error 1
make[1]: *** [intern/ghost/CMakeFiles/bf_intern_ghost.dir/all] Error 2
make: *** [all] Error 2
hotkeys for F keys and panel window management like in older versions of blender for quick access.
blender_sync.h include this file, but can't find
Platform: Windows 10 Intel 64
Follow ideasman's guide to building bpy here https://wiki.blender.org/index.php/User:Ideasman42/BlenderAsPyModule
Summary:
cd C:\blender-git
git clone git://git.blender.org/blender.git
cd blender
git submodule update --init --recursive
git submodule foreach git checkout master
git submodule foreach git pull --rebase origin master
svn checkout https://svn.blender.org/svnroot/bf-blender/trunk/lib/win64_vc14 ../lib/win64_vc14
make bpy 2017
make a file called "test.py" in the bin/Release directory of the build path with the following file contents
import bpy
bpy.ops.render.render(write_still=True)
py test.py
No errors
Error is identical in nature to #30
I receive the following output:
BLT_lang_init: 'locale' data path for translations not found, continuing
Color management: using fallback mode for management
bpy: couldnt find 'scripts/modules', blender probably wont start.
Freestyle: couldn't find 'scripts/freestyle/modules', Freestyle won't work properly.
ImportError: No module named 'bpy_types'
ImportError: No module named 'bpy_types'
pyrna_srna_ExternalType: failed to find 'bpy_types' module
ImportError: No module named 'bpy_types'
ImportError: No module named 'bpy_types'
pyrna_srna_ExternalType: failed to find 'bpy_types' module
ImportError: No module named 'bpy_types'
pyrna_srna_ExternalType: failed to find 'bpy_types' module
F1109 11:27:29.472208 1904091136 utilities.cc:322] Check failed:!IsGoogleLoggingInitialized() You called InitGoogleLogging() twice!
*** Check failure stack trace: ***
Tried this to no avail:
https://blender.stackexchange.com/a/68633
Then tried this:
https://gist.github.com/xunkai55/6331fdd3446257cf5b4a98f202727245
I am trying to do this inside of a venv. I must be doing something wrong... I suppose I was thinking that coming fresh out of the build the bpy.pyd would be ready-to-import but I guess not?
I thought I was closer to being able to import this file but I guess I will have to do more research.
Can someone point me in a direction to look? Or explain to me the import process of bpy.pyd? My intuition was that it was looking for __file__
's location and then
scripts_modules_dir = os.path.join(os.path.basepath(__file__), '2.79/scripts/modules')
But I guess not?
Help appreciated, thanks in advance!
Separate Walk and Fly operators.
I have this script to enable GPU render on my machine (Nvidia GTX 1080 Ti with lastest driver and CUDA toolkit):
import bpy
scene=bpy.context.scene
scene.render.filepath="//render/IMG.PNG"
scene.render.image_settings.file_format="PNG"
scene.render.engine="CYCLES"
bpy.context.scene.cycles.samples=50
scene.cycles.tile_order="BOTTOM_TO_TOP"
scene.cycles.debug_use_spatial_splits=True
scene.cycles.use_progressive_refine=False
scene.render.use_save_buffers=False
scene.render.threads_mode="AUTO"
scene.render.tile_x=16
scene.render.tile_y=16
scene.render.resolution_x=1920
scene.render.resolution_y=1080
scene.render.resolution_percentage=100
scene.frame_set(1)
scene.render.use_compositing=False
scene.render.use_sequencer=False
scene.render.engine="CYCLES"
gpus=[gpu for gpu in bpy.context.user_preferences.addons["cycles"].preferences.devices]
for gpu in gpus:
if gpu.type == "CUDA":
gpu.use=True
print('Use GPU: ', gpu.name)
else:
gpu.use=False
print('Disable GPU: ', gpu.name)
bpy.ops.render.render(write_still=True)
I run blender with command:
blender -b pavillon_barcelone_v1.2.blend -P script.py
It show me
Disable GPU: Intel Core Processor (Broadwell) Use GPU: GeForce GTX 1080 Ti
But when I check with nvidia-smi
tool, I found that blender did not use my GPU for rendering.
`$ nvidia-smi
Mon Apr 2 12:43:16 2018
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 387.26 Driver Version: 387.26 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce GTX 108... Off | 00000000:05:00.0 Off | N/A |
| 21% 26C P0 57W / 250W | 18MiB / 11172MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| No running processes found |
+-----------------------------------------------------------------------------+
`
My blender version is v2.79
Can blender be containerized?
Hi there,
Compiling the bake-cycles branch on F20 gives me this build error: http://www.pasteall.org/50188/bash
The git rev is 88780af.
if someone wants to try to fix that, read/look at the last commit here:
https://github.com/dfelinto/blender-git/tree/bake-cycles-sss
Not sure if its missing or not going to be done yet, since you've only just done this bit.
A 'BW' (Black and White, as opposed to RGB or RGBA) option like in the BI image save for PNG is very useful for when baking AO lightmaps, as it saves on filesize.
I currently use the BW option quite a bit in the BI and AO baking for games.
Thanks. Rob.
'''
Test rotation conversion in nosmpl correctness
we compare with Scipy && Blender
from:
aa -> quaternion
rotmat -> quaternion
'''
try:
import bpy
from mathutils import Matrix, Vector, Quaternion, Euler
import numpy as np
except ImportError:
bpy = None
from nosmpl.geometry import aa2quat
from scipy.spatial.transform import Rotation as R
import numpy as np
from nosmpl.geometry import rotation_matrix_to_angle_axis
# from mmhuman3d.utils.geometry import rotation_matrix_to_angle_axis as rotation_matrix_to_angle_axis_mh
import torch
def Rodrigues(rotvec):
theta = np.linalg.norm(rotvec)
r = (rotvec / theta).reshape(3, 1) if theta > 0.0 else rotvec
cost = np.cos(theta)
mat = np.asarray([[0, -r[2], r[1]], [r[2], 0, -r[0]], [-r[1], r[0], 0]])
return cost * np.eye(3) + (1 - cost) * r.dot(r.T) + np.sin(theta) * mat
if __name__ == '__main__':
if bpy is None:
np.random.seed(21023)
a = np.random.rand(24, 3, 3)
aa = R.from_matrix(a)
aaa = aa.as_quat()
print(aaa)
b = rotation_matrix_to_angle_axis(a)
# b2 = rotation_matrix_to_angle_axis_mh(torch.as_tensor(a))
c = aa2quat(b)
print(c)
print('---------')
# print(b2)
# print(b)
else:
print('runing bpy')
np.random.seed(21023)
a = np.random.rand(24, 3, 3)
# pose = rotation_matrix_to_angle_axis(a)
mat_rots = a
res = []
for mat_rot in mat_rots:
if len(mat_rot) == 3:
mat_rot = Matrix(mat_rot).to_quaternion()
bone_rotation = Quaternion(mat_rot)
res.append(bone_rotation)
res = np.asarray(res)
print(res)
pip install nosmpl
this script result blender != scipy and customized conversion.
Why?
(it's a compiling problem actually, it doesn't help that I never build with CUDA for OSX)
http://wiki.blender.org/index.php/User:Dfelinto/CyclesBaking
Need to get the final images in here. I'll wait for the final user interface though.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.