@@ -319,7 +319,7 @@ def sphere_mesh(radius=1.0, quality=256, cache=True):
319
319
lv = get_viewer ()
320
320
tris0 = lv .spheres ("sphere" , scaling = radius , segments = quality , colour = "grey" , vertices = [0 ,0 ,0 ], fliptexture = False )
321
321
tris0 ['rotate' ] = [0 ,- 90 ,0 ] #This rotates the sphere coords to align with [0,360] longitude texture
322
- tris0 ['texture' ] = 'blank.png' #Need an initial texture or texcoords will not be generated
322
+ tris0 ['texture' ] = 'data/ blank.png' #Need an initial texture or texcoords will not be generated
323
323
tris0 ['renderer' ] = 'sortedtriangles'
324
324
lv .render ()
325
325
@@ -567,12 +567,12 @@ def plot_region(lv=None, cropbox=None, vertical_exaggeration=10, texture='bluema
567
567
'''
568
568
#TODO: wave shader etc for regional sections
569
569
if waves:
570
- uniforms["wavetex"] = f"{settings.INSTALL_PATH}/sea-water-1024x1024_gs.png"
571
- uniforms["wavenormal"] = f"{settings.INSTALL_PATH}/sea-water_normals.png"
570
+ uniforms["wavetex"] = f"{settings.INSTALL_PATH}/data/ sea-water-1024x1024_gs.png"
571
+ uniforms["wavenormal"] = f"{settings.INSTALL_PATH}/data/ sea-water_normals.png"
572
572
uniforms["waves"] = True;
573
573
574
574
if shaders is None:
575
- shaders = [f'{settings.INSTALL_PATH}/earth_shader.vert', f'{settings.INSTALL_PATH}/earth_shader.frag']
575
+ shaders = [f'{settings.INSTALL_PATH}/data/ earth_shader.vert', f'{settings.INSTALL_PATH}/data /earth_shader.frag']
576
576
'''
577
577
578
578
#Split kwargs into global props, object props and uniform values
@@ -700,8 +700,8 @@ def plot_earth(lv=None, radius=6.371, vertical_exaggeration=10, texture='bluemar
700
700
texture = '{basedir}/relief/cubemap_{texres}/{face}_relief_{texres}.png'
701
701
702
702
#Waves - load textures as shared
703
- lv .texture ("wavetex" , f"{ settings .INSTALL_PATH } /sea-water-1024x1024_gs.png" )
704
- lv .texture ("wavenormal" , f"{ settings .INSTALL_PATH } /sea-water_normals.png" )
703
+ lv .texture ("wavetex" , f"{ settings .INSTALL_PATH } /data/ sea-water-1024x1024_gs.png" )
704
+ lv .texture ("wavenormal" , f"{ settings .INSTALL_PATH } /data/ sea-water_normals.png" )
705
705
#Need to set the property too or will not know to load the texture
706
706
if waves is None : waves = False
707
707
uniforms ["wavetex" ] = ""
@@ -716,7 +716,7 @@ def plot_earth(lv=None, radius=6.371, vertical_exaggeration=10, texture='bluemar
716
716
uniforms ["heightmax" ] = hrange [1 ];
717
717
718
718
if shaders is None :
719
- shaders = [f'{ settings .INSTALL_PATH } /earth_shader.vert' , f'{ settings .INSTALL_PATH } /earth_shader.frag' ]
719
+ shaders = [f'{ settings .INSTALL_PATH } /data/ earth_shader.vert' , f'{ settings .INSTALL_PATH } /data /earth_shader.frag' ]
720
720
721
721
#Split kwargs into global props, object props and uniform values
722
722
objargs = {}
0 commit comments