Search found 25 matches

by paddy
Sun Mar 16, 2008 7:37 pm
Forum: Beginners Help
Topic: Face next Position, relative to current Rotation [SOLVED]
Replies: 15
Views: 3151

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;...
by paddy
Sun Mar 16, 2008 1:01 pm
Forum: Beginners Help
Topic: Face next Position, relative to current Rotation [SOLVED]
Replies: 15
Views: 3151

I solved it, with only one little bug remaining, at first the working code... omg it was simpler than I thought :/ I already was juggling around with quaternions & matrices but all I needed was : vector3df n = sim->get_Pos(ind, cur_step) - sim->get_Pos(ind, cur_step-1); vector3df phi = n.getHori...
by paddy
Sun Mar 16, 2008 7:52 am
Forum: Advanced Help
Topic: How to rotate a Node around a user specific axis ?
Replies: 5
Views: 596

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...
by paddy
Fri Mar 14, 2008 7:57 pm
Forum: Beginners Help
Topic: Face next Position, relative to current Rotation [SOLVED]
Replies: 15
Views: 3151

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...
by paddy
Fri Mar 14, 2008 6:09 pm
Forum: Beginners Help
Topic: Face next Position, relative to current Rotation [SOLVED]
Replies: 15
Views: 3151

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...
by paddy
Fri Mar 14, 2008 2:48 pm
Forum: Beginners Help
Topic: Face next Position, relative to current Rotation [SOLVED]
Replies: 15
Views: 3151

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...
by paddy
Fri Mar 14, 2008 10:55 am
Forum: Beginners Help
Topic: Face next Position, relative to current Rotation [SOLVED]
Replies: 15
Views: 3151

I'll check your source now :) and you are right, the idea with the bounding box face select isnt that proper at all :)

I come back later to tell if it worked :)

thanks for your help!
by paddy
Fri Mar 14, 2008 10:11 am
Forum: Beginners Help
Topic: Face next Position, relative to current Rotation [SOLVED]
Replies: 15
Views: 3151

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...
by paddy
Fri Mar 14, 2008 9:26 am
Forum: Beginners Help
Topic: Face next Position, relative to current Rotation [SOLVED]
Replies: 15
Views: 3151

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...
by paddy
Thu Mar 13, 2008 4:56 pm
Forum: Beginners Help
Topic: Face next Position, relative to current Rotation [SOLVED]
Replies: 15
Views: 3151

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...
by paddy
Thu Mar 13, 2008 9:16 am
Forum: Project Announcements
Topic: irrPreSetting
Replies: 26
Views: 14105

nobody has it anymore ??? :-(
by paddy
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: 160

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
by paddy
Tue Feb 12, 2008 4:29 pm
Forum: Project Announcements
Topic: irrPreSetting
Replies: 26
Views: 14105

very useful tool, I would like to use it but the last download links are broken, could you plz fix ?

many thx!
by paddy
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: 899

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 ?...
by paddy
Thu Jan 24, 2008 2:28 pm
Forum: Beginners Help
Topic: Strange include problem (src ok, but compile errors)
Replies: 3
Views: 421

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...