Page 1 of 1

3rd Person airplanes

PostPosted: Fri Sep 27, 2013 9:29 pm
by Swaffy
If you've played my mod, you've notice my tanks having a static 3rd person camera, and allows the player to aim. Should I do this with airplanes too?

Kind of like War Thunder:
http://imageshack.us/a/img607/3682/warthunder03.jpg

Re: 3rd Person airplanes

PostPosted: Fri Sep 27, 2013 11:23 pm
by Vilespring
I like how you make it 3rd + 1st person camera on the tanks. I would love a 1st/3rd option! :D

Re: 3rd Person airplanes

PostPosted: Sat Sep 28, 2013 7:12 am
by Swaffy
Vilespring wrote:I like how you make it 3rd + 1st person camera on the tanks. I would love a 1st/3rd option! :D

I can do that but there won't be a cockpit. Just the 3rd person and the "in front of the nose" cam. The problem is that I can't use the 1st person mesh when doing the 3rd person cameras. It was easy to do that for tanks, but airplane cockpits are a completely different problem.

Re: 3rd Person airplanes

PostPosted: Sat Dec 07, 2013 9:22 am
by Apache Thunder
I don't use a 1P lod system at all for the planes in the my BFH'42 mod. So I am able to cycle through 1P view, and 3P view at will. Perhaps you can try and merge the cockpit Geometry with the exterior geometry in Gmax/3DSMax?

You could also just addTemplate the cockpit directly to the complex bundle and skip the lodobject process all together if the cockpit geometry overlaps without clipping issues. Otherwise you would need to edit the mesh to make them get along. :P

Re: 3rd Person airplanes

PostPosted: Sat Dec 07, 2013 5:32 pm
by Swaffy
If that is possible with the vanilla airplane models, then I can do it.

Re: 3rd Person airplanes

PostPosted: Mon Dec 09, 2013 2:02 pm
by Swaffy
I just found something weird with the Audax biplane in my mod.

There are basically two cameras attached to the Complex bundle:
Code: Select all
ObjectTemplate.addTemplate AudaxCamera
ObjectTemplate.setPosition 0.001/1.033/-1.124
ObjectTemplate.setRotation 0/0/0
ObjectTemplate.addTemplate AudaxNoseCamera
ObjectTemplate.setPosition 0/0/5

... Then if you scroll down further ...
Code: Select all
rem *** AudaxCamera ***
ObjectTemplate.create Camera AudaxCamera
ObjectTemplate.setMinRotation -150/-60/0
ObjectTemplate.setMaxRotation 150/14/0
ObjectTemplate.setMaxSpeed 90/-90/0
ObjectTemplate.setAcceleration 5000/5000/0
ObjectTemplate.setInputToYaw c_PIMouseLookX
ObjectTemplate.setInputToPitch c_PIMouseLookY
ObjectTemplate.toggleMouseLook 1
ObjectTemplate.OutsideHudOffset 0/-0.1/4

rem *** AudaxNoseCamera ***
ObjectTemplate.create Camera AudaxNoseCamera
ObjectTemplate.setMinRotation -70/-60/0
ObjectTemplate.setMaxRotation 70/14/0
ObjectTemplate.setMaxSpeed 90/-90/0
ObjectTemplate.setAcceleration 5000/5000/0
ObjectTemplate.setInputToYaw c_PIMouseLookX
ObjectTemplate.setInputToPitch c_PIMouseLookY
ObjectTemplate.toggleMouseLook 0

Now ... either this was a mistake by whoever coded this vehicle or I'm just not seeing something.