Search found 167 matches

by nespa
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...
by nespa
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)...
by nespa
Sat Apr 02, 2011 1:04 pm
Forum: Beginners Help
Topic: Distance position absolute position
Replies: 12
Views: 1171

have You more pickable objects? You told us You have only one pickable object;

see example 07 in Irrlicht sdk;
take care, your stage is seen as a single object at (0,0,0) position as it is loaded by Irrlicht;
for the stage object use createOctreeTriangleSelector;
by nespa
Fri Apr 01, 2011 9:14 pm
Forum: Beginners Help
Topic: Distance position absolute position
Replies: 12
Views: 1171

ok :)
by nespa
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 ...
by nespa
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;
by nespa
Thu Mar 31, 2011 8:47 pm
Forum: Beginners Help
Topic: Proper way to change scenes within game
Replies: 10
Views: 1248

a 2D map and a 3D scene?

-for 2D map use draw2DImage;

-in the main loop commute a switch to draw2DImage or not;

-draw2DImage will be after drawAll() command;
by nespa
Thu Mar 31, 2011 11:50 am
Forum: Beginners Help
Topic: giving the impression of an endless repeating scene
Replies: 16
Views: 978

this it is not a good idea for a huge map, it is to simulate a huge map, scrolling others smaller maps
by nespa
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...
by nespa
Sun Mar 27, 2011 9:01 pm
Forum: Beginners Help
Topic: Showing boundaries on Cube Scene Node
Replies: 7
Views: 592

yes, is faster this way
by nespa
Sun Mar 27, 2011 7:27 pm
Forum: Beginners Help
Topic: Showing boundaries on Cube Scene Node
Replies: 7
Views: 592

take care, call the function inside the main loop before drawAll
by nespa
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...
by nespa
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...
by nespa
Sat Mar 26, 2011 9:19 am
Forum: Off-topic
Topic: open an image file in a zip file
Replies: 3
Views: 899

see 02 example, Quake3Map;

the .pk3 archive is a zip archive;
rename your archive from .zip to .pk3 and see the steps in 02 example;
by nespa
Sat Mar 26, 2011 8:05 am
Forum: Beginners Help
Topic: Help with collisions via Rays [SOLVED]
Replies: 2
Views: 425

where is SetTriangleSelector?

Code: Select all

Node->setTriangleSelector(selector);
to bind the selector to your node, then drop the selector

see Collision example 07

[/code]