Skip to content

Expose 5 digits of precision for texture scale/offset values in edit window instead of rounding to 3 digits #1861

Open
@canny

Description

@canny

The viewer only displays 3 digits after the decimal point for texture scale and offset values in the edit window. However, the server safely supports float precision down to at least 0.00001 (0.12345) for these values in my experience. (I use this a lot for sprite maps based on inverse powers of 2 - 0.5, 0.25, 0.125, 0.0625, 0.03125. I'm not sure if gets any more precise server-side, since llGetTextureOffset returns a vector that always rounds to 5 digits.)

The viewer is unnecessarily rounding off 2 digits on these values. Firestorm does not, so that data is definitely sent by the server and can fit in the existing UI. This limits safe texture scale/offset editing in the viewer to 0.001 granularity. The viewer will still set the values as-typed, but rounds them off immediately in the textbox when saved, so if you accidentally hit Enter on the field again, it will overwrite it with the rounded value. I haven't found a setting that can disable this behavior.

It would help to expose an additional 2 digits (0.12345) in these fields so that they correctly display the full precision available for texture scales and offsets.

https://secondlife.canny.io/admin/board/feature-requests/p/expose-5-digits-of-precision-for-texture-scale-offset-values-in-edit-window-inst

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions