Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
c559e3d6
Commit
c559e3d6
authored
12 years ago
by
simon@Simon-PC.lindenlab.com
Browse files
Options
Downloads
Patches
Plain Diff
MAINT-1161: non standard sea level not correctly rendered around private islands.
Reviewed by Kelly
parent
184d5ee7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
indra/newview/llsurface.cpp
+1
-1
1 addition, 1 deletion
indra/newview/llsurface.cpp
indra/newview/llworld.cpp
+6
-3
6 additions, 3 deletions
indra/newview/llworld.cpp
with
7 additions
and
4 deletions
indra/newview/llsurface.cpp
+
1
−
1
View file @
c559e3d6
...
@@ -294,7 +294,7 @@ void LLSurface::initTextures()
...
@@ -294,7 +294,7 @@ void LLSurface::initTextures()
mWaterObjp
=
(
LLVOWater
*
)
gObjectList
.
createObjectViewer
(
LLViewerObject
::
LL_VO_WATER
,
mRegionp
);
mWaterObjp
=
(
LLVOWater
*
)
gObjectList
.
createObjectViewer
(
LLViewerObject
::
LL_VO_WATER
,
mRegionp
);
gPipeline
.
createObject
(
mWaterObjp
);
gPipeline
.
createObject
(
mWaterObjp
);
LLVector3d
water_pos_global
=
from_region_handle
(
mRegionp
->
getHandle
());
LLVector3d
water_pos_global
=
from_region_handle
(
mRegionp
->
getHandle
());
water_pos_global
+=
LLVector3d
(
128.0
,
128.0
,
DEFAULT_WATER_HEIGHT
);
water_pos_global
+=
LLVector3d
(
128.0
,
128.0
,
DEFAULT_WATER_HEIGHT
);
// region doesn't have a valid water height yet
mWaterObjp
->
setPositionGlobal
(
water_pos_global
);
mWaterObjp
->
setPositionGlobal
(
water_pos_global
);
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
indra/newview/llworld.cpp
+
6
−
3
View file @
c559e3d6
...
@@ -837,6 +837,9 @@ void LLWorld::updateWaterObjects()
...
@@ -837,6 +837,9 @@ void LLWorld::updateWaterObjects()
}
}
mHoleWaterObjects
.
clear
();
mHoleWaterObjects
.
clear
();
// Use the water height of the region we're on for areas where there is no region
F32
water_height
=
gAgent
.
getRegion
()
->
getWaterHeight
();
// Now, get a list of the holes
// Now, get a list of the holes
S32
x
,
y
;
S32
x
,
y
;
for
(
x
=
min_x
;
x
<=
max_x
;
x
+=
rwidth
)
for
(
x
=
min_x
;
x
<=
max_x
;
x
+=
rwidth
)
...
@@ -845,12 +848,12 @@ void LLWorld::updateWaterObjects()
...
@@ -845,12 +848,12 @@ void LLWorld::updateWaterObjects()
{
{
U64
region_handle
=
to_region_handle
(
x
,
y
);
U64
region_handle
=
to_region_handle
(
x
,
y
);
if
(
!
getRegionFromHandle
(
region_handle
))
if
(
!
getRegionFromHandle
(
region_handle
))
{
{
// No region at that area, so make water
LLVOWater
*
waterp
=
(
LLVOWater
*
)
gObjectList
.
createObjectViewer
(
LLViewerObject
::
LL_VO_WATER
,
gAgent
.
getRegion
());
LLVOWater
*
waterp
=
(
LLVOWater
*
)
gObjectList
.
createObjectViewer
(
LLViewerObject
::
LL_VO_WATER
,
gAgent
.
getRegion
());
waterp
->
setUseTexture
(
FALSE
);
waterp
->
setUseTexture
(
FALSE
);
waterp
->
setPositionGlobal
(
LLVector3d
(
x
+
rwidth
/
2
,
waterp
->
setPositionGlobal
(
LLVector3d
(
x
+
rwidth
/
2
,
y
+
rwidth
/
2
,
y
+
rwidth
/
2
,
256.
f
+
DEFAULT_WATER_HEIGHT
));
256.
f
+
water_height
));
waterp
->
setScale
(
LLVector3
((
F32
)
rwidth
,
(
F32
)
rwidth
,
512.
f
));
waterp
->
setScale
(
LLVector3
((
F32
)
rwidth
,
(
F32
)
rwidth
,
512.
f
));
gPipeline
.
createObject
(
waterp
);
gPipeline
.
createObject
(
waterp
);
mHoleWaterObjects
.
push_back
(
waterp
);
mHoleWaterObjects
.
push_back
(
waterp
);
...
@@ -907,7 +910,7 @@ void LLWorld::updateWaterObjects()
...
@@ -907,7 +910,7 @@ void LLWorld::updateWaterObjects()
}
}
waterp
->
setRegion
(
gAgent
.
getRegion
());
waterp
->
setRegion
(
gAgent
.
getRegion
());
LLVector3d
water_pos
(
water_center_x
,
water_center_y
,
256.
f
+
DEFAULT_WATER_HEIGHT
)
;
LLVector3d
water_pos
(
water_center_x
,
water_center_y
,
256.
f
+
water_height
)
;
LLVector3
water_scale
((
F32
)
dim
[
0
],
(
F32
)
dim
[
1
],
512.
f
);
LLVector3
water_scale
((
F32
)
dim
[
0
],
(
F32
)
dim
[
1
],
512.
f
);
//stretch out to horizon
//stretch out to horizon
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment