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
e2fd0266
Commit
e2fd0266
authored
13 years ago
by
prep
Browse files
Options
Downloads
Patches
Plain Diff
path-149 overlay of navmesh on onto renderables
parent
96e8d487
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
indra/llrender/llrendernavprim.cpp
+13
-4
13 additions, 4 deletions
indra/llrender/llrendernavprim.cpp
indra/llrender/llrendernavprim.h
+2
-2
2 additions, 2 deletions
indra/llrender/llrendernavprim.h
indra/newview/llviewerdisplay.cpp
+1
-1
1 addition, 1 deletion
indra/newview/llviewerdisplay.cpp
with
16 additions
and
7 deletions
indra/llrender/llrendernavprim.cpp
+
13
−
4
View file @
e2fd0266
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
//=============================================================================
//=============================================================================
LLRenderNavPrim
gRenderNav
;
LLRenderNavPrim
gRenderNav
;
//=============================================================================
//=============================================================================
void
LLRenderNavPrim
::
renderSegment
(
const
LLVector3
&
start
,
const
LLVector3
&
end
,
int
color
)
const
void
LLRenderNavPrim
::
renderSegment
(
const
LLVector3
&
start
,
const
LLVector3
&
end
,
int
color
,
bool
overlayMode
)
const
{
{
LLGLSLShader
::
sNoFixedFunction
=
false
;
LLGLSLShader
::
sNoFixedFunction
=
false
;
LLColor4
colorA
(
color
);
LLColor4
colorA
(
color
);
...
@@ -54,10 +54,17 @@ void LLRenderNavPrim::renderSegment( const LLVector3& start, const LLVector3& en
...
@@ -54,10 +54,17 @@ void LLRenderNavPrim::renderSegment( const LLVector3& start, const LLVector3& en
glLineWidth
(
1.0
f
);
glLineWidth
(
1.0
f
);
}
}
//=============================================================================
//=============================================================================
void
LLRenderNavPrim
::
renderTri
(
const
LLVector3
&
a
,
const
LLVector3
&
b
,
const
LLVector3
&
c
,
int
color
)
const
void
LLRenderNavPrim
::
renderTri
(
const
LLVector3
&
a
,
const
LLVector3
&
b
,
const
LLVector3
&
c
,
int
color
,
bool
overlayMode
)
const
{
{
glLineWidth
(
1.5
f
);
glLineWidth
(
1.5
f
);
glPolygonMode
(
GL_FRONT_AND_BACK
,
GL_FILL
);
if
(
overlayMode
)
{
glPolygonMode
(
GL_FRONT_AND_BACK
,
GL_LINE
);
}
else
{
glPolygonMode
(
GL_FRONT_AND_BACK
,
GL_FILL
);
}
LLGLDisable
cull
(
GL_CULL_FACE
);
LLGLDisable
cull
(
GL_CULL_FACE
);
LLColor4
colorA
(
color
);
LLColor4
colorA
(
color
);
colorA
*=
1.5
f
;
colorA
*=
1.5
f
;
...
@@ -71,6 +78,8 @@ void LLRenderNavPrim::renderTri( const LLVector3& a, const LLVector3& b, const L
...
@@ -71,6 +78,8 @@ void LLRenderNavPrim::renderTri( const LLVector3& a, const LLVector3& b, const L
}
}
gGL
.
end
();
gGL
.
end
();
gGL
.
flush
();
gGL
.
flush
();
glLineWidth
(
1.0
f
);
glPolygonMode
(
GL_FRONT_AND_BACK
,
GL_FILL
);
LLGLSLShader
::
sNoFixedFunction
=
true
;
LLGLSLShader
::
sNoFixedFunction
=
true
;
}
}
//=============================================================================
//=============================================================================
...
...
This diff is collapsed.
Click to expand it.
indra/llrender/llrendernavprim.h
+
2
−
2
View file @
e2fd0266
...
@@ -40,9 +40,9 @@ class LLRenderNavPrim
...
@@ -40,9 +40,9 @@ class LLRenderNavPrim
{
{
public:
public:
//Draw a line
//Draw a line
void
renderSegment
(
const
LLVector3
&
start
,
const
LLVector3
&
end
,
int
color
)
const
;
void
renderSegment
(
const
LLVector3
&
start
,
const
LLVector3
&
end
,
int
color
,
bool
overlayMode
)
const
;
//Draw simple tri
//Draw simple tri
void
renderTri
(
const
LLVector3
&
a
,
const
LLVector3
&
b
,
const
LLVector3
&
c
,
int
color
)
const
;
void
renderTri
(
const
LLVector3
&
a
,
const
LLVector3
&
b
,
const
LLVector3
&
c
,
int
color
,
bool
overlayMode
)
const
;
//Draw the contents of vertex buffer
//Draw the contents of vertex buffer
void
renderNavMeshVB
(
LLVertexBuffer
*
pVBO
,
int
vertCnt
);
void
renderNavMeshVB
(
LLVertexBuffer
*
pVBO
,
int
vertCnt
);
...
...
This diff is collapsed.
Click to expand it.
indra/newview/llviewerdisplay.cpp
+
1
−
1
View file @
e2fd0266
...
@@ -920,7 +920,7 @@ void display(BOOL rebuild, F32 zoom_factor, int subfield, BOOL for_snapshot)
...
@@ -920,7 +920,7 @@ void display(BOOL rebuild, F32 zoom_factor, int subfield, BOOL for_snapshot)
glEnable
(
GL_DEPTH_TEST
);
glEnable
(
GL_DEPTH_TEST
);
gGL
.
setSceneBlendType
(
LLRender
::
BT_ALPHA
);
gGL
.
setSceneBlendType
(
LLRender
::
BT_ALPHA
);
gGL
.
setAmbientLightColor
(
LLColor4
::
white
);
gGL
.
setAmbientLightColor
(
LLColor4
::
white
);
LLPathingLib
::
getInstance
()
->
renderNavMesh
();
LLPathingLib
::
getInstance
()
->
renderNavMesh
(
allowRenderables
);
exclusiveDraw
=
true
;
exclusiveDraw
=
true
;
}
}
//physics/exclusion shapes
//physics/exclusion shapes
...
...
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