Adventures in creating starry skies in Opensim.  
     
  June 27, 2020  
     
  A few days ago we decided to try and improve on the look of the stars that show up in the night sky, here in this grid space. Listed below describes what we went through to try and achieve a better night sky.  
     
 

Needless to say, we did not succeed.

It is not currently possible to modify the textures used for the stars, nor is it possible to adjust the color, size, or the number of stars in the night sky, at least from a user's point of view.

Although, it may not be entirely impossible to modify the texture used, as we've listed below, but this would require access to certain file converters that may not exist anymore.

 
     
  ----------  
     
  from: 6-26-2013  
  0006691: Fix for Star apperance in Opensim  
  http://opensimulator.org/mantis/view.php?id=6691  
     
  from: 3-29-2014  
  [Opensim-users] Change the moon?  
  http://opensimulator.org/pipermail/opensim-users/2014-March/013300.html  
     
     
  ----------  
     
  The notes taken while trying to modify the stars are listed below, unedited.  
     
  ----------  
     
     
  found, in the data base, the item with ID

3c59f7fe-9dc8-47f9-8aaf-a9dd1fbc3bef

it has a name:

IMG_BLOOM1 Texture

 

changing its ID to:

3c59f7fe-9dc8-47f9-8aaf-a9dd1fbc3bee

-----------

using HeidiSQL, pasted the item named: "star_tests_1_violet_3"

with the ID: 3c59f7fe-9dc8-47f9-8aaf-a9dd1fbc3bef

--

stopped region
clearing all cache
restarting region

--

after this, the stars still look the same.

maybe "IMG_BLOOM1 Texture" is not the location of the current
star texture being used.

search for "IMG_BLOOM2 Texture" ? and so on.

---

found a second file named:

IMG_BLOOM1 Texture

with the ID:

3c59f7fe-9dc8-47f9-8aaf-a9dd1fbc3bef

---

so, setting this one's ID to:

3c59f7fe-9dc8-47f9-8aaf-a9dd1fbc3bee

also.

Got error:

SQL Error (1062): Duplicate entry
'3c59f7fe-9dc8-47f9-8aaf-a9dd1fbc3bee' for key
'PRIMARY'

..

So instead we'll set this second item's ID to:

3c59f7fe-9dc8-47f9-8aaf-a9dd1fbc3be2

---

stopped region
clearing all cache
restarting region

---

still no difference in the stars.

---

clearing the cache in the firestorm viewer, to see
if that has an effect.

---

clearing the firestorm cache had no effect.

---
---

on the reset database, IMG_BLOOM1 Texture has been reset to
have an ID of:

3c59f7fe-9dc8-47f9-8aaf-a9dd1fbc3bef

----

... need to find where this is coming from.

On server, found: IMG_BLOOM1.jp2 at:

C: ...\DreamGrid\OutworldzFiles\Opensim\bin\assets\TexturesAssetSet

---

placing: star_tests_1_violet_3.jp2

into the above directory:

C: ...\DreamGrid\OutworldzFiles\Opensim\bin\assets\TexturesAssetSet

and changing its name to: IMG_BLOOM1.jp2

while saving the original IMG_BLOOM1.jp2 to IMG_BLOOM1_orig_copy.jp2

and deleted from the current database, the files with names "IMG_BLOOM1".

----------------
then:

clear firestorm viewer cache:

Avatar --> Preferences --> Network & Files --> Directories --> clear inventory cache

----------------
then:

stopped region
clearing all cache
restarting region

-----

still seeing the old "bloom" file for the stars.

-----

maybe there are cache files that still need clearing.

found more cache files at:
C: ...\DreamGrid\OutworldzFiles\Opensim\bin\assetcache

moving the files within "assetcache" to another dir.

--------

created a red square image, for testing. -- star_tests_1_red_square_1.jp2

copied this new test image to:

C: ...\DreamGrid\OutworldzFiles\Opensim\bin\assets\TexturesAssetSet

changed the file from: star_tests_1_red_square_1.jp2 to: IMG_BLOOM1.jp2

--------

restarting region

after restarting, the "assetcache" directory has now refilled again.

--------

finally, we see the stars as squares, but not red squares.

The stars now look like fuzzy whitish squares.

we are getting somewhere.

--------

created an image that is 512x512, with two red squares:
named: star_tests_1_multi_square_512x512_2.jp2

testing.

.. turned off region
.. removed files from "assetcache"
.. added file: star_tests_1_multi_square_512x512_2.jp2 to
C: ...\DreamGrid\OutworldzFiles\Opensim\bin\assets\TexturesAssetSet
.. and renamed file to: IMG_BLOOM1.jp2

restart region

... still only see white fuzzy squares, not two fuzzy squares.

-----

the 512x512 image didn't do much, trying a similar image that is 256x256.

-----

 

After all the experiments, we see we cannot change the properties of
the "BLOOM" image too much, if we want to see a "round" star. Otherwise,
we end up with white squares for stars.

First make a backup copy of IMG_BLOOM1.jp2, in case you wish to
revert back the original look.

Then create the colored BLOOM image we want by starting with
the file: IMG_BLOOM1.jp2 and import it into Gimp for editing.

Change its color or content, but not anything else. Not its image size,
not its channels, etc.

Before logging out the avatar, clear the cache within the viewer. We use firestorm.

Then open the sql editor and delete the entry for "IMG_BLOOM1 Texture",
it will have an ID: 3c59f7fe-9dc8-47f9-8aaf-a9dd1fbc3bef

Then stop the region, and clear all its cache.

Copy the new BLOOM file labeled IMG_BLOOM1.jp2, and place it into
the asset folder:

C: ...\DreamGrid\OutworldzFiles\Opensim\bin\assets\TexturesAssetSet

overwriting the old BLOOM file.

exit
restart
restart region

---------------

created new bloom images using: cuj2k (converter bmp image to jp2):

IMG_BLOOM1_violet_for_testing_1_cuj2k.jp2

setting this as the new bloom image:

IMG_BLOOM1.jp2

----------------

 
     
     
     
  back  
 

home

 
 
 
 

Kromwyrm
A.I. Prediction Systems

leonardos cube icon Dark Maelstrom
flash games
squid ship icon Dark Maelstrom
t-shirt designs
  red eye