Search found 23 matches

by rstralberg
Sun Aug 28, 2005 10:15 pm
Forum: Python
Topic: AttributeError: VERTEX_SHADER in Tuhopuu3
Replies: 2
Views: 2052

fobsta:

Ok... Well thats the explanation then
I took it for granted that it was in T3 also

Thanks
by rstralberg
Sun Aug 14, 2005 10:58 pm
Forum: Interactive 3d
Topic: How to use Tuhopuu2. Simple sample?
Replies: 47
Views: 22837

Hi I have problem getting this code to work in tuhopuu3. It did work with tuhopuu2. texbump.py ------------------------------------------------ mats = GameLogic.getCurrentController().getOwner().getMesh().materials shaders = [(mats[0].VERTEX_SHADER, VertShader, VertFile),(mats[0].FRAGMENT_SHADER, Fr...
by rstralberg
Thu Aug 11, 2005 11:14 pm
Forum: Python
Topic: AttributeError: VERTEX_SHADER in Tuhopuu3
Replies: 2
Views: 2052

AttributeError: VERTEX_SHADER in Tuhopuu3

Hi I have problem getting this code to work in tuhopuu3. It did work with tuhopuu2. texbump.py ------------------------------------------------ mats = GameLogic.getCurrentController().getOwner().getMesh().materials shaders = [(mats[0].VERTEX_SHADER, VertShader, VertFile),(mats[0].FRAGMENT_SHADER, Fr...
by rstralberg
Fri Sep 17, 2004 10:09 pm
Forum: Interactive 3d
Topic: How to use Tuhopuu2. Simple sample?
Replies: 47
Views: 22837

@sutabi I also think your card is not supporting it Here is my card GLEW: 1.2.3 RAS_OpenGLRasterizer: GL Vendor : NVIDIA Corporation GL Renderer: GeForce FX 5200/AGP/SSE2 GL Version : 1.5.1 Colour : 24 bits (8/8/8/0) Accum : 64 bits (16/16/16/16) Depth : 24 bits Stencil : 0 bits Multisample: Disable...
by rstralberg
Fri Sep 17, 2004 2:56 pm
Forum: Python
Topic: KX_PolygonMaterial - setUniform types?
Replies: 4
Views: 2208

Hi again. I still have problems with setUniform in my vertexfile I have uniform vec4 lightDir ; in my python loader file 'shader1.py' at line 40 mat.setUniform( "lightDir", [0.0, 1.0, 0.5, 0.0] ) this gives a python compiler error PYTHON SCRIPT ERROR: Traceback (most recent call last): File "shader1...
by rstralberg
Thu Sep 16, 2004 1:37 pm
Forum: Python
Topic: KX_PolygonMaterial - setUniform types?
Replies: 4
Views: 2208

@alien-xmp: Oh.. now I see. Your are a beginners goldmine and fountain of knowledge. I will make some tests and then update my tutorial about T2/Python&Shaders if everything works out well. I plan to update the tutorial so one can follow all needed steps from a GLSL shader in RenderMonkey down to ap...
by rstralberg
Wed Sep 15, 2004 4:45 pm
Forum: Python
Topic: KX_PolygonMaterial - setUniform types?
Replies: 4
Views: 2208

KX_PolygonMaterial - setUniform types?

Hi In the doc's for class KX_PolygonMaterial - method setUniform the argument 'value' is defined as below value - The value of the uniform to load. (type=integer, float, vec2, vec3, vec4, mat3, mat4) Does this mean that 0 = integer 1 = float 2 = vec2 3 = vec3 4 = vec4 5 = mat3 6 = mat4 /roland
by rstralberg
Mon Sep 13, 2004 7:19 am
Forum: Interactive 3d
Topic: How to use Tuhopuu2. Simple sample?
Replies: 47
Views: 22837

@Doc_Holiday:

Thanks :)

I will fix compressed textures this evening
(it's morning here now ).


/roland
by rstralberg
Sun Sep 12, 2004 11:53 pm
Forum: Interactive 3d
Topic: How to use Tuhopuu2. Simple sample?
Replies: 47
Views: 22837

@alien-xmp:
@Doc_Holiday:

Many thanks for your help.
I have updated the tutorial according
to your good advices.

And 'Doc_Holidays' code snippet
on loading from external files was
just awesome. Thanks.

The tut is still out there http://www.rstralberg.com/t2.html

/roland
by rstralberg
Sun Sep 12, 2004 2:18 am
Forum: Interactive 3d
Topic: How to use Tuhopuu2. Simple sample?
Replies: 47
Views: 22837

@alien-xmp:
Many thank's. You are realy helpful in every way.
I will fix those things tomorrow ( it's 02:14 past midnight now ).

/roland
by rstralberg
Sat Sep 11, 2004 11:12 pm
Forum: Interactive 3d
Topic: How to use Tuhopuu2. Simple sample?
Replies: 47
Views: 22837

Hi I have written a 'newbie' tutorial on how to apply a shader in T2 and placed it on my website. I'm self a newbie :). Could any of you experts check it and tell me if there are any errors of faults. Dont want to misslead others by publishing any errors. The address is http://www.rstralberg.com/t2....
by rstralberg
Wed Sep 08, 2004 7:53 pm
Forum: Python
Topic: Class KX_PolygonMaterial?
Replies: 2
Views: 1850

Hi

I a real newbie on this and have asked here at the forum
and tried by my self and finally had success.

I'm planning to make a 'newbie' tutorial on this but
until then you can have a look of what I did at my
website http://www.rstralberg.com/t2.html

Hope this helps

/roland
by rstralberg
Wed Sep 08, 2004 3:08 pm
Forum: Interactive 3d
Topic: How to use Tuhopuu2. Simple sample?
Replies: 47
Views: 22837

@alien-xmp:
Yes I have the latest drivers.
The error was that I had not UV mapped the object
Now it works just fine. I get the expected result :)

I'll set up a short tutorial within next day or two.

Many thanks
/roland
by rstralberg
Wed Sep 08, 2004 10:01 am
Forum: Interactive 3d
Topic: How to use Tuhopuu2. Simple sample?
Replies: 47
Views: 22837

I must be a real dummy but I can't get any shader output using the sample provided in KX_PolygonMaterial. I have described what I have done at http://www.rstralberg.com/t2start.htm . Please! Could anyone give some advise or a hint of what I'm doing wrong. If I can make this work I could make a 'real...
by rstralberg
Wed Sep 01, 2004 2:41 pm
Forum: Interactive 3d
Topic: How to use Tuhopuu2. Simple sample?
Replies: 47
Views: 22837

Oh how wrong I was about the FX 5200 card. I supports GLSL using
nVidia ForceWare drivers from http://www.3dchipset.com.