[Help] Making 3D iron sights. Need to find the center on screen
-
Pvt.LHeureux
- Posts: 4796
- Joined: 2009-04-03 15:45
Re: Making 3D iron sights. Need to find the center on screen
I'll look into that Lucky, also Amok@ndy, I'll try that. Thanks.

Chuva_RD : You want to remove bugged thing but dont tell how to fill formed void.
-
AfterDune
- Retired PR Developer
- Posts: 17094
- Joined: 2007-02-08 07:19
Re: Making 3D iron sights. Need to find the center on screen
Cool stuff. Sure, needs some work, but at least we got rid of the 2D sight now which is quite an improvement already!

-
Pvt.LHeureux
- Posts: 4796
- Joined: 2009-04-03 15:45
Re: Making 3D iron sights. Need to find the center on screen
It's cool, I'm almost finished with the current weapons, I just need to create a "zoom in" animation for each weapon wich isn't hard at all 
Also I'm going to edit the K98's sprinting animation, it needs some work ^^
AD, if you can give me the models of the new weapons, like the new BAR1918 you wanted over the old one, the new ZB26 mg for the germans, would be cool so I can be sure they have good centered iron sights
Any other weapons that we will add in the next version? I could make sure they have good sights.
I'll post a video of all the finished animations for all the weapons once it's done. (It's really easy lol)
P.S. : I also centered the Colt1911's sights, it was strange without the front tip lol
Also I'm going to edit the K98's sprinting animation, it needs some work ^^
AD, if you can give me the models of the new weapons, like the new BAR1918 you wanted over the old one, the new ZB26 mg for the germans, would be cool so I can be sure they have good centered iron sights
Any other weapons that we will add in the next version? I could make sure they have good sights.
I'll post a video of all the finished animations for all the weapons once it's done. (It's really easy lol)
P.S. : I also centered the Colt1911's sights, it was strange without the front tip lol

Chuva_RD : You want to remove bugged thing but dont tell how to fill formed void.
-
Chuc
- Retired PR Developer
- Posts: 7016
- Joined: 2007-02-11 03:14
Re: Making 3D iron sights. Need to find the center on screen
Nice work. I'll forward you some files so you can see how things are done in-house to get the zoom animations looking just right.
-
Pvt.LHeureux
- Posts: 4796
- Joined: 2009-04-03 15:45
Re: Making 3D iron sights. Need to find the center on screen
AD, I'm doing a whole new reload animation for the ZB 26, the current one is AWFULL. Mine is turning out good since I started playing some StartCraft music while doing it. Weird.
EDIT : also Chuc, HI solvers seem to have problems with Auto Key
EDIT : also Chuc, HI solvers seem to have problems with Auto Key

Chuva_RD : You want to remove bugged thing but dont tell how to fill formed void.
-
AfterDune
- Retired PR Developer
- Posts: 17094
- Joined: 2007-02-08 07:19
-
Wakain
- Posts: 1159
- Joined: 2009-11-23 21:58
Re: Making 3D iron sights. Need to find the center on screen
in regard to the m1 garand (from eod2?): you might want to bring it a bit more back to the screen while aiming, irl one would position one's head more to the iron sights, this'll also enlargen the irons a bit and will thus increase the player's field of view while aiming as well.
-
Spush
- Retired PR Developer
- Posts: 4359
- Joined: 2007-02-19 02:08
Re: Making 3D iron sights. Need to find the center on screen
Keep this up, could always use more animators
.
Last edited by Spush on 2012-04-18 17:40, edited 1 time in total.
-
Pvt.LHeureux
- Posts: 4796
- Joined: 2009-04-03 15:45
Re: Making 3D iron sights. Need to find the center on screen
Ok I need help. I just finished my reload animation, it looks great (well, it is 100x better than the old one, also it respects the true reload system of the weapon) but I want it to be faster, because right now we can see all the annoying little movements at the speed it goes 
So in which file can I make the animation faster?
So in which file can I make the animation faster?

Chuva_RD : You want to remove bugged thing but dont tell how to fill formed void.
-
Chuc
- Retired PR Developer
- Posts: 7016
- Joined: 2007-02-11 03:14
Re: Making 3D iron sights. Need to find the center on screen
Animation system file for 1p. There you can scale the length of the animation when it plays back in BF2.
-
Pvt.LHeureux
- Posts: 4796
- Joined: 2009-04-03 15:45
Re: Making 3D iron sights. Need to find the center on screen
I can't seem to find the lenght for the reload, that's what the file looks lile :
Should I tweak the fade out time?`animationSystem.cameraSpring.use 1
animationSystem.cameraSpring.amplitude 0.07/0.03/0.02
animationSystem.cameraSpring.zoomDamping 3/3/4
animationSystem.cameraSpring.stiffness 10/10/10
animationSystem.cameraSpring.move 2/2/2
animationSystem.cameraSpring.look 1/1
animationSystem.cameraSpring.fire 0/0/40
rem *** Animations ***
animationSystem.createAnimation Objects/Weapons/Handheld/zbvz26/Animations/1p/1p_zbvz26_deploy.baf
animationManager.looping 0
animationSystem.createAnimation Objects/Weapons/Handheld/zbvz26/Animations/1p/1p_zbvz26_fire.baf
animationManager.looping 0
animationManager.noiceFreq 3
animationManager.noiceAmplitude 0.002
animationSystem.createAnimation Objects/Weapons/Handheld/zbvz26/Animations/1p/1p_zbvz26_idle1.baf
animationManager.looping 0
animationSystem.createAnimation Objects/Weapons/Handheld/zbvz26/Animations/1p/1p_zbvz26_idle2.baf
animationManager.looping 0
animationManager.length 2.95833
animationSystem.createAnimation Objects/Weapons/Handheld/zbvz26/Animations/1p/1p_zbvz26_reload.baf
animationManager.looping 0
animationSystem.createAnimation Objects/Weapons/Handheld/zbvz26/Animations/1p/1p_zbvz26_run.baf
animationManager.length 0.666667
animationSystem.createAnimation Objects/Weapons/Handheld/zbvz26/Animations/1p/1p_zbvz26_sprint.baf
animationSystem.createAnimation Objects/Weapons/Handheld/zbvz26/Animations/1p/1p_zbvz26_stand.baf
animationSystem.createAnimation Objects/Weapons/Handheld/zbvz26/animations/1p/1p_zbvz26_tozoom.baf
animationManager.looping 0
animationManager.length 0.083333
animationSystem.createAnimation Objects/Weapons/Handheld/zbvz26/Animations/1p/1p_zbvz26_zoom_fire.baf
animationManager.looping 0
animationSystem.createAnimation Objects/Weapons/Handheld/zbvz26/Animations/1p/1p_zbvz26_zoom_run.baf
animationManager.length 1.83333
animationSystem.createAnimation Objects/Weapons/Handheld/zbvz26/Animations/1p/1p_zbvz26_zoom_stand.baf
rem *** Bundles ***
animationSystem.createBundle deploy
animationBundle.isLooping 0
animationBundle.fadeInTime 0.001
animationBundle.fadeOutTime 0.3
animationBundle.addAnimation Objects/Weapons/Handheld/zbvz26/Animations/1p/1p_zbvz26_deploy.baf
animationSystem.createBundle fire
animationBundle.isLooping 0
animationBundle.abruptPlayback 1
animationBundle.fadeInTime 0.001
animationBundle.addAnimation Objects/Weapons/Handheld/zbvz26/Animations/1p/1p_zbvz26_fire.baf
animationSystem.createBundle idle1
animationBundle.isLooping 0
animationBundle.fadeInTime 0.001
animationBundle.fadeOutTime 0.3
animationBundle.addAnimation Objects/Weapons/Handheld/zbvz26/Animations/1p/1p_zbvz26_idle1.baf
animationSystem.createBundle idle2
animationBundle.isLooping 0
animationBundle.fadeInTime 0.001
animationBundle.fadeOutTime 0.3
animationBundle.addAnimation Objects/Weapons/Handheld/zbvz26/Animations/1p/1p_zbvz26_idle2.baf
animationSystem.createBundle reload
animationBundle.isLooping 0
animationBundle.fadeOutTime 0.5
animationBundle.addAnimation Objects/Weapons/Handheld/zbvz26/Animations/1p/1p_zbvz26_reload.baf
animationSystem.createBundle run
animationBundle.fadeOutTime 0.2
animationBundle.addAnimation Objects/Weapons/Handheld/zbvz26/Animations/1p/1p_zbvz26_run.baf
animationSystem.createBundle sprint
animationBundle.fadeOutTime 0.2
animationBundle.addAnimation Objects/Weapons/Handheld/zbvz26/Animations/1p/1p_zbvz26_sprint.baf
animationSystem.createBundle still
animationBundle.addAnimation Objects/Weapons/Handheld/zbvz26/Animations/1p/1p_zbvz26_stand.baf
animationSystem.createBundle zoom_fire
animationBundle.isLooping 0
animationBundle.abruptPlayback 1
animationBundle.fadeInTime 0.001
animationBundle.addAnimation Objects/Weapons/Handheld/zbvz26/Animations/1p/1p_zbvz26_zoom_fire.baf
animationSystem.createBundle zoom_run
animationBundle.fadeOutTime 0.2
animationBundle.addAnimation Objects/Weapons/Handheld/zbvz26/Animations/1p/1p_zbvz26_zoom_run.baf
animationSystem.createBundle zoom_still
animationBundle.addAnimation Objects/Weapons/Handheld/zbvz26/Animations/1p/1p_zbvz26_zoom_stand.baf
animationSystem.createBundle zoomTransition
animationBundle.isLooping 0
animationBundle.fadeInTime 0
animationBundle.fadeOutTime 0
animationBundle.addAnimation Objects/Weapons/Handheld/zbvz26/animations/1p/1p_zbvz26_tozoom.baf
rem *** Triggers ***
animationSystem.createTrigger Trigger zoom_still
animationTrigger.addBundle zoom_still
animationSystem.createTrigger MovementTrigger zoom_move
animationTrigger.addBundle zoom_run
animationTrigger.valueHolder 1p_zoom_move
animationSystem.createTrigger MessageTrigger zoom_fire
animationTrigger.addBundle zoom_fire
animationTrigger.message 1
animationSystem.createTrigger Trigger zoom
animationTrigger.addChild zoom_still
animationTrigger.addChild zoom_move
animationTrigger.addChild zoom_fire
animationSystem.createTrigger RandomTrigger rnd_idle
animationTrigger.addBundle idle1
animationSystem.createTrigger IdleTrigger idle
animationTrigger.addChild rnd_idle
animationTrigger.idleTime 5/15
animationSystem.createTrigger Trigger still
animationTrigger.addChild idle
animationTrigger.addBundle still
animationSystem.createTrigger MovementTrigger move
animationTrigger.addBundle run
animationTrigger.valueHolder 1p_move
animationSystem.createTrigger MovementTrigger sprint
animationTrigger.addBundle sprint
animationTrigger.valueHolder 1p_sprint
animationSystem.createTrigger MessageTrigger fire
animationTrigger.addBundle fire
animationTrigger.message 1
animationSystem.createTrigger MessageTrigger reload
animationTrigger.addBundle reload
animationTrigger.message 2
animationSystem.createTrigger Trigger normal
animationTrigger.addChild still
animationTrigger.addChild move
animationTrigger.addChild sprint
animationTrigger.addChild fire
animationTrigger.addChild reload
animationSystem.createTrigger SwitchMessageTrigger root
animationTrigger.addChild zoom
animationTrigger.addChild normal
animationTrigger.addBundle zoomTransition
animationTrigger.message 4
animationSystem.createTrigger Trigger startup
animationTrigger.addBundle deploy
animationSystem.createTrigger Trigger completeTree
animationTrigger.addChild root
animationTrigger.addChild startup

Chuva_RD : You want to remove bugged thing but dont tell how to fill formed void.
-
AfterDune
- Retired PR Developer
- Posts: 17094
- Joined: 2007-02-08 07:19
Re: Making 3D iron sights. Need to find the center on screen
Ooh, you can set the speed of the animation in the .inc file. Interesting! Would like to know that too
.

-
Psyko
- Posts: 4466
- Joined: 2008-01-03 13:34
Re: Making 3D iron sights. Need to find the center on screen
I hope this helps. its from my notes. In order for the IK to work you have to do this in this order.Pvt.LHeureux wrote:also Chuc, HI solvers seem to have problems with Auto Key![]()
I think straight under...CONSTRAINTS
when setting up constraits, first select the wrist bones, go animation, orientation constraint and select the weapon
then select the IK controller and go, animation, constraints, link constraint, select the weapon.
you put...animationSystem.createAnimation Objects/Weapons/Handheld/zbvz26/Animations/1p/1p_zbvz26_reload.baf
animationManager.looping 0
Not entirly sure. the AR reloads are 6 seconds anyway and those files deal in seconds. try it out but dont take my word for it.animationManager.length 6
-
Chuc
- Retired PR Developer
- Posts: 7016
- Joined: 2007-02-11 03:14
Re: Making 3D iron sights. Need to find the center on screen
Psyko is right, just throw in that line and it'll set the length of the animation. If in doubt, check another weapon's animation system file for reference.
-
Pvt.LHeureux
- Posts: 4796
- Joined: 2009-04-03 15:45
Re: Making 3D iron sights. Need to find the center on screen
Thanks guys 
I need to do some corrections on it, one part of the animation is really clunky. Even there it's better than the old one
I need to do some corrections on it, one part of the animation is really clunky. Even there it's better than the old one

Chuva_RD : You want to remove bugged thing but dont tell how to fill formed void.
-
Pvt.LHeureux
- Posts: 4796
- Joined: 2009-04-03 15:45
Re: Making 3D iron sights. Need to find the center on screen
I didn't make it faster, it just made possible to shoot while still reloading 

Chuva_RD : You want to remove bugged thing but dont tell how to fill formed void.
-
Chuc
- Retired PR Developer
- Posts: 7016
- Joined: 2007-02-11 03:14
Re: Making 3D iron sights. Need to find the center on screen
Look in the weapon's tweak file. Under the variable "ObjectTemplate.ammo.reloadTime", set the value to match the one in the animation system file.
-
Pvt.LHeureux
- Posts: 4796
- Joined: 2009-04-03 15:45
Re: Making 3D iron sights. Need to find the center on screen
Works well, thanks 

Chuva_RD : You want to remove bugged thing but dont tell how to fill formed void.
-
Pvt.LHeureux
- Posts: 4796
- Joined: 2009-04-03 15:45
Re: Making 3D iron sights. Need to find the center on screen
I got a really annoying behaviour with the Garand and the K98. They zoom when I got aim, so with the K98 it's possible to see through statics because of that. I've redone all their animations and it still happens 

Chuva_RD : You want to remove bugged thing but dont tell how to fill formed void.
-
Chuc
- Retired PR Developer
- Posts: 7016
- Joined: 2007-02-11 03:14
Re: Making 3D iron sights. Need to find the center on screen
Copy over the zoom code from another weapon's tweak file.

