Jump to content
Sign in to follow this  
DieAngel

Ironsight camera position

Recommended Posts

I am trying to move where the camera origin is when in ironsight/scope mode. Is it possible? ideally i would like to move the camera at the end of the barrel (my weapon has a built in camera right under it).

Is it something to do in the config or in the model?

Share this post


Link to post
Share on other sites

whistle.gif

didn't occur to me to explain any further for some odd reason, appologies there.

As jackal said, its a mem point called eye, place it where you want to look from, either as an 3d ironsight, or in your case a camera view like a scoped rifle would have.

Share this post


Link to post
Share on other sites

exellent!!! but i have another question, is there some way to prevent the gun to poke thru walls? it seems the eye camera is going into the walls sometimes, or is it just the player character that is physical?

I tried to add a geometry lod to the gun but it doesn't seems to work.

Share this post


Link to post
Share on other sites

depends - try taking a stock BIS weapon and see if you can put that through the wall - if it does, then there isnt a solution as obviously the engine isnt able to prevent weapon clipping.

if it doesnt clip, then the geometry lod is your friend. Im not sure of arma limits, but certainly for ofp it needed to be constructed of simple geometric objects (i.e low poly, as few faces as possible) - split into lots of seperate objects to allow this. Then you need to make sure you've used find 'components' in the topology.

Share this post


Link to post
Share on other sites

hmm not much success in my collisions tests... i also noticed the camera stay perfectly horizontal, no matter what the weapon angle is (it's hard to picture, but since my gun has a tilted barrel, when you aim through the camera and you look down, the view should be tilted on the side)

Share this post


Link to post
Share on other sites

Interesting. But what program do you need to edit the p3d file?

Share this post


Link to post
Share on other sites

You can use Oxygen (download it from HERE). Though, you wont be able to edit the ArmA stock models, as they're Binarized, which basically optimises and as a side-effect encrypts the model preventing them from being opened/edited in Oxygen.

Share this post


Link to post
Share on other sites

Thanks for the quick reply. So you open a user made weapon p3d file or old ofp one, but how do you make an adjustment to the memory point?

Share this post


Link to post
Share on other sites

Open the 'Memory' LOD (double click it in the list), and you should see 4 (or more, depending on the weapon type, it'll be 6 for a weapon with an underslung grenade-launcher) points. Now press INSERT to create a new point. Move this point to line up with the ironsights (this will be the exact center of the view, and ideally should line up with the two points designated for the source, and direction of the rounds fired from the weapon ('konec hlavne' and 'usti hlavne' respectively). Now name this newly created point 'eye' (without the '' obviously - To name the new point, right click in the named points field (you maye need to display this window by pressing ALT+P or going to the Window Tab and making sure 'Named Properties' is displayed. That should work.

Share this post


Link to post
Share on other sites

Much appreciated! I'll give it a try and I’ll stop posting here, because I don’t want to hijack his thread.

Share this post


Link to post
Share on other sites

hm it's me or the zoom/aim camera seems to take only in account pitch/yaw

Or is there any way to constrain the camera roll axis to follow the weapon angle?

Share this post


Link to post
Share on other sites

Thanks Jackal326, worked perfectly thumbs-up.gif.

hm it's me or the zoom/aim camera seems to take only in account pitch/yaw

Or is there any way to constrain the camera roll axis to follow the weapon angle?

If you are talking about tilting you head slightly sideways in optics view, I also am very interested in this possiblity! if it is actually possible though.

Share this post


Link to post
Share on other sites

well actually what i was meaning is that the zoom camera do not fully follow the character's movements, in my demo video when i point the cornershot up to peek through the bunker window, it should be tilted since the weapon is almost vertical, yet it isn't.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×