Search found 167 matches
- Wed Apr 06, 2011 6:24 pm
- Forum: Beginners Help
- Topic: How control emitter direction.
- Replies: 7
- Views: 468
not necessary to change the direction of your jet particles; only at the begin, set the initial direction and then make as a child of the ship; turning your ship runtime, the jetparticles will turn according with its parent; I tested this way and is worked; Sorry, I tested with (0,0,0) direction; Ma...
- Sun Apr 03, 2011 7:14 am
- Forum: Beginners Help
- Topic: How to realize rotation with constant angular speed
- Replies: 13
- Views: 767
this will rotate an object around its local axees with X,Y,Z speed each frame: ISceneNode* Spaceship; vector3df rp(X,Y,Z); vector3df r = Spaceship->getRotation(); //get current rotation (euler) matrix4 m; matrix4 mp; m.setRotationDegrees(r); //set matrix to current rotation mp.setRotationDegrees(rp)...
- Sat Apr 02, 2011 1:04 pm
- Forum: Beginners Help
- Topic: Distance position absolute position
- Replies: 12
- Views: 1171
- Fri Apr 01, 2011 9:14 pm
- Forum: Beginners Help
- Topic: Distance position absolute position
- Replies: 12
- Views: 1171
- Fri Apr 01, 2011 4:35 pm
- Forum: Beginners Help
- Topic: Distance position absolute position
- Replies: 12
- Views: 1171
this functions returns the distance between 2 nodes, but you can modify to get distance between 2 points in 3D world; float EntityDistance(ISceneNode* node1,ISceneNode* node2) { float Result,dx,dy,dz; vector3df vect1 = node1->getAbsolutePosition(); vector3df vect2 = node2->getAbsolutePosition(); dx ...
- Fri Apr 01, 2011 9:04 am
- Forum: Beginners Help
- Topic: BSP problem
- Replies: 3
- Views: 461
take a look here:
http://www.quakewiki.net/archives/qer/t ... rial6.html
add a script to your bsp and manage it in irrlicht;
or this:
http://irrlicht.sourceforge.net/phpBB2/ ... 0c67cb0817
see example 16 to see how find an entity in bsp;
http://www.quakewiki.net/archives/qer/t ... rial6.html
add a script to your bsp and manage it in irrlicht;
or this:
http://irrlicht.sourceforge.net/phpBB2/ ... 0c67cb0817
see example 16 to see how find an entity in bsp;
- Thu Mar 31, 2011 8:47 pm
- Forum: Beginners Help
- Topic: Proper way to change scenes within game
- Replies: 10
- Views: 1248
- Thu Mar 31, 2011 11:50 am
- Forum: Beginners Help
- Topic: giving the impression of an endless repeating scene
- Replies: 16
- Views: 978
- Thu Mar 31, 2011 9:21 am
- Forum: Beginners Help
- Topic: giving the impression of an endless repeating scene
- Replies: 16
- Views: 978
try this way : -load the worldmap or the world mesh 4 times; -make as the current world the containing camera world; -make camera range less than size_world/2; -get each frame the camera position resulting which quadrant it is in; -position the others world at the corresponded quadrant; -when the ca...
- Sun Mar 27, 2011 9:01 pm
- Forum: Beginners Help
- Topic: Showing boundaries on Cube Scene Node
- Replies: 7
- Views: 592
- Sun Mar 27, 2011 7:27 pm
- Forum: Beginners Help
- Topic: Showing boundaries on Cube Scene Node
- Replies: 7
- Views: 592
- Sun Mar 27, 2011 4:55 pm
- Forum: Beginners Help
- Topic: Showing boundaries on Cube Scene Node
- Replies: 7
- Views: 592
void OutlineMesh(IAnimatedMeshSceneNode* mesh,float Width,unsigned int R,unsigned int G,unsigned int B) { SMaterial tmat[MATERIAL_MAX_TEXTURES],lmat; lmat.DiffuseColor = SColor(255,R,G,B); lmat.SpecularColor = SColor(255,R,G,B); lmat.AmbientColor = SColor(255,R,G,B); lmat.EmissiveColor = SColor(255...
- Sat Mar 26, 2011 1:37 pm
- Forum: Everything 2d/3d Graphics
- Topic: Rotating a cuboid about varying axes
- Replies: 1
- Views: 1438
add an empty scene node and make this node as parent of your cube ISceneNode* pivot = SceneManager->addEmptySceneNode(); ........ cube->setParent(pivot); take care , your pivot is positioned 1st at 0,0,0 , then position your cube relative to pivot and then bind them as child-parent; rotating and pos...
- Sat Mar 26, 2011 9:19 am
- Forum: Off-topic
- Topic: open an image file in a zip file
- Replies: 3
- Views: 899
- Sat Mar 26, 2011 8:05 am
- Forum: Beginners Help
- Topic: Help with collisions via Rays [SOLVED]
- Replies: 2
- Views: 425
where is SetTriangleSelector?
to bind the selector to your node, then drop the selector
see Collision example 07
[/code]
Code: Select all
Node->setTriangleSelector(selector);
see Collision example 07
[/code]