Search found 8 matches

by kwitee
Mon Apr 18, 2011 7:50 pm
Forum: Beginners Help
Topic: stringw problem
Replies: 9
Views: 654

Lonesome Ducky wrote:Can't do much without seeing the rest of the code. It would help us if you posted the class.
The string is now working properly. I see now that I must work on my C++ basics :oops:
hendu wrote: Wait, is that code from the constructor? Infinite recursion FTW
No, it isn't.
by kwitee
Mon Apr 18, 2011 4:40 pm
Forum: Beginners Help
Topic: stringw problem
Replies: 9
Views: 654

Completely broken, weird, buggy, worse than nightmare code.
I admit that this is not OK, I am still learning. These 2 lines are only an example of what am I trying to do.


You rocmpiler should warn you about dangerous fragments in your code. What about turning on warning, or read those warnings ...
by kwitee
Mon Apr 18, 2011 2:43 pm
Forum: Beginners Help
Topic: stringw problem
Replies: 9
Views: 654

stringw problem

I know this is more like C++ problem, but I am using irrlicht data types, so I am posting this here in case there were some known bugs.

My class has constructor with stringw as an argument. At first I create pointer to my class, and then I use my constructor to allocate the data to my pointer ...
by kwitee
Mon Apr 18, 2011 12:59 pm
Forum: Beginners Help
Topic: InOutFader problem [fixed]
Replies: 4
Views: 384

Thanks, I got it now. I didn't know what is the second color of setColor method for.
by kwitee
Mon Apr 18, 2011 9:50 am
Forum: Beginners Help
Topic: InOutFader problem [fixed]
Replies: 4
Views: 384

I am using both fadeOut() and fadeIn(). InOutFader is private member of my inventory class, and when I show inventory, I want my background to fade into
darker colors.
I am using Irrlicht 1.7.1.

I am using these two methods to show or close inventory (window is
parent of everything else in my ...
by kwitee
Fri Apr 15, 2011 10:49 am
Forum: Beginners Help
Topic: InOutFader problem [fixed]
Replies: 4
Views: 384

InOutFader problem [fixed]

I want my InOutFader to fade in&out of transparent color,
but when I am using:

Code: Select all

fader->setColor(SColor(100,100,100,100));
it is not working. So I guess InOutFader doesn't work with color's alpha chanel. Is there simple way to do what I want?
by kwitee
Wed Apr 13, 2011 5:55 am
Forum: Beginners Help
Topic: Newton 2.0 and Irrlicht 1.7
Replies: 5
Views: 1155

Solution

Hi, I have found solution to my problem. So I post it here just in case:
I applied transformation matrix on my rigid body like this:


CMatrix4<f32> mat;
mat.setTranslation(irrlicht_node->getPosition());
mat.setRotationDegrees(irrlicht_node->getRotation());
NewtonBodySetMatrix(newton_body, mat ...
by kwitee
Mon Apr 11, 2011 9:32 am
Forum: Beginners Help
Topic: Newton 2.0 and Irrlicht 1.7
Replies: 5
Views: 1155

Applying dislocation and rotation

This tutorial is working for me:

http://www.newtondynamics.com/wiki/index.php5?title=Tutorial_-_Irrlicht_Engine_with_Newton_%28triangle_meshes_tutorial%29

...



Hi, I am using this tutorial for my project. I used the CreateNewtonMesh with some changes to load a static map from *.irr file saved ...