Search found 13 matches
- Thu Aug 07, 2008 6:49 am
- Forum: Beginners Help
- Topic: reading file data and making models move accordingly
- Replies: 17
- Views: 694
That looks like you have an object with an ID of 0. I assumed from the sample file - and lack of requirements - that your objects were 1 indexed. If they're 0 indexed, then you could change the indexing in the code, e.g.: objects.set_used(id + 1); ... objects[id] = newNode; ... objects[command.obje...
- Wed Aug 06, 2008 11:08 am
- Forum: Beginners Help
- Topic: rotation of model
- Replies: 5
- Views: 292
You should get sensable results from your first solution as well, once you use a real vector for the first one. Just try to figure yourself how to rotate the null vector so it will become some other vector... So I guess your first vector is (0,0,10) i didnt mean a null vector. its a vector of coord...
- Wed Aug 06, 2008 8:02 am
- Forum: Beginners Help
- Topic: rotation of model
- Replies: 5
- Views: 292
kool.. will have a look and try implementing. the getHorizontalangle() function is easy way.alrusdi wrote:http://irrlicht.sourceforge.net/phpBB2/ ... php?t=1325
- Wed Aug 06, 2008 8:01 am
- Forum: Beginners Help
- Topic: reading file data and making models move accordingly
- Replies: 17
- Views: 694
That looks like you have an object with an ID of 0. I assumed from the sample file - and lack of requirements - that your objects were 1 indexed. If they're 0 indexed, then you could change the indexing in the code, e.g.: objects.set_used(id + 1); ... objects[id] = newNode; ... objects[command.obje...
- Wed Aug 06, 2008 6:30 am
- Forum: Beginners Help
- Topic: rotation of model
- Replies: 5
- Views: 292
rotation of model
hello, i have a model. i need to make move. from point P1 to P2. I need to calculate the angle for the model to turn to tat vector and then i can move it. suppose i have p1 = (0,0,0) and p2 = (10, 0, 10); The character has to turn 45degrees to face that vector. I tried calculating the rotation angle...
- Wed Aug 06, 2008 3:28 am
- Forum: Beginners Help
- Topic: reading file data and making models move accordingly
- Replies: 17
- Views: 694
Re: reading file data and making models move accordingly
RUN,ID,x,y,z,time Spline animators don't have any concept of 'time' though; they just move at a fixed speed through all of their points. Can you explain a little more about what all the parameters mean? In fact, if you can provide specific requirements and a sample resource file, I'll likely just w...
- Wed Aug 06, 2008 2:55 am
- Forum: Beginners Help
- Topic: reading file data and making models move accordingly
- Replies: 17
- Views: 694
If you're running on a desktop, memory is cheap, while filesystem access is still (relatively) slow. On a mobile device, memory is more expensive, but filesystem access is even slower. I'd go for storing everything in memory, rather than doing incremental file reads. 200 objects * 20 movement per s...
- Wed Aug 06, 2008 2:51 am
- Forum: Beginners Help
- Topic: reading file data and making models move accordingly
- Replies: 17
- Views: 694
- Tue Aug 05, 2008 9:47 am
- Forum: Beginners Help
- Topic: reading file data and making models move accordingly
- Replies: 17
- Views: 694
No, look at irrlicht-1.4.1\bin\Win32-VisualStudio\Demo.exe When the app starts the camera starts flying around the quake map itself, no user interaction at all. To me that sounds exactly what you're after. So all you need to do is read in the necessary points from your file and create the follow sp...
- Tue Aug 05, 2008 8:22 am
- Forum: Beginners Help
- Topic: reading file data and making models move accordingly
- Replies: 17
- Views: 694
why do you need to construct the follow spline animator more than once? check out the demo tutorial in the SDK and see if what the camera does on start up (fly around the quake map on a preset, automated path) is the sort of thing you think you need. no tat is not wat i really need. the one in demo...
- Tue Aug 05, 2008 6:41 am
- Forum: Beginners Help
- Topic: reading file data and making models move accordingly
- Replies: 17
- Views: 694
JP, wat i need to do is do the animated walk every 0.05 seconds. i need to construct the followsplieanimator every 0.05 seconds. The Demo tutorial shows you how to use the follow spline animator which allows you to move a node along a set path automatically so just read in your list of positions and...
- Tue Aug 05, 2008 6:32 am
- Forum: Beginners Help
- Topic: reading file data and making models move accordingly
- Replies: 17
- Views: 694
Re: reading file data and making models move accordingly
RUN,ID,x,y,z,time Spline animators don't have any concept of 'time' though; they just move at a fixed speed through all of their points. Can you explain a little more about what all the parameters mean? In fact, if you can provide specific requirements and a sample resource file, I'll likely just w...
- Mon Aug 04, 2008 3:30 am
- Forum: Beginners Help
- Topic: reading file data and making models move accordingly
- Replies: 17
- Views: 694
reading file data and making models move accordingly
hello, am new 2 this engine. I am doing a visualization on it. I have the coordinates of the model at each step. I want to know of a tutorial to read the file and make the object move accordingly. My file is as follows: RUN,ID,x,y,z,time ... .... .... Can anyone give me a good tutorial on this or so...