Search found 8 matches

by Nimrod
Sat Apr 18, 2009 7:18 pm
Forum: Advanced Help
Topic: little help with shaders
Replies: 5
Views: 742

If you are wondering about how to send a variable to your GLSL codes, the answer is in example/tutorial 10.
In short, set the variable with setVertexShaderConstant in the callback.
for example if this is in the callback:
irr::core::vector3df pos(0,0,1);
services->setVertexShaderConstant("mLightPos ...
by Nimrod
Fri Apr 17, 2009 6:26 pm
Forum: Advanced Help
Topic: loading Textures into Shaders...
Replies: 1
Views: 649

I have only used GLSL before, but I came across this thread that might help you.
http://irrlicht.sourceforge.net/phpBB2/viewtopic.php?t=31940
According to one of the the post, all you need to do is set the material texture in irrlicht, and in your HLSL code, initialize with
sampler2d xTexture0 ...
by Nimrod
Fri Mar 20, 2009 4:14 pm
Forum: Beginners Help
Topic: Irrlicht/Newton Integration Compile Error--Code Blocks
Replies: 17
Views: 1578

Since I have stepped into this thread already, I will give it a random guess:

When I see "undefined reference to: wired obscure thing" I would check and see if the libraries are properly linked.

Note I am not familiar with Code::Blocks, it's just a guess.

Edit: Another possibility is that ...
by Nimrod
Fri Mar 20, 2009 3:50 pm
Forum: Beginners Help
Topic: Irrlicht/Newton Integration Compile Error--Code Blocks
Replies: 17
Views: 1578

The original code has "class MyEventReceiver"; it doesn't seem like you have it in your code.

Edit: sorry never mind, I mistaken abhishekdey1985's code as your code.
by Nimrod
Fri Mar 20, 2009 3:12 pm
Forum: Beginners Help
Topic: Best way to add moving platforms?
Replies: 6
Views: 569

My suggestion is to use a customized animator.
Here's a quick and dirty example that might help you:

#include "irrlicht.h"
namespace irr{
namespace scene{
class CSceneNodeBackForwardAnimator : public ISceneNodeAnimator{
public:
CSceneNodeBackForwardAnimator(){start_timeMs=0;};
virtual void ...
by Nimrod
Sat Feb 28, 2009 10:15 pm
Forum: Beginners Help
Topic: Best way to control camera manually
Replies: 2
Views: 492

So how do I keep that straight ahead?
Move the target with setTarget as well?
by Nimrod
Sat Feb 28, 2009 8:15 am
Forum: Beginners Help
Topic: graphics update rate (Irrlicht + ODE)
Replies: 2
Views: 361

http://irrlicht.sourceforge.net/phpBB2/ ... framedelta

Look for the part about frameDelta.

It doesn't make the frame rate constant, but it makes the movement constant.

Also,

http://opende.sourceforge.net/mediawiki ... e_timestep
by Nimrod
Tue Feb 24, 2009 10:47 pm
Forum: Beginners Help
Topic: Children transformation delayed
Replies: 2
Views: 540

I ran into the same problem and tried to fix it with the UpdateAbsoluteTransformationAndChildren codes.
However, it still doesn't work if I have animators attach to the character node.

After looking through the source code (v 1.5), I found that the problem is there because somehow in CBoneSceneNode ...