Search found 25 matches
- Sun Mar 16, 2008 7:37 pm
- Forum: Beginners Help
- Topic: Face next Position, relative to current Rotation [SOLVED]
- Replies: 15
- Views: 3254
what do you mean in special ? The last snippet was all I used to rotate a user loaded mesh, with a initial start rotation torwards step n+1. you could write that in general: vector3df v = TargetNode->getPosition() - CurrentNode->getPosition() vector3df angle = v.getHorizontalAngle() + StartRotation;...
- Sun Mar 16, 2008 1:01 pm
- Forum: Beginners Help
- Topic: Face next Position, relative to current Rotation [SOLVED]
- Replies: 15
- Views: 3254
- Sun Mar 16, 2008 7:52 am
- Forum: Advanced Help
- Topic: How to rotate a Node around a user specific axis ?
- Replies: 5
- Views: 615
How to rotate a Node around a user specific axis ?
Hi there, as my question in the beginners forum isnt solved till now, I'm asking the last part of it here. Is it possible (btw it is) to rotate a Node around an axis != X, Y, Z ? I'm not that into mathematics. I have the angle and the axis (vector3df). But no idea how to apply this to a Node. Is the...
- Fri Mar 14, 2008 7:57 pm
- Forum: Beginners Help
- Topic: Face next Position, relative to current Rotation [SOLVED]
- Replies: 15
- Views: 3254
don't stress yourself with my crazy problems ;) get your massage, relax and if you feel bored come back :) I'm still working on that, maybe I'm near but I show you : at first two pics, the first is the simulator i'm working on, so just for an overview of my prob for the others http://img297.imagesha...
- Fri Mar 14, 2008 6:09 pm
- Forum: Beginners Help
- Topic: Face next Position, relative to current Rotation [SOLVED]
- Replies: 15
- Views: 3254
uuuuups :D many sorry :) but i remembered you as correct author ;) ok rogerborg, I know you've got much math skills as I read many posts searching for my problem. You were always hanging around in that interesting rotation-problem-threads so do you eventually know more than we ? I'm totally stuck at...
- Fri Mar 14, 2008 2:48 pm
- Forum: Beginners Help
- Topic: Face next Position, relative to current Rotation [SOLVED]
- Replies: 15
- Views: 3254
hmm no success at all, I'm just too dumb i think :( your Code from IrrAI: vector3df r = sim->get_Pos(ind, cur_step) - elements[ind]->getPosition(); vector3df angle; angle.Y = atan2 (r.X, r.Z) * RADTODEG; elements[ind]->setRotation(angle); sim->get_Pos() returns the next Position for step+1. elements...
- Fri Mar 14, 2008 10:55 am
- Forum: Beginners Help
- Topic: Face next Position, relative to current Rotation [SOLVED]
- Replies: 15
- Views: 3254
- Fri Mar 14, 2008 10:11 am
- Forum: Beginners Help
- Topic: Face next Position, relative to current Rotation [SOLVED]
- Replies: 15
- Views: 3254
In my case its arbitrary. I've made a simulator which plays different agent-object relationship scenarios (read from xml). There are different objects and their positions for each step in these simulations. I've integrated the feature to dynamically load a mesh and apply it to the selected entity. T...
- Fri Mar 14, 2008 9:26 am
- Forum: Beginners Help
- Topic: Face next Position, relative to current Rotation [SOLVED]
- Replies: 15
- Views: 3254
I know, but I doesn't know the formula which calculates the two needed angles in relation to the current rotation. what i have so far is a code snippet (dont beat me, i think it was from rogerbug ?) vector3df toTarget = sim->get_Pos(ind, cur_step) - elements[ind]->getAbsolutePosition(); vector3df ro...
- Thu Mar 13, 2008 4:56 pm
- Forum: Beginners Help
- Topic: Face next Position, relative to current Rotation [SOLVED]
- Replies: 15
- Views: 3254
Face next Position, relative to current Rotation [SOLVED]
Hi there, I've got a little problem with relative rotations. I spend the last hour searching for other related threads and test some found code but it does not work the way it should. the scenario : There is an array of positions for a SceneNode. At step 0 the user can rotate the mesh to look torwar...
- Thu Mar 13, 2008 9:16 am
- Forum: Project Announcements
- Topic: irrPreSetting
- Replies: 26
- Views: 14375
- Thu Feb 28, 2008 11:11 pm
- Forum: Beginners Help
- Topic: How to resolve the color of the pixel hoverd by the mouse ?
- Replies: 1
- Views: 169
How to resolve the color of the pixel hoverd by the mouse ?
Hi there
I'm working on a little dialog which lets u select a color. I have a window, and a texture (rainbow colors) placed in it.
Is there any simple way to get the color of the pixel in that displayed texture which is hovered by the mouse cursor ?!
greets
paddy
I'm working on a little dialog which lets u select a color. I have a window, and a texture (rainbow colors) placed in it.
Is there any simple way to get the color of the pixel in that displayed texture which is hovered by the mouse cursor ?!
greets
paddy
- Tue Feb 12, 2008 4:29 pm
- Forum: Project Announcements
- Topic: irrPreSetting
- Replies: 26
- Views: 14375
- Wed Feb 06, 2008 11:14 pm
- Forum: Advanced Help
- Topic: How to know which surface of a cube has been clicked on?
- Replies: 6
- Views: 943
i would just place 6 seperate quads (invisible SceneNodes) with an id (back, front, left, right, top, bottom) infront of the original cube Node an attach the invisible quads as childs of the cube SceneNode. ... then you could use getSceneNodeFromRayBB() or do I'm thinking wrong ?! Its simple isn't ?...
- Thu Jan 24, 2008 2:28 pm
- Forum: Beginners Help
- Topic: Strange include problem (src ok, but compile errors)
- Replies: 3
- Views: 427
omg, i found it.... today in the morning i changed my IXML class from IrrXML to IXML using auto replace... what I didn't noticed, the IDE replaced also the line : IrrXMLReader* xml; to IXMLReader* xml; and there is also a IXMLReader class in the Irrlicht Engine, which appearently uses slight differe...