Jump to content

Reticule Base Values - How do you determine them for custom reticules?


Doc. Caliban

Recommended Posts

I'm sick of trial and error!

I have custom reticules, all of which have the crosshairs centered in the rsb. How do I determine the correct values for these variables with as little screwing around as possible?

<ReticuleBaseLeft>?</ReticuleBaseLeft>

<ReticuleBaseTop>?</ReticuleBaseTop>

<ReticuleBaseRight>?</ReticuleBaseRight>

<ReticuleBaseBottom>?</ReticuleBaseBottom>

I found some vague explanation of the valued in the forums, but not an exact "How To".

Thanks!

-Doc

EDIT: I don't use pips in the game, so I don't create them in the .rsb files.

Edited by Doc. Caliban
Link to comment
Share on other sites

Ok, here we go... below are some example values from a typical reticle (bizon.gun) in the Heroes Unleashed mod. I used RSB textures with a size of 512x512 pixels for the reticles. I "reserve" a square of 480x480 pixels in the upper left corner for the reticle and a square of 32x32 pixels in the lower right corner for the pips (this is not required but it made sense for my purposes).

<ReticulePipLeft>480</ReticulePipLeft>

<ReticulePipTop>480</ReticulePipTop>

<ReticulePipRight>484</ReticulePipRight>

<ReticulePipBottom>482</ReticulePipBottom>

<ReticuleBaseLeft>0</ReticuleBaseLeft>

<ReticuleBaseTop>0</ReticuleBaseTop>

<ReticuleBaseRight>480</ReticuleBaseRight>

<ReticuleBaseBottom>480</ReticuleBaseBottom>

<ReticulePipBaseOffset>5</ReticulePipBaseOffset>

<ReticulePipMaxOffset>480</ReticulePipMaxOffset>

The "ReticuleBase" values represent the size of the reticle texture by giving the x/y-coordinates of its boundaries from top left (0;0) to bottom right (480;480) within the RSB texture:

<ReticuleBaseLeft>0</ReticuleBaseLeft>

<ReticuleBaseTop>0</ReticuleBaseTop>

<ReticuleBaseRight>480</ReticuleBaseRight>

<ReticuleBaseBottom>480</ReticuleBaseBottom>

The "ReticulePip" values represent the exact size of the pip texture by giving the x/y-coordinates of its boundaries from top left (480;480) to bottom right (484;482) within the RSB texture. In this case each pip is 4 pixels long and 2 pixels thick.

<ReticulePipLeft>480</ReticulePipLeft>

<ReticulePipTop>480</ReticulePipTop>

<ReticulePipRight>484</ReticulePipRight>

<ReticulePipBottom>482</ReticulePipBottom>

The "ReticulePipBaseOffset" value describes the default distance of the pips' end (!) from the exact center of the reticule texture in pixels. In this case 5 pixels total, resulting in 5(total)-4(pip length)=1 pixel visible distance.

<ReticulePipBaseOffset>5</ReticulePipBaseOffset>

The "ReticulePipMaxOffset" value describes the maximum allowed distance of the pips' end from the exact center of the reticule texture in pixels.

<ReticulePipMaxOffset>480</ReticulePipMaxOffset>

If you use a sniper zoom (WeaponMotionType 2 and 3), things become a little more complicated, as you will have to adjust the center to an offset of 0.5 pixels. Have a look at a sniper rifle gun file (e.g. dsr1.gun) in GRHU to get the idea:

<ReticulePipLeft>479.5</ReticulePipLeft>

<ReticulePipTop>480</ReticulePipTop>

<ReticulePipRight>488.5</ReticulePipRight>

<ReticulePipBottom>483</ReticulePipBottom>

<ReticuleBaseLeft>0</ReticuleBaseLeft>

<ReticuleBaseTop>0</ReticuleBaseTop>

<ReticuleBaseRight>479.5</ReticuleBaseRight>

<ReticuleBaseBottom>479.5</ReticuleBaseBottom>

<ReticulePipBaseOffset>4</ReticulePipBaseOffset>

<ReticulePipMaxOffset>480</ReticulePipMaxOffset>

This is done to replicate GR's way to create those thin crosshairs for sniper view in the unmodded game. The engine basically overlaps the crosshairs (in this case pips) by 0.5 pixels both horizontally and vertically in the center of the screen to allow such thin lines for a 0.5 pixel accuracy in the reticle.

In the case above (dsr1.gun from Heroes Unleashed), I used pips 9 pixels long and 3 pixels wide in the texture, but in-game they will align perfectly centered in the reticule's crosshairs (2 pixels wide in the reticle texture).

Hope this helps.

Link to comment
Share on other sites

I have spent a lot of time to find the right values for my mod.

Tested - OK - Change Resolution - Not OK - Grrrrrrrr

Tested - OK - Change Weapon Motion - Not OK - Grrrrrrr

I put my founded values in Info files included in the "free to use" >ACE_COH Reticules (Version2)<

Perhaps this can help too.

ACE_COH

Link to comment
Share on other sites

Ok, here we go...

That was awesome, and exactly what I was looking for! Thanks a TON!

I have spent a lot of time to find the right values for my mod.

Tested - OK - Change Resolution - Not OK - Grrrrrrrr

That reticule pack is what got me starting to mod / crate my own reticules, and I still use several of yours in my mod ... thank you for all of that.

Regarding the resolution change causing an alignment issue, would that be avoidable if the crosshairs were dead center in the RSB as opposed to offset? I may not be understanding the issue you're describing though.

Again, Thanks for all of the info, guys!

-Doc

These are the rets I'm working on:

a 512x512 for the normal sniper rifle that uses my semi-opaque scope mask:

xwsZS.jpg

A 1024x1024 version that is big enough to contain my ballistic rifle reticule. Since the rifle has to use a ballistic weaponmotiontype, it does not end up using the scope mask, but I get bullet-drop and flight-time:

7jLmx.jpg

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...