FR_Camera.SetRotation fr_usercar, 0 , 0 , 0 , ?? what is this last thing? i also want to know how to do these 3 other camera angles , i can reposition them but what are the x y and z coordinates that it has to turn? and over what axis? (i am a n00b in d3d and just learned it 2 days ago)
sorry about that. what i want to do is create a left , right , front and rear view. i know which positions it needs but the Degrees and stuff like that i really dunno can you give me a little example in code? the camera is always at the rear (0 degrees) from the beginning
OH, now that I made sense of your picture I understand what you want. Ok, you can do this two ways. The first way which is easier, is to repostion the camera - you'll have to play around with the axis. The second way is to set an "orientation" which is a lot more complicated, here you'll have to play around with even more axis (dx,dy,dz,ux,uy,uz) - so it's your choice:|
Err well i know how to do both (the last one a bit) but if i just use set coordinate it will not FACE the car anymore (btw the camera is the child of the car wich moves) i found the .setrotation option and i guess i have to use that one to just let it rotate towards the car. if you want i can post my entire code here (in a zip) so you could see what i mean and can help me with it (tell me if you do)
Last edited by Ultimasnake; Sep 1st, 2002 at 04:02 PM.
Sure post it, yes your right. The only way to FACE the car is to use the set orientation command. I never really did figure out how it works, but I did it before, I'll see if I remember.
here it is. it is rather easy made (nice car model though) i am also wondering how to create SHADows on my car etc etc .. do you might be able to help with this too? (not really necessary is just a nice extra )
the file is file here because i cant upload a 260 KB file (TO BIG DARN)
Ok, when I press the W key, the camera moves in front of the car, but it doesn't actually "face" the car. If you want the camera to face the car why don't you do it like in the game "carmageddon" where you can spin the camera "around" the car so the user can choose any angle he/she want to "face the car". Just add this code:
Case Is = "L"
FR_Camera.AddRotation D3DRMCOMBINE_AFTER, 0, -1, 0, 0.1
Case Is = "R"
FR_Camera.AddRotation D3DRMCOMBINE_AFTER, 0, 1, 0, 0.1
Sorry never got into shadows, maybe I will when I make my next 3d game, right now I have to finish a 2d game first.
haha thanks allot. anyway i didnt know how to do the rotation thing so i didnt know it would stay focused at the CAR thanks again m8 :P will do up and down too