mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-20 11:28:38 -05:00
Correctly clear imageprojections in case the base texture is not RGB
This commit is contained in:
@@ -619,7 +619,7 @@ void RenderablePlanetProjection::loadTexture() {
|
||||
if (_colorTexturePath.value() != "") {
|
||||
_textureOriginal = ghoul::io::TextureReader::ref().loadTexture(_colorTexturePath);
|
||||
if (_textureOriginal) {
|
||||
ghoul::opengl::convertTextureFormat(Texture::Format::RGB, *_texture);
|
||||
ghoul::opengl::convertTextureFormat(Texture::Format::RGB, *_textureOriginal);
|
||||
|
||||
_textureOriginal->uploadTexture();
|
||||
_textureOriginal->setFilter(Texture::FilterMode::Linear);
|
||||
|
||||
@@ -35,8 +35,7 @@ def downloadPage(pageNumber):
|
||||
pos = p+beginOffset
|
||||
imageName = source[pos:p+imageEnd]
|
||||
imageLength = len('imageName')
|
||||
# imageName = source[pos:pos+imageLength]
|
||||
pos = pos + imageLength + utcDateOffset
|
||||
pos = p + imageEnd + utcDateOffset
|
||||
|
||||
utcDate = source[pos:pos+utcDateLength]
|
||||
pos = pos + utcDateLength + utcTimeOffset
|
||||
@@ -49,6 +48,12 @@ def downloadPage(pageNumber):
|
||||
urlFirstPart = imageName[len('lor_'): len('lor_') + len('029912')]
|
||||
imageURL = 'http://pluto.jhuapl.edu/soc/Pluto-Encounter/data/pluto/level2/lor/jpeg/' + urlFirstPart + '/' + imageName
|
||||
|
||||
print("ImageName: " + imageName)
|
||||
print("UTCDate: " + utcDate)
|
||||
print("UTCTime: " + utcTime)
|
||||
print("Target: " + target)
|
||||
print("URL: " + imageURL)
|
||||
|
||||
# Download image
|
||||
urlretrieve(imageURL, imageName)
|
||||
|
||||
@@ -58,7 +63,7 @@ def downloadPage(pageNumber):
|
||||
f.write('SEQUENCE_ID = "UNUSED"\n')
|
||||
f.write('TARGET_NAME = "' + target + '"\n')
|
||||
f.write('START_TIME = ' + utcDate + 'T' + utcTime + '.000\n')
|
||||
f.write('START_TIME = ' + utcDate + 'T' + utcTime + '.005\n')
|
||||
f.write('STOP_TIME = ' + utcDate + 'T' + utcTime + '.005\n')
|
||||
f.write('INSTRUMENT_HOST_NAME = "NEW HORIZONS"\n')
|
||||
f.write('INSTRUMENT_ID = "LORRI"\n')
|
||||
f.write('DETECTOR_ID = "LORRI"\n')
|
||||
|
||||
Reference in New Issue
Block a user