Search found 25 matches

by grzybu
Thu Oct 24, 2013 12:00 pm
Forum: Python
Topic: Is there any way to check if transform operator is finished?
Replies: 1
Views: 5361

Is there any way to check if transform operator is finished?

Hi, I wonder if there is any way to check if transform operator is finished? I mean when user press G,S,R or use gizmo to transform object. There is scene_update_post but it's called way too often and when script have to do something what takes time gui gets choppy. I just need way to get informed w...
by grzybu
Thu Aug 06, 2009 1:47 pm
Forum: Python
Topic: Few questions about Blender 2.5 render api
Replies: 0
Views: 2093

Few questions about Blender 2.5 render api

Hi, I've just looked and samples of exporters for Blender 2.5 and it looks extremely promising :) I've just tried to export camera with dummy example and I can't find matrixWorld for objects. I see location, translation and scale, but not matrix which is very useful. Is this in some other place? I h...
by grzybu
Mon May 18, 2009 9:14 am
Forum: Python
Topic: How to get Empty's name for linked library?
Replies: 2
Views: 1862

The name together with the path to the linked library already is unique. If you want to, you could also use UUIDs you generate yourself and put them in custom properties. /Nathan The problem I have is when I link some group, and I have there object called i.e. Cube, then each instance of this group...
by grzybu
Fri May 15, 2009 4:20 pm
Forum: Python
Topic: How to get Empty's name for linked library?
Replies: 2
Views: 1862

How to get Empty's name for linked library?

Hi, I wonder how to get empty's name in case of linked library objects in python? I have i.e. mesh object list but if I check object.name then I have many object with the same name if they use the same library or just have the same name in different libraries. I need unique names of those object and...
by grzybu
Fri Jun 20, 2008 10:30 am
Forum: Blender Open Projects
Topic: Custom glsl shaders don't work in Apricot build
Replies: 0
Views: 6744

Custom glsl shaders don't work in Apricot build

Hi,

New glsl preview and game shaders work fine, but when I enable my custom shader I got such error message:

PYTHON SCRIPT ERROR:
File "paralacx_spec-GLSL.py", line 9
MaterialIndexList = [0,1]


The same shader is working fine in normal blender build.
Any ideas?
by grzybu
Mon Jun 16, 2008 4:53 pm
Forum: Interactive 3d
Topic: How many texture channels can I access from glsl shader?
Replies: 1
Views: 2652

How many texture channels can I access from glsl shader?

Hi, I wonder if there is limit to 3 texture channels in glsl shaders. I can access texture channels from 0 to 2 without any problem and I can see colors without any problem. But when I do i.e. : shader.setSampler('lightmap', 3) then I have black color instead of texture. If I move this texture to ch...
by grzybu
Mon Jun 16, 2008 4:48 pm
Forum: Interactive 3d
Topic: How to use multiple UV layers with glsl shaders in GE?
Replies: 3
Views: 4582

OK, I've found solution. I just forgot to add line:
gl_TexCoord[1] = gl_MultiTexCoord1;
by grzybu
Tue Jun 10, 2008 11:54 pm
Forum: Interactive 3d
Topic: How to use multiple UV layers with glsl shaders in GE?
Replies: 3
Views: 4582

Sure, but I want to use lightmap in glsl shader. It works fine with default blender shading like in this tutorial. I just can't get second UV layer coordinates for lightmap in glsl shader.
by grzybu
Tue Jun 10, 2008 2:44 pm
Forum: Interactive 3d
Topic: How to use multiple UV layers with glsl shaders in GE?
Replies: 3
Views: 4582

How to use multiple UV layers with glsl shaders in GE?

Hi, I can't get multiple UV layers work with glsl shaders. I can only get access to first layer and it works fine. But if I want to multiple lightmap with diffuse layer it don't work. I thought that instead of using gl_TexCoord[0].xy I should call gl_TexCoord[1].xy but then I have white object. When...
by grzybu
Mon Jan 21, 2008 10:03 pm
Forum: Python
Topic: How to rotate camera when I have 4 asin and acos values?
Replies: 0
Views: 2525

How to rotate camera when I have 4 asin and acos values?

Hi, I'm trying to import camera animation from Max to blender using xaf file. Translation is easy, but don't know how to rotate camera. I have asin and acos values but how to know if it's value for 0-pi/2, pi/2-pi or more? Here are parts of xaf file with data: <S t="0" v="1.000000 0.000000 0.000000 ...
by grzybu
Wed Jun 27, 2007 10:02 pm
Forum: Python
Topic: Problem with Archimapper and Python 2.5
Replies: 0
Views: 2006

Problem with Archimapper and Python 2.5

Hi, I'm trying to do smart unwrap with latest svn version of blender compiled with python 2.5 and I got such error: Traceback (most recent call last): File "<string>", line 1164, in <module> File "<string>", line 1134, in main TypeError: vector[begin:end] = []: size mismatch in slice assignment Is t...
by grzybu
Mon Jun 25, 2007 7:19 pm
Forum: Coding Blender
Topic: Problem compiling blender on 64 bit Fedora 7
Replies: 4
Views: 5425

Thanks, now it works fine :)
by grzybu
Mon Jun 25, 2007 1:21 am
Forum: Coding Blender
Topic: Problem compiling blender on 64 bit Fedora 7
Replies: 4
Views: 5425

Re: Problem compiling blender on 64 bit Fedora 7

First install gettext, then try again. /Nathan I have gettext installed: ldconfig -p | grep gettext libgettextsrc-0.16.1.so (libc6,x86-64) => /usr/lib64/libgettextsrc-0.16.1.so libgettextsrc-0.16.1.so (libc6) => /usr/lib/libgettextsrc-0.16.1.so libgettextpo.so.0 (libc6,x86-64) => /usr/lib64/libgett...
by grzybu
Sun Jun 24, 2007 11:42 pm
Forum: Coding Blender
Topic: Problem compiling blender on 64 bit Fedora 7
Replies: 4
Views: 5425

Problem compiling blender on 64 bit Fedora 7

Hi, I can't buitd blender on Fedora 7. On Fedora Core 6 it was working fine and I was able to build 64 bit blender build. But now I have errors: Linking program ==> 'blender' /usr/bin/ld: skipping incompatible /usr/lib/libjpeg.so when searching for -ljpeg /usr/bin/ld: skipping incompatible /usr/lib/...
by grzybu
Tue Jan 02, 2007 1:06 pm
Forum: Coding Blender
Topic: CVS problem
Replies: 2
Views: 3178

I have the same problem today :(