[Help] Making 3D iron sights. Need to find the center on screen

Making or wanting help making your own asset? Check in here
Pvt.LHeureux
Posts: 4796
Joined: 2009-04-03 15:45

[Help] Making 3D iron sights. Need to find the center on screen

Post by Pvt.LHeureux »

Hey right now I'm making 3D iron sights for Project Normandy, it's working good, except one thing, when in-game when I shoot, the bullets do not come where I point, since they come out of the center of the screen with the BF2 engine.

So is there any program out there that can pinpoint the center of my screen? Like place a virtual dot on the center of my screen? So when I align the sights in the editor + 3DsMax9, I will see where I need to align them.

I just need a program that can do that. Maybe even Microsoft Word can do it, I'm just asking anyway to find the center.

Thanks. :)

NOTE : I know that in some videos people were able to shoot off the center with BF2 engine, but this is not the point here.

EDIT : Please a mod, edit the thread name and put [SOLVED] in it.

Posted video on 2nd page.
Last edited by Pvt.LHeureux on 2012-04-16 18:58, edited 3 times in total.
Image

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

Post by AfterDune »

You could try the alt-GUI of the M4 aimpoint. That has a red dot, right?

ObjectTemplate.weaponHud.altGuiIndex 53
Image
Rhino
Retired PR Developer
Posts: 47909
Joined: 2005-12-13 20:00

Re: Making 3D iron sights. Need to find the center on screen

Post by Rhino »

to find the centre of the screen in the editor, go to Render>Hud>Toggle Draw Ref Cross
Image
Pvt.LHeureux
Posts: 4796
Joined: 2009-04-03 15:45

Re: Making 3D iron sights. Need to find the center on screen

Post by Pvt.LHeureux »

So you mean that I can assign this Gui to the Garand for exemple and that it will center it properly?

EDIT : Thanks Rhino
Image

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

Post by AfterDune »

The animation centers it properly. Giving the weapon that HUD or use the draw ref cross in the editor displays how far off you are ;) .
Image
Pvt.LHeureux
Posts: 4796
Joined: 2009-04-03 15:45

Re: Making 3D iron sights. Need to find the center on screen

Post by Pvt.LHeureux »

Strange, the reff cross says I'm right on the middle. But bullets were coming on the left in-game.
Image

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

Post by Pvt.LHeureux »

Ok I made some corrections, the aim is right in the center now. I just had to use the "rotate" tool in 3Dsmax9, did the trick. Thanks for the help, didn't know about the ref cross.
Image

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

Post by Pvt.LHeureux »

M1 Garand is finished, 10/10 perfect :D

Now going to do the other weapons.
Image

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

Post by AfterDune »

Vids or it didn't happen ;) .
Image
Pvt.LHeureux
Posts: 4796
Joined: 2009-04-03 15:45

Re: Making 3D iron sights. Need to find the center on screen

Post by Pvt.LHeureux »

Ok I sent you the files AfterDune, I'll upload a video for the other grunts :razz:
Image

Chuva_RD : You want to remove bugged thing but dont tell how to fill formed void.
J.F.Leusch69
Retired PR Developer
Posts: 2988
Joined: 2008-04-23 16:37

Re: Making 3D iron sights. Need to find the center on screen

Post by J.F.Leusch69 »

you shouldnt also change the window size of the editor inside the editor (not moving the tweakbar or hiding the console at the buttom of the window), because it will of set the resloution
Spush
Retired PR Developer
Posts: 4359
Joined: 2007-02-19 02:08

Re: Making 3D iron sights. Need to find the center on screen

Post by Spush »

Pictures or it didn't happen! :razz:
Pvt.LHeureux
Posts: 4796
Joined: 2009-04-03 15:45

Re: Making 3D iron sights. Need to find the center on screen

Post by Pvt.LHeureux »

Video here :



It looks smaller and harder to see in the video, it's better ingame :)
Image

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

Post by Pvt.LHeureux »

You were hungry for the video guys, common :(

In the mean time I did the M1 carbine, it took 5 minutes lol.
Image

Chuva_RD : You want to remove bugged thing but dont tell how to fill formed void.
Spush
Retired PR Developer
Posts: 4359
Joined: 2007-02-19 02:08

Re: Making 3D iron sights. Need to find the center on screen

Post by Spush »

Looks good, need some tweaks for bringing up the sight but it's good, better than having 2d texture sights.
Pvt.LHeureux
Posts: 4796
Joined: 2009-04-03 15:45

Re: Making 3D iron sights. Need to find the center on screen

Post by Pvt.LHeureux »

Yeah I can do a simple animation for that :razz:
Image

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

Post by Pvt.LHeureux »

Hey AfterDune, guess who's doing troubles again? :

Ignored Warning[Physics] : Collision mesh "objects/weapons/handheld/hgr_incendiary/Meshes/hgr_smoke_signal.collisionMesh" not found.

Yes, when I try to load the Thompson in the editor it crashes because of the incendiary. Anyway I can fix this?

I guess I have to find this collisionMesh somewhere in the files and put it in my pr_edit so the editor can read the damn Thompson

Somehow the inciendiary is linked to the Thompson, that's what was crashing the servers when PN was firt released. So it was disabled, but now I need the collisionMesh :razz:
Image

Chuva_RD : You want to remove bugged thing but dont tell how to fill formed void.
Amok@ndy
Retired PR Developer
Posts: 5144
Joined: 2008-11-27 22:13

Re: Making 3D iron sights. Need to find the center on screen

Post by Amok@ndy »

is this the whole message ?
i remember that problem with the huey collision meshes were searched in a wrong directory which confused the editor, simply copying the files to the strange location where the editor searched it fixed it

dunno if this helps you
Image
lucky.BOY
Posts: 1438
Joined: 2010-03-03 13:25

Re: Making 3D iron sights. Need to find the center on screen

Post by lucky.BOY »

The position of the left hand feels a bit unnatural, he should be resting the gun on his palm, not on his fingers as it looks right now.
Post Reply

Return to “PR:BF2 Community Modding”