Search found 14 matches

by deadbeef
Thu Apr 15, 2010 11:13 pm
Forum: Bug reports
Topic: Weird joint rotation interpolation (bug?)
Replies: 0
Views: 990

Weird joint rotation interpolation (bug?)

I dont know if anyone noticed it but when irrlicht does joint rotation interpolation the animation "flickers".

What i mean by "flickers":
When i slow down my animation x1000 (it barely moves) i can see that "flickers" are not really "flickers" but a very fast rotations by 360 degrees especially at ...
by deadbeef
Sat Apr 10, 2010 9:41 am
Forum: Beginners Help
Topic: Irrlicht weird swapped XYZ to XZY + Grass Shader Problem
Replies: 14
Views: 1523

Can anyone reply me on the Second question about Shader ?
I already know about Y up axis. There is no need to explain it anymore.

Ok problem solved.
by deadbeef
Fri Apr 09, 2010 8:43 pm
Forum: Beginners Help
Topic: Setting triangle colors/textures in a mesh.
Replies: 3
Views: 412

You have to create separate vertices for each triangle you want to color.
If you share vertices then its obvious that you share its colors too.
by deadbeef
Fri Apr 09, 2010 8:37 pm
Forum: Beginners Help
Topic: Create animated mesh with tangents?
Replies: 4
Views: 942

Some time ago i had the same problem and i created additional method named "addMeshTangents" in MeshManipulator class. I dunno if its correct but works for me.

Some admin could add it to SVN. Its better than createMeshTangents and works with AnimatedMesh as well as Static.

void CMeshManipulator ...
by deadbeef
Fri Apr 09, 2010 7:18 pm
Forum: Beginners Help
Topic: Irrlicht weird swapped XYZ to XZY + Grass Shader Problem
Replies: 14
Views: 1523

I dont want to create another thread so i post it here. Its also kind of related to the XYZ axis problem so here it go:

I used the shader i posted before just as it is with simple plane "terrain" and i cant get it work with irrlicht. What am i doing wrong ? Or maybe i have to do it in some special ...
by deadbeef
Fri Apr 09, 2010 12:44 pm
Forum: Beginners Help
Topic: Running Irrlicht on Windows x64?
Replies: 2
Views: 947

32bit applications can run normally on your 64bit OS.

The only thing you can't do is to use 32bit irrlicht.dll with your 64bit compiled program/game.

You would have to recompile irrlicht.dll to 64bits in that case. I already tested it and it seems to work fine in x64 mode.
by deadbeef
Fri Apr 09, 2010 8:59 am
Forum: Beginners Help
Topic: Irrlicht weird swapped XYZ to XZY + Grass Shader Problem
Replies: 14
Views: 1523

Then why shaders are made other way?

Like this one:
http://irrlicht.sourceforge.net/phpBB2/ ... p?p=221252

I tried to run that and i cant make it work correct.
Any (example) help ?
by deadbeef
Fri Apr 09, 2010 8:21 am
Forum: Beginners Help
Topic: Irrlicht weird swapped XYZ to XZY + Grass Shader Problem
Replies: 14
Views: 1523

I have found something like "upVector" is it ok if i change it to vector3df(0,0,1) ?

It should make:
X - horizontal
Y - depth
Z - vertical

But in that way i would need to rotate each node by 90 degree :F
Isnt there any easier/faster way ?
by deadbeef
Fri Apr 09, 2010 8:11 am
Forum: Off-topic
Topic: Really cool grass shader
Replies: 21
Views: 14382

Its a really nice shader and i would like to use it but as i see irrlicht uses Y axis as height and that shader uses Z axis as height so it doesnt work with irrlicht.

Can anyone post a C++ source code to run that shader in Irrlicht ?

Ok NVM i already got it.
by deadbeef
Fri Apr 09, 2010 8:08 am
Forum: Beginners Help
Topic: Irrlicht Coordinate System - Right Hand
Replies: 1
Views: 645

I think its the Camera problem. You could change the projection matrix to RightHand here:

void CCameraSceneNode::recalculateProjectionMatrix()
{
ViewArea.getTransform ( video::ETS_PROJECTION ).buildProjectionMatrixPerspectiveFovLH(Fovy, Aspect, ZNear, ZFar);
}

and use ...
by deadbeef
Thu Apr 08, 2010 4:05 pm
Forum: Beginners Help
Topic: Irrlicht weird swapped XYZ to XZY + Grass Shader Problem
Replies: 14
Views: 1523

Ok ok but how did you managed the XZY swap to XYZ ?
You made that globally ?

Btw. Im trying to run that shader:
http://irrlicht.sourceforge.net/phpBB2/viewtopic.php?t=24794

Do anyone has c++ source code for this sample ?
As i can see it uses XY axis instead of irrlicht's XZ and i cant make it look ...
by deadbeef
Thu Apr 08, 2010 1:43 pm
Forum: Beginners Help
Topic: Irrlicht weird swapped XYZ to XZY + Grass Shader Problem
Replies: 14
Views: 1523

Hum. What wrapper ?
Can you tell me more about that ?
by deadbeef
Thu Apr 08, 2010 1:26 pm
Forum: Beginners Help
Topic: Irrlicht weird swapped XYZ to XZY + Grass Shader Problem
Replies: 14
Views: 1523

Yes i know what "Normal" is. Im just telling that DirectX and OpenGL uses Z axis as height and its kind of weird that irrlicht swaps it to Y.

I have tested other engines like Ogre, TrueVision and it used Z axis as height and its more correct to position anything in 2D space as XY and set its height ...
by deadbeef
Thu Apr 08, 2010 11:13 am
Forum: Beginners Help
Topic: Irrlicht weird swapped XYZ to XZY + Grass Shader Problem
Replies: 14
Views: 1523

Irrlicht weird swapped XYZ to XZY + Grass Shader Problem

Hello.

I would like to ask why irrlicht uses some weird swapped Y <> Z (XZY) axis which gives height as Y axis instead of Z axis as it should.

It messes up most the shaders (even the irrlicht's internal ones like normal map, pseudo parallax, it uses wrong axis (Y not Z) for dot() lighting).

Each ...