Rendering of image as panorama

Asked by John Cotton

Is it possible to produce a panorama with Nightshade? I tried the following little script

# Pan test script
flag script_gui_debug on
clear
image action load filename spirit2.png name pan coordinate_system dome azimuth 0 altitude 0 scale 360
image name pan alpha 1 rotation 0

wait duration 20

image name pan action drop

script action end

using a 4096x512 Mars pan image. The result is strange - the image starts at full height in N
then tapers to 0 height in E and W. It builds back to full height in S, but that part of the image is
upside-down.

Is it possible to produce a pan with STS??

John Cotton

Question information

Language:
English Edit question
Status:
Answered
For:
Nightshade Legacy Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
ASTROdidactico (raul-astrodidactico) said :
#1

John,

My recomendations:
- Use the command "landscape", it is created specifically for panos
- With "landscape" you don't need to use "wait duration", the pano will be there including after finish the script.
- Use a pano image 4096 x 2048 or 2048 x 1024, or 1024 x 512, so with relation 2:1 (you can fill transparent)

NightShade support 3 types of textures for landscape: "old_style", "fisheye" and "spherical". Your pano looks like a "spherical"

If so the pano will be charged:

landscape texture spirit2.png action load type spherical

If you need to orient the pano, include rotate_z X, with X the degrees you want to rotate the pano. By default, the left-border of the pano is facing to the East.

Raul

Can you help with this problem?

Provide an answer of your own, or ask John Cotton for more information if necessary.

To post a message you must log in.