Search found 49 matches

by lizhigang34
Sun Apr 05, 2009 4:48 am
Forum: Beginners Help
Topic: irrlicht+physx rotation
Replies: 3
Views: 278

Hi,here is the IrrPhysX written by JP.It may be useful for you. http://irrlicht.sourceforge.net/phpBB2/viewtopic.php?p=174597&sid=beb33adc77069eab24a3c00f71447a69 About rotate an actor,my code snippet as follows. void setRotate(vector3df rot) { NxMat33 mat; NxMat33 rotX, rotY, rotZ; rotX.rotX(ro...
by lizhigang34
Mon Mar 30, 2009 2:52 pm
Forum: Beginners Help
Topic: Hi,JP.Can you help me again?
Replies: 3
Views: 278

:cry:
by lizhigang34
Thu Mar 26, 2009 11:41 am
Forum: Beginners Help
Topic: Hi,JP.Can you help me again?
Replies: 3
Views: 278

Hi,JP.Can you help me again?

JP,thank you for your last help.now,I can attach PhysX to Irrlicht as well.I've create cloth and triangle object,and render them with Irrlicht..

But I am troubled by another problem.How to create a softbody that render with Irrlicht? I find there is nothing code about softbody in your IrrPhysX. :cry:
by lizhigang34
Mon Mar 23, 2009 8:26 am
Forum: Beginners Help
Topic: convert opengl to irrlicht(about physx)
Replies: 13
Views: 1526

Hi,JP Do you know how to construct a S3DVertex from NxMeshData?? I mean the NxMeshData stores vertex positions in verticesPosBegin,stores vertex normals in verticesNormalBegin,and stores vertex indices in indicesBegin,I want to use IVideoDriver::drawIndexedTriangleList() to draw a cloth.But,I only d...
by lizhigang34
Sat Mar 21, 2009 12:25 pm
Forum: Beginners Help
Topic: convert opengl to irrlicht(about physx)
Replies: 13
Views: 1526

Thanks JP.
The IrrPhysX is written by you,Don't you know when called CCloth::update().I think I must be wrong in here,so cann't draw debug data of the cloth,and the effect of render of the cloth is bad.
by lizhigang34
Sat Mar 21, 2009 11:36 am
Forum: Beginners Help
Topic: convert opengl to irrlicht(about physx)
Replies: 13
Views: 1526

If you want to cut the cloth then yes you need to tear the necessary vertices. If you're not calling CCloth update functions then how can you expect it to work correctly? I'm not sure what your above post is saying about rendering and collision detection... I'm sorry for my poor English. :cry: I do...
by lizhigang34
Fri Mar 20, 2009 7:38 am
Forum: Beginners Help
Topic: convert opengl to irrlicht(about physx)
Replies: 13
Views: 1526

What amaze me is how you attach PhysX to Irrlicht.
I mean one hand is collision detecting of object and the other is render object with irrlicht.How do you achieve that?
by lizhigang34
Fri Mar 20, 2009 3:11 am
Forum: Beginners Help
Topic: convert opengl to irrlicht(about physx)
Replies: 13
Views: 1526

Hi,JP. I am reading your code conscientiously.I try to divide part function that's useful for me from your lib. and I have some questions.. 1. about render cloth Now,I can render the cloth,but can't render the debug data.strangely,except cloth,I can render other NxActor debug data,such as cube , sph...
by lizhigang34
Thu Mar 19, 2009 1:18 pm
Forum: Beginners Help
Topic: convert opengl to irrlicht(about physx)
Replies: 13
Views: 1526

Thanks,,
I'll have a try. :wink:
by lizhigang34
Thu Mar 19, 2009 12:45 am
Forum: Beginners Help
Topic: convert opengl to irrlicht(about physx)
Replies: 13
Views: 1526

Thanks JP..I've seen your code,It's not fit for me.you got the cloth stuff from mesh,I run the cloth example,when I set the triangle scale of cloth bigger than sphere,the sphere will fly through the cloth without collision.I want to control the number and scale of triangle of the cloth,I don't want ...
by lizhigang34
Wed Mar 18, 2009 8:24 am
Forum: Beginners Help
Topic: convert opengl to irrlicht(about physx)
Replies: 13
Views: 1526

convert opengl to irrlicht(about physx)

I am learning physx.I need create a cloth.I found it very hard to learn physx,here is the code of MyCloth written by OpenGL without any comment.I didn't learn OpenGL before.How to convert OpenGL code to Irrlicht. /////// define some Nx argument ////// class MyCloth { NxMeshData mReceiveBuffers; NxSc...
by lizhigang34
Wed Mar 11, 2009 8:52 am
Forum: Beginners Help
Topic: How to stop particle system creating particles ?
Replies: 2
Views: 486

I want to control the particle system creating particle.
when I press 'A' it creat particles,press 'B' it don't create particles any more.
by lizhigang34
Wed Mar 11, 2009 8:42 am
Forum: Beginners Help
Topic: How to stop particle system creating particles ?
Replies: 2
Views: 486

How to stop particle system creating particles ?

I created smoke effect in my scene.Now I need cancel the effect when I press a key.I don't know how to stop particle emitter creating particles.
by lizhigang34
Sat Mar 07, 2009 10:14 am
Forum: Beginners Help
Topic: How set rotation cylinderSceneNode ?
Replies: 15
Views: 3520

turn() rotate node around its Y axis pitch() around X roll() around Z to rotate node around its Z axis 45 degrees just call: roll(yourCilinderNode, 45.0f) http://irr.host.hzcenter.net/upimg/rotate3.gif Here is my cylinder, it is a vertical. It’s position is (x,y,z),I want rotate it,but it must cros...
by lizhigang34
Fri Mar 06, 2009 4:23 pm
Forum: Beginners Help
Topic: How set rotation cylinderSceneNode ?
Replies: 15
Views: 3520

thanks arras for your code..But I still don't know how to count gimbal lock. For example,I have loaded the cylinder mesh successfully,I set cylinder position use cylinder->setPosition(-20,-20,0),then I roll(cylinder, -45) to make sure the cylinder cross the point(0,0,0).Now I want it can rotate arou...