Page MenuHome

Jakub Uhlik (carbon14)
User

Projects

User does not belong to any projects.

User Details

User Since
Feb 11 2013, 8:28 PM (415 w, 2 d)

Recent Activity

Dec 1 2020

Jakub Uhlik (carbon14) added a comment to T83294: geometry nodes on mac.

ah! ok, sorry :(

Dec 1 2020, 8:07 PM · BF Blender
Jakub Uhlik (carbon14) added a comment to T83294: geometry nodes on mac.

a few more screenshots

Dec 1 2020, 8:04 PM · BF Blender
Jakub Uhlik (carbon14) created T83294: geometry nodes on mac.
Dec 1 2020, 8:01 PM · BF Blender

Oct 9 2020

Jakub Uhlik (carbon14) added a comment to T81334: viewport drawing with gpu module.

i played with it a bit more, there is no need to delete object (that is only i discovered there is something wrong)
selecting none, i.e. selecting background is all it needs.
also if code is run and no object is selected, i draw ok until view is moved, then it is wrong until any (!) object is selected
also checked win10, behaves the same
also prints from draw function are as they should, in this case

Oct 9 2020, 12:29 PM · Python API, EEVEE & Viewport, BF Blender

Oct 8 2020

Jakub Uhlik (carbon14) added a comment to T81334: viewport drawing with gpu module.

for a side note, sorry if the example is a bit crude, but this worked for me from 2.80 until now, i wanted to isolate problem with least code amount possible while it being portable enough
https://github.com/uhlik/bpy#point-cloud-visualizer-for-blender-280
https://www.blendermarket.com/products/pcv

Oct 8 2020, 5:46 PM · Python API, EEVEE & Viewport, BF Blender
Jakub Uhlik (carbon14) added a comment to T81334: viewport drawing with gpu module.

I can't reproduce. Does that needs release builds? I don't understand how that would come from the refactor. Does that happens if you also deselect all object (alt+A)?

Happens in Debug builds as well. It also happens on deselection.

Now that I actually read the provided code, I am not sure if this is a bug anymore.
Upon deletion, there is no active object anymore, so accessing its matrix will fail

  • the object is defined outside the draw_handler function though, maybe thats why drawing also sticks to the object that was active at the time of script execution (and changing the active object does not change shader uniform?)
  • prior to rB216d78687d2b it looks like the uniform doesnt change at all when active object changes
  • after rB216d78687d2b I am actually getting an error (havent noticed before) : "StructRNA of type Object has been removed" [which seems correct]

@Jakub Uhlik (carbon14) : is the intention to stick this on the active object [and also change when active object changes]?
Then this line should move into the draw_handler function (with some fallback if no active object exists)?

o = bpy.context.active_object

If should just stick to the object that was active at the time of script execution (no change on change of active object), I guess you should get the matrix (or a copy) outside the draw handler function?

Oct 8 2020, 5:29 PM · Python API, EEVEE & Viewport, BF Blender

Sep 30 2020

Jakub Uhlik (carbon14) created T81334: viewport drawing with gpu module.
Sep 30 2020, 8:35 PM · Python API, EEVEE & Viewport, BF Blender

Dec 17 2019

Jakub Uhlik (carbon14) created T72508: SpaceView3D.draw_handler_add, draw handler is called 8x times.
Dec 17 2019, 12:02 PM · BF Blender

Oct 15 2019

Jakub Uhlik (carbon14) added a comment to T70820: bpy.types.Image.scale is limited to 10000px while render can be up to 65536px.

eh, i have it wrong, i run scale before pixels are assigned, swapping last two lines fixes it. i'm sorry, i'm stupid..

Oct 15 2019, 9:41 AM · BF Blender
Jakub Uhlik (carbon14) added a comment to T70820: bpy.types.Image.scale is limited to 10000px while render can be up to 65536px.
import bpy
import gpu
import bgl
from mathutils import Matrix
from gpu_extras.presets import draw_circle_2d
Oct 15 2019, 7:47 AM · BF Blender
Jakub Uhlik (carbon14) added a comment to T70820: bpy.types.Image.scale is limited to 10000px while render can be up to 65536px.

i have to disagree, i’m afraid. i’ll make an example to demonstrate the image distortion in result

Oct 15 2019, 7:04 AM · BF Blender

Oct 14 2019

Jakub Uhlik (carbon14) updated the task description for T70820: bpy.types.Image.scale is limited to 10000px while render can be up to 65536px.
Oct 14 2019, 7:39 PM · BF Blender
Jakub Uhlik (carbon14) created T70820: bpy.types.Image.scale is limited to 10000px while render can be up to 65536px.
Oct 14 2019, 7:34 PM · BF Blender

Sep 18 2019

Jakub Uhlik (carbon14) created T70000: very long operator name crashes upon addon activation.
Sep 18 2019, 1:28 AM · BF Blender

Aug 9 2019

Jakub Uhlik (carbon14) created T68442: ParticleSystem.uv_on_emitter returns always 0,0 while Particle.uv_on_emitter returns a value.
Aug 9 2019, 10:08 AM · BF Blender

Jun 26 2019

Jakub Uhlik (carbon14) created T66148: gpu, shader, points have no longer correct depth.
Jun 26 2019, 11:45 AM · EEVEE & Viewport, BF Blender

Feb 25 2019

Jakub Uhlik (carbon14) added a comment to T61851: packing 32bit tiff env texture results in 8bit-like behavior.

here it is, also i just noticed the same behavior in blender-2.79.0-git20190220.949ab753bb2e-x86_64

Feb 25 2019, 3:41 PM · Cycles, BF Blender

Feb 22 2019

Jakub Uhlik (carbon14) created T61851: packing 32bit tiff env texture results in 8bit-like behavior.
Feb 22 2019, 3:20 PM · Cycles, BF Blender

May 16 2016

Jakub Uhlik (carbon14) added a comment to T48444: different order of face vertices indexes between 2.76b and 2.77a.

here is a blend. run script.

May 16 2016, 5:35 AM · BF Blender

May 15 2016

Jakub Uhlik (carbon14) created T48444: different order of face vertices indexes between 2.76b and 2.77a.
May 15 2016, 8:44 PM · BF Blender

Sep 21 2015

Jakub Uhlik (carbon14) added a comment to T46176: custom render engine crashes blender by consecutive hitting f12.

hi, what you mean is, put everything to update() and leave render() empty, right? i am exporting file for external renderer anyway. but when i do that, it crashes the same way as before..

Sep 21 2015, 5:23 PM · BF Blender, Rendering, Add-ons (BF-Blender)

Sep 20 2015

Jakub Uhlik (carbon14) added a comment to T46176: custom render engine crashes blender by consecutive hitting f12.

yea, i know, it's not quite nice solution, but i can't find any other way to get hair root position on uv for child particles. uv_on_emitter accepts only Particles..
anyway, the whole project is here, if interested: https://github.com/uhlik/blendmaxwell

Sep 20 2015, 2:47 PM · BF Blender, Rendering, Add-ons (BF-Blender)
Jakub Uhlik (carbon14) created T46176: custom render engine crashes blender by consecutive hitting f12.
Sep 20 2015, 5:43 AM · BF Blender, Rendering, Add-ons (BF-Blender)

Sep 7 2014

Jakub Uhlik (carbon14) created T41737: bpy.ops.wm.append message.
Sep 7 2014, 6:14 AM · Add-ons (BF-Blender), BF Blender

Aug 20 2014

Jakub Uhlik (carbon14) added a comment to T41500: mesh_f2.py annoying exception when running blender from terminal with '--background --python'.

sorry about broken formatting :(

Aug 20 2014, 8:01 AM · Add-ons (BF-Blender), Add-ons (Community)
Jakub Uhlik (carbon14) created T41500: mesh_f2.py annoying exception when running blender from terminal with '--background --python'.
Aug 20 2014, 8:00 AM · Add-ons (BF-Blender), Add-ons (Community)

Aug 18 2014

Jakub Uhlik (carbon14) added a comment to T41479: python: closest_point_on_mesh isn't accurate.

and i wanted to add a python tag, but for some reason i can't edit my own task.. is this a bug too? :)

Aug 18 2014, 6:50 PM · Add-ons (BF-Blender), BF Blender
Jakub Uhlik (carbon14) created T41479: python: closest_point_on_mesh isn't accurate.
Aug 18 2014, 6:35 PM · Add-ons (BF-Blender), BF Blender