add-background-bitmap
add-background-bitmap
Adds a background bitmap to the sky. Returns an integer that is stored in a variable so it can be deleted
using remove-background-bitmap
Takes 9 arguments...
1: Background bitmap name
2: Pitch
3: Bank
4: Heading
5: X scale (expressed as a percentage of the original size of the bitmap)
6: Y scale (expressed as a percentage of the original size of the bitmap)
7: X divisions.
8: Y divisions.
9: Variable in which to store result
Notice that items #5 and #6 are percentages, whereas in the background editor, you work with concrete numbers. If the dimension of your bitmap is 1.5, it should be represented as 150 with this SEXP.
Add-background-bitmap SEXP for some reason only allows to set the scale in the range of 1% - 1800% (0.01 - 18), by 1% increments. However in background editor you can set it in the range of 0.001 - 18, and by 0.001 increments.
In my mission I need to continually shrink a planet from big size down to invisible size. With this SEXP it looks bad because when the planet is large the changes appear discontinuous (1% increment is too large). And I cannot shrink it under 1% which is still very much visible. Wat do?
Related question, is there a way to use floating point variables in FRED?