Search found 9 matches

by Joe Red
Mon Jun 18, 2007 4:42 pm
Forum: Advanced Help
Topic: How to pass a texture to a shader?
Replies: 4
Views: 1180

How to pass a texture to a shader?

So, I would like to use a shader with irrlicht with the following line:

texture BaseTex;

How can I pass a texture to the shader? The setVertexShaderConstant function is just for matrices, and vectors, isn't it? My question is probably newbish, but I cant find it out. Please help!
by Joe Red
Tue May 29, 2007 4:13 pm
Forum: Bug reports
Topic: [no bug]REFLECTION_2_LAYER in 1.3
Replies: 1
Views: 204

Oh, sorry :oops: Problem solved: I just had to normalize the normals of my car. No bug :D
by Joe Red
Tue May 29, 2007 2:01 pm
Forum: Bug reports
Topic: [no bug]REFLECTION_2_LAYER in 1.3
Replies: 1
Views: 204

[no bug]REFLECTION_2_LAYER in 1.3

I think, I have found a bug in the newest version in irrlicht. I am working on a car simulator, and I am useing REFLECTION_2_LAYER for reflections. If I compile my code with teh 1.2 version of Irrlicht, everything is fine, the engine transforms the sphere image to the shape of the car. But the new v...
by Joe Red
Sat Dec 30, 2006 8:38 pm
Forum: Beginners Help
Topic: triangle3df
Replies: 4
Views: 176

I don't need the texture coords, just the coords of the triangle's verts in the 3d universe.
by Joe Red
Sat Dec 30, 2006 6:01 pm
Forum: Beginners Help
Topic: triangle3df
Replies: 4
Views: 176

triangle3df

I couldn't find the answer to my question in the beginners topic, so I have to ask it here too. The question is that if I'we got a triangle3df triangle, how can I acces the coords of the verts of it.

I hope I was understandable, and my question wasn't too newbish

Joe
by Joe Red
Sat Dec 30, 2006 3:58 pm
Forum: Beginners Help
Topic: triangle3df, getTriangles
Replies: 2
Views: 251

It can't be teh similar, because a triangle must have 9 datas: the first vertex's X,Y,Z coords, the second's, and the third's. Does anyone have an idea? Or should I move the topic to the advanced help?
by Joe Red
Fri Dec 29, 2006 6:25 pm
Forum: Beginners Help
Topic: triangle3df, getTriangles
Replies: 2
Views: 251

triangle3df, getTriangles

Well, I have two questions: The first: I want to get all the polys of a scene node, and I would like to use Triangle selector for this. Here comes the first question: there is a very smart function, getTriangles. If I understand the command well (wich has not too big chance), it will write all teh t...
by Joe Red
Tue Oct 31, 2006 4:33 pm
Forum: Beginners Help
Topic: Poligon count, directional lights
Replies: 2
Views: 374

Thanks for the quick replay! I try it!
by Joe Red
Tue Oct 31, 2006 11:14 am
Forum: Beginners Help
Topic: Poligon count, directional lights
Replies: 2
Views: 374

Poligon count, directional lights

Hi!

I'm new to irrlicht, and I've got to know this two answers to continoue my project.

The first question: How can I create a Directional light? (An example, please!)

How can I get the number of the poligons in a mesh?

Please, reply soon!!

Thanks: Joe Red