diff options
-rw-r--r-- | linden/indra/llcommon/imageids.h | 20 | ||||
-rw-r--r-- | linden/indra/newview/llviewerimagelist.cpp | 4 | ||||
-rw-r--r-- | linden/indra/newview/llvlcomposition.cpp | 20 | ||||
-rw-r--r-- | linden/indra/newview/llvlcomposition.h | 1 | ||||
-rw-r--r-- | linden/indra/newview/llvosky.cpp | 4 | ||||
-rw-r--r-- | linden/indra/newview/pipeline.cpp | 2 |
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 | |||
51 | const LLUUID IMG_SUN ("cce0f112-878f-4586-a2e2-a8f104bba271"); // dataserver | 51 | const LLUUID IMG_SUN ("cce0f112-878f-4586-a2e2-a8f104bba271"); // dataserver |
52 | const LLUUID IMG_MOON ("d07f6eed-b96a-47cd-b51d-400ad4a1c428"); // dataserver | 52 | const LLUUID IMG_MOON ("d07f6eed-b96a-47cd-b51d-400ad4a1c428"); // dataserver |
53 | const LLUUID IMG_CLOUD_POOF ("fc4b9f0b-d008-45c6-96a4-01dd947ac621"); // dataserver | 53 | const LLUUID IMG_CLOUD_POOF ("fc4b9f0b-d008-45c6-96a4-01dd947ac621"); // dataserver |
54 | const LLUUID IMG_SHOT ("35f217a3-f618-49cf-bbca-c86d486551a9"); // dataserver | 54 | const LLUUID IMG_SHOT ("35f217a3-f618-49cf-bbca-c86d486551a9"); // dataserver - legacy? |
55 | const LLUUID IMG_SPARK ("d2e75ac1-d0fb-4532-820e-a20034ac814d"); // dataserver | 55 | const LLUUID IMG_SPARK ("d2e75ac1-d0fb-4532-820e-a20034ac814d"); // dataserver - unused |
56 | const LLUUID IMG_FIRE ("aca40aa8-44cf-44ca-a0fa-93e1a2986f82"); // dataserver | 56 | const LLUUID IMG_FIRE ("aca40aa8-44cf-44ca-a0fa-93e1a2986f82"); // dataserver - unused |
57 | const LLUUID IMG_FACE_SELECT ("a85ac674-cb75-4af6-9499-df7c5aaf7a28"); // face selector | 57 | const LLUUID IMG_FACE_SELECT ("a85ac674-cb75-4af6-9499-df7c5aaf7a28"); // face selector |
58 | const LLUUID IMG_DEFAULT_AVATAR ("c228d1cf-4b5d-4ba8-84f4-899a0796aa97"); // dataserver | 58 | const LLUUID IMG_DEFAULT_AVATAR ("c228d1cf-4b5d-4ba8-84f4-899a0796aa97"); // dataserver |
59 | const LLUUID IMG_INVISIBLE ("3a367d1c-bef1-6d43-7595-e88c1e3aadb3"); // dataserver | 59 | const LLUUID IMG_INVISIBLE ("3a367d1c-bef1-6d43-7595-e88c1e3aadb3"); // dataserver |
60 | 60 | ||
61 | const LLUUID IMG_EXPLOSION ("68edcf47-ccd7-45b8-9f90-1649d7f12806"); // On dataserver | 61 | const LLUUID IMG_EXPLOSION ("68edcf47-ccd7-45b8-9f90-1649d7f12806"); // On dataserver - unused |
62 | const LLUUID IMG_EXPLOSION_2 ("21ce046c-83fe-430a-b629-c7660ac78d7c"); // On dataserver | 62 | const LLUUID IMG_EXPLOSION_2 ("21ce046c-83fe-430a-b629-c7660ac78d7c"); // On dataserver - unused |
63 | const LLUUID IMG_EXPLOSION_3 ("fedea30a-1be8-47a6-bc06-337a04a39c4b"); // On dataserver | 63 | const LLUUID IMG_EXPLOSION_3 ("fedea30a-1be8-47a6-bc06-337a04a39c4b"); // On dataserver - unused |
64 | const LLUUID IMG_EXPLOSION_4 ("abf0d56b-82e5-47a2-a8ad-74741bb2c29e"); // On dataserver | 64 | const LLUUID IMG_EXPLOSION_4 ("abf0d56b-82e5-47a2-a8ad-74741bb2c29e"); // On dataserver - unused |
65 | const LLUUID IMG_SMOKE_POOF ("1e63e323-5fe0-452e-92f8-b98bd0f764e3"); // On dataserver | 65 | const LLUUID IMG_SMOKE_POOF ("1e63e323-5fe0-452e-92f8-b98bd0f764e3"); // On dataserver - legacy? |
66 | 66 | ||
67 | const LLUUID IMG_BIG_EXPLOSION_1 ("5e47a0dc-97bf-44e0-8b40-de06718cee9d"); // On dataserver | 67 | const LLUUID IMG_BIG_EXPLOSION_1 ("5e47a0dc-97bf-44e0-8b40-de06718cee9d"); // On dataserver - unused |
68 | const LLUUID IMG_BIG_EXPLOSION_2 ("9c8eca51-53d5-42a7-bb58-cef070395db8"); // On dataserver | 68 | const LLUUID IMG_BIG_EXPLOSION_2 ("9c8eca51-53d5-42a7-bb58-cef070395db8"); // On dataserver - unused |
69 | 69 | ||
70 | const LLUUID IMG_BLOOM1 ("3c59f7fe-9dc8-47f9-8aaf-a9dd1fbc3bef"); // VIEWER | 70 | const LLUUID IMG_BLOOM1 ("3c59f7fe-9dc8-47f9-8aaf-a9dd1fbc3bef"); // VIEWER |
71 | const LLUUID TERRAIN_DIRT_DETAIL ("0bc58228-74a0-7e83-89bc-5c23464bcec5"); // VIEWER | 71 | const 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 | ||
115 | void 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 | |||
114 | BOOL LLVLComposition::generateHeights(const F32 x, const F32 y, | 126 | BOOL 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 | ||