aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra
diff options
context:
space:
mode:
authorMcCabe Maxsted2010-08-16 16:55:04 -0700
committerMcCabe Maxsted2010-08-16 16:55:04 -0700
commitd76b75c113857ec50aa4896e9b3bd8c6d1cb06eb (patch)
tree8c8884384270fcdf7a2517b544fd93a20639fd00 /linden/indra
parentLoad IMG_DEFAULT_SELECTED locally rather than from the server (fixes the sele... (diff)
downloadmeta-impy-d76b75c113857ec50aa4896e9b3bd8c6d1cb06eb.zip
meta-impy-d76b75c113857ec50aa4896e9b3bd8c6d1cb06eb.tar.gz
meta-impy-d76b75c113857ec50aa4896e9b3bd8c6d1cb06eb.tar.bz2
meta-impy-d76b75c113857ec50aa4896e9b3bd8c6d1cb06eb.tar.xz
Load other missing UUIDs from OpenSim from file instead
Diffstat (limited to 'linden/indra')
-rw-r--r--linden/indra/llcommon/imageids.h20
-rw-r--r--linden/indra/newview/llviewerimagelist.cpp4
-rw-r--r--linden/indra/newview/llvlcomposition.cpp20
-rw-r--r--linden/indra/newview/llvlcomposition.h1
-rw-r--r--linden/indra/newview/llvosky.cpp4
-rw-r--r--linden/indra/newview/pipeline.cpp2
6 files changed, 32 insertions, 19 deletions
diff --git a/linden/indra/llcommon/imageids.h b/linden/indra/llcommon/imageids.h
index 832708c..beba0e2 100644
--- a/linden/indra/llcommon/imageids.h
+++ b/linden/indra/llcommon/imageids.h
@@ -51,21 +51,21 @@ const LLUUID IMG_DEFAULT ("d2114404-dd59-4a4d-8e6c-49359e91bbf0"); // VIEWER
51const LLUUID IMG_SUN ("cce0f112-878f-4586-a2e2-a8f104bba271"); // dataserver 51const LLUUID IMG_SUN ("cce0f112-878f-4586-a2e2-a8f104bba271"); // dataserver
52const LLUUID IMG_MOON ("d07f6eed-b96a-47cd-b51d-400ad4a1c428"); // dataserver 52const LLUUID IMG_MOON ("d07f6eed-b96a-47cd-b51d-400ad4a1c428"); // dataserver
53const LLUUID IMG_CLOUD_POOF ("fc4b9f0b-d008-45c6-96a4-01dd947ac621"); // dataserver 53const LLUUID IMG_CLOUD_POOF ("fc4b9f0b-d008-45c6-96a4-01dd947ac621"); // dataserver
54const LLUUID IMG_SHOT ("35f217a3-f618-49cf-bbca-c86d486551a9"); // dataserver 54const LLUUID IMG_SHOT ("35f217a3-f618-49cf-bbca-c86d486551a9"); // dataserver - legacy?
55const LLUUID IMG_SPARK ("d2e75ac1-d0fb-4532-820e-a20034ac814d"); // dataserver 55const LLUUID IMG_SPARK ("d2e75ac1-d0fb-4532-820e-a20034ac814d"); // dataserver - unused
56const LLUUID IMG_FIRE ("aca40aa8-44cf-44ca-a0fa-93e1a2986f82"); // dataserver 56const LLUUID IMG_FIRE ("aca40aa8-44cf-44ca-a0fa-93e1a2986f82"); // dataserver - unused
57const LLUUID IMG_FACE_SELECT ("a85ac674-cb75-4af6-9499-df7c5aaf7a28"); // face selector 57const LLUUID IMG_FACE_SELECT ("a85ac674-cb75-4af6-9499-df7c5aaf7a28"); // face selector
58const LLUUID IMG_DEFAULT_AVATAR ("c228d1cf-4b5d-4ba8-84f4-899a0796aa97"); // dataserver 58const LLUUID IMG_DEFAULT_AVATAR ("c228d1cf-4b5d-4ba8-84f4-899a0796aa97"); // dataserver
59const LLUUID IMG_INVISIBLE ("3a367d1c-bef1-6d43-7595-e88c1e3aadb3"); // dataserver 59const LLUUID IMG_INVISIBLE ("3a367d1c-bef1-6d43-7595-e88c1e3aadb3"); // dataserver
60 60
61const LLUUID IMG_EXPLOSION ("68edcf47-ccd7-45b8-9f90-1649d7f12806"); // On dataserver 61const LLUUID IMG_EXPLOSION ("68edcf47-ccd7-45b8-9f90-1649d7f12806"); // On dataserver - unused
62const LLUUID IMG_EXPLOSION_2 ("21ce046c-83fe-430a-b629-c7660ac78d7c"); // On dataserver 62const LLUUID IMG_EXPLOSION_2 ("21ce046c-83fe-430a-b629-c7660ac78d7c"); // On dataserver - unused
63const LLUUID IMG_EXPLOSION_3 ("fedea30a-1be8-47a6-bc06-337a04a39c4b"); // On dataserver 63const LLUUID IMG_EXPLOSION_3 ("fedea30a-1be8-47a6-bc06-337a04a39c4b"); // On dataserver - unused
64const LLUUID IMG_EXPLOSION_4 ("abf0d56b-82e5-47a2-a8ad-74741bb2c29e"); // On dataserver 64const LLUUID IMG_EXPLOSION_4 ("abf0d56b-82e5-47a2-a8ad-74741bb2c29e"); // On dataserver - unused
65const LLUUID IMG_SMOKE_POOF ("1e63e323-5fe0-452e-92f8-b98bd0f764e3"); // On dataserver 65const LLUUID IMG_SMOKE_POOF ("1e63e323-5fe0-452e-92f8-b98bd0f764e3"); // On dataserver - legacy?
66 66
67const LLUUID IMG_BIG_EXPLOSION_1 ("5e47a0dc-97bf-44e0-8b40-de06718cee9d"); // On dataserver 67const LLUUID IMG_BIG_EXPLOSION_1 ("5e47a0dc-97bf-44e0-8b40-de06718cee9d"); // On dataserver - unused
68const LLUUID IMG_BIG_EXPLOSION_2 ("9c8eca51-53d5-42a7-bb58-cef070395db8"); // On dataserver 68const LLUUID IMG_BIG_EXPLOSION_2 ("9c8eca51-53d5-42a7-bb58-cef070395db8"); // On dataserver - unused
69 69
70const LLUUID IMG_BLOOM1 ("3c59f7fe-9dc8-47f9-8aaf-a9dd1fbc3bef"); // VIEWER 70const LLUUID IMG_BLOOM1 ("3c59f7fe-9dc8-47f9-8aaf-a9dd1fbc3bef"); // VIEWER
71const LLUUID TERRAIN_DIRT_DETAIL ("0bc58228-74a0-7e83-89bc-5c23464bcec5"); // VIEWER 71const LLUUID TERRAIN_DIRT_DETAIL ("0bc58228-74a0-7e83-89bc-5c23464bcec5"); // VIEWER
diff --git a/linden/indra/newview/llviewerimagelist.cpp b/linden/indra/newview/llviewerimagelist.cpp
index 2280937..518f6d4 100644
--- a/linden/indra/newview/llviewerimagelist.cpp
+++ b/linden/indra/newview/llviewerimagelist.cpp
@@ -136,8 +136,8 @@ void LLViewerImageList::doPreloadImages()
136 //uv_test->setMipFilterNearest(TRUE, TRUE); 136 //uv_test->setMipFilterNearest(TRUE, TRUE);
137 137
138 // prefetch specific UUIDs 138 // prefetch specific UUIDs
139 getImage(IMG_SHOT, TRUE); 139 gImageList.getImageFromFile(IMG_SHOT.asString()+".j2c", TRUE, TRUE); /*getImage(IMG_SHOT, TRUE);*/
140 getImage(IMG_SMOKE_POOF, TRUE); 140 gImageList.getImageFromFile(IMG_SMOKE_POOF.asString()+".j2c", TRUE, TRUE); /*getImage(IMG_SMOKE_POOF, TRUE);*/
141 LLViewerImage* image = getImageFromFile("silhouette.j2c", MIPMAP_YES, IMMEDIATE_YES); 141 LLViewerImage* image = getImageFromFile("silhouette.j2c", MIPMAP_YES, IMMEDIATE_YES);
142 if (image) 142 if (image)
143 { 143 {
diff --git a/linden/indra/newview/llvlcomposition.cpp b/linden/indra/newview/llvlcomposition.cpp
index e12504c..535c504 100644
--- a/linden/indra/newview/llvlcomposition.cpp
+++ b/linden/indra/newview/llvlcomposition.cpp
@@ -72,10 +72,11 @@ LLVLComposition::LLVLComposition(LLSurface *surfacep, const U32 width, const F32
72 mSurfacep = surfacep; 72 mSurfacep = surfacep;
73 73
74 // Load Terrain Textures - Original ones 74 // Load Terrain Textures - Original ones
75 setDetailTextureID(0, TERRAIN_DIRT_DETAIL); 75 // Load from file as OpenSim-based grids don't include these yet -- MC
76 setDetailTextureID(1, TERRAIN_GRASS_DETAIL); 76 setDetailTextureID(0, TERRAIN_DIRT_DETAIL.asString()+".j2c", TRUE, TRUE);
77 setDetailTextureID(2, TERRAIN_MOUNTAIN_DETAIL); 77 setDetailTextureID(1, TERRAIN_GRASS_DETAIL.asString()+".j2c", TRUE, TRUE);
78 setDetailTextureID(3, TERRAIN_ROCK_DETAIL); 78 setDetailTextureID(2, TERRAIN_MOUNTAIN_DETAIL.asString()+".j2c", TRUE, TRUE);
79 setDetailTextureID(3, TERRAIN_ROCK_DETAIL.asString()+".j2c", TRUE, TRUE);
79 80
80 // Initialize the texture matrix to defaults. 81 // Initialize the texture matrix to defaults.
81 for (S32 i = 0; i < CORNER_COUNT; ++i) 82 for (S32 i = 0; i < CORNER_COUNT; ++i)
@@ -111,6 +112,17 @@ void LLVLComposition::setDetailTextureID(S32 corner, const LLUUID& id)
111 mRawImages[corner] = NULL; 112 mRawImages[corner] = NULL;
112} 113}
113 114
115void LLVLComposition::setDetailTextureID(S32 corner, const std::string& filename, const bool& usemipmap, const bool& levelimmediate)
116{
117 if(filename.empty())
118 {
119 return;
120 }
121 mDetailTextures[corner] = gImageList.getImageFromFile(filename, usemipmap, levelimmediate);
122 mDetailTextures[corner]->setNoDelete() ;
123 mRawImages[corner] = NULL;
124}
125
114BOOL LLVLComposition::generateHeights(const F32 x, const F32 y, 126BOOL LLVLComposition::generateHeights(const F32 x, const F32 y,
115 const F32 width, const F32 height) 127 const F32 width, const F32 height)
116{ 128{
diff --git a/linden/indra/newview/llvlcomposition.h b/linden/indra/newview/llvlcomposition.h
index 6d5db3c..4ae296c 100644
--- a/linden/indra/newview/llvlcomposition.h
+++ b/linden/indra/newview/llvlcomposition.h
@@ -67,6 +67,7 @@ public:
67 F32 getHeightRange(S32 corner); 67 F32 getHeightRange(S32 corner);
68 68
69 void setDetailTextureID(S32 corner, const LLUUID& id); 69 void setDetailTextureID(S32 corner, const LLUUID& id);
70 void setDetailTextureID(S32 corner, const std::string& filename, const bool& usemipmap, const bool& levelimmediate);
70 void setStartHeight(S32 corner, F32 start_height); 71 void setStartHeight(S32 corner, F32 start_height);
71 void setHeightRange(S32 corner, F32 range); 72 void setHeightRange(S32 corner, F32 range);
72 73
diff --git a/linden/indra/newview/llvosky.cpp b/linden/indra/newview/llvosky.cpp
index 1b9c7c0..d15a2dc 100644
--- a/linden/indra/newview/llvosky.cpp
+++ b/linden/indra/newview/llvosky.cpp
@@ -380,7 +380,7 @@ LLVOSky::LLVOSky(const LLUUID &id, const LLPCode pcode, LLViewerRegion *regionp)
380 mSunTexturep->setAddressMode(LLTexUnit::TAM_CLAMP); 380 mSunTexturep->setAddressMode(LLTexUnit::TAM_CLAMP);
381 mMoonTexturep = gImageList.getImage(gMoonTextureID, TRUE, TRUE); 381 mMoonTexturep = gImageList.getImage(gMoonTextureID, TRUE, TRUE);
382 mMoonTexturep->setAddressMode(LLTexUnit::TAM_CLAMP); 382 mMoonTexturep->setAddressMode(LLTexUnit::TAM_CLAMP);
383 mBloomTexturep = gImageList.getImage(IMG_BLOOM1); 383 mBloomTexturep = gImageList.getImageFromFile(IMG_BLOOM1.asString()+".j2c", TRUE, TRUE);/*gImageList.getImage(IMG_BLOOM1);*/
384 mBloomTexturep->setNoDelete() ; 384 mBloomTexturep->setNoDelete() ;
385 mBloomTexturep->setAddressMode(LLTexUnit::TAM_CLAMP); 385 mBloomTexturep->setAddressMode(LLTexUnit::TAM_CLAMP);
386 386
@@ -476,7 +476,7 @@ void LLVOSky::restoreGL()
476 mSunTexturep->setAddressMode(LLTexUnit::TAM_CLAMP); 476 mSunTexturep->setAddressMode(LLTexUnit::TAM_CLAMP);
477 mMoonTexturep = gImageList.getImage(gMoonTextureID, TRUE, TRUE); 477 mMoonTexturep = gImageList.getImage(gMoonTextureID, TRUE, TRUE);
478 mMoonTexturep->setAddressMode(LLTexUnit::TAM_CLAMP); 478 mMoonTexturep->setAddressMode(LLTexUnit::TAM_CLAMP);
479 mBloomTexturep = gImageList.getImage(IMG_BLOOM1); 479 mBloomTexturep = gImageList.getImageFromFile(IMG_BLOOM1.asString()+".j2c", TRUE, TRUE);/*gImageList.getImage(IMG_BLOOM1);*/
480 mBloomTexturep->setNoDelete() ; 480 mBloomTexturep->setNoDelete() ;
481 mBloomTexturep->setAddressMode(LLTexUnit::TAM_CLAMP); 481 mBloomTexturep->setAddressMode(LLTexUnit::TAM_CLAMP);
482 482
diff --git a/linden/indra/newview/pipeline.cpp b/linden/indra/newview/pipeline.cpp
index 05459ad..6b00ca6 100644
--- a/linden/indra/newview/pipeline.cpp
+++ b/linden/indra/newview/pipeline.cpp
@@ -2448,7 +2448,7 @@ void LLPipeline::renderHighlights()
2448 if (!mFaceSelectImagep) 2448 if (!mFaceSelectImagep)
2449 { 2449 {
2450 // Load the select texture texture from file -- MC 2450 // Load the select texture texture from file -- MC
2451 mFaceSelectImagep = gImageList.getImageFromFile("a85ac674-cb75-4af6-9499-df7c5aaf7a28.j2c", TRUE, TRUE); /*gImageList.getImage(IMG_FACE_SELECT);*/ 2451 mFaceSelectImagep = gImageList.getImageFromFile(IMG_FACE_SELECT.asString()+".j2c", TRUE, TRUE); /*gImageList.getImage(IMG_FACE_SELECT);*/
2452 } 2452 }
2453 mFaceSelectImagep->addTextureStats((F32)MAX_IMAGE_AREA); 2453 mFaceSelectImagep->addTextureStats((F32)MAX_IMAGE_AREA);
2454 2454