I GOT IT! In the OnSetConstants callback, the 'tex1' constant wasn't being set correctly.
You have to make an INT, then cast it as (float *) &var
Search found 8 matches
- Tue Feb 27, 2007 4:33 pm
- Forum: Advanced Help
- Topic: Sending Textures and Lightmap of BSP to Shader
- Replies: 3
- Views: 494
- Tue Feb 27, 2007 2:29 am
- Forum: Advanced Help
- Topic: Sending Textures and Lightmap of BSP to Shader
- Replies: 3
- Views: 494
Okay, I generalized the problem. Multitexturing simply does not work. BSP isn't the only thing that doesn't cooperate. Here is the irrlicht test cube scene node. One is with my program and the other is from ShaderDesigner. My Program: http://pythonham.googlepages.com/wrong.jpg ShaderDesigner: http:/...
- Tue Feb 27, 2007 12:39 am
- Forum: Beginners Help
- Topic: Importing Valve Hammer Maps
- Replies: 10
- Views: 693
I was going to implement a .map loader for irrlicht but when I found out that each quad was actually the intersection of planes defined by three points, I decided that I value my sanity more than a .map loader! :) I might just do it make a python script that will translate it another format that irr...
- Tue Feb 27, 2007 12:18 am
- Forum: Advanced Help
- Topic: Sending Textures and Lightmap of BSP to Shader
- Replies: 3
- Views: 494
Sending Textures and Lightmap of BSP to Shader
Is it even possible? I'm trying to write a shader that will negate the the bsp textures. I got the textures to turn negative easily but the only thing is that the lightmap does not render. I checked the shader with TyphoonLab's Shader Designer and it works fine but when I run my program with it, the...
- Thu Feb 22, 2007 11:45 pm
- Forum: Beginners Help
- Topic: Accessing CollisionResponseAnimator functions
- Replies: 3
- Views: 339
I got it! Since ISceneNodeAnimatorCollisionResponse is just a subclass of ISceneNodeAnimator I declare the camera animator like this: ISceneNodeAnimatorCollisionResponse* camanim=blah... Then just to change the gravity in realtime, I just call camanim->setGravity(blah); The Camera follows the animat...
- Wed Feb 21, 2007 3:49 pm
- Forum: Beginners Help
- Topic: Gravity enable/disable with CheckBox?
- Replies: 6
- Views: 450
- Wed Feb 21, 2007 3:41 pm
- Forum: Beginners Help
- Topic: Accessing CollisionResponseAnimator functions
- Replies: 3
- Views: 339
Accessing CollisionResponseAnimator functions
I have a camera with a CollisionResponseAnimator and I need to change the gravity. How would I access the isFalling and setGravity functions of the SceneNodeAnimatorCollisionResponse class through the camera? Is it even possible? Is something like camera->getAnimators[0]->setGravity(1.0f) starting o...
- Mon Feb 19, 2007 3:31 am
- Forum: Beginners Help
- Topic: Importing Valve Hammer Maps
- Replies: 10
- Views: 693
Importing Valve Hammer Maps
Is there any way to import a valve hammer editor map (.map or .rmf) into a scene-node? Maybe a conversion program to convert it into something Irrlicht can load or a snippet to load it in directly?