Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Public Resource
Opencv
opencv_contrib
Commits
53365ce2
Commit
53365ce2
authored
3 years ago
by
Alexander Alekhin
Browse files
Options
Download
Plain Diff
Merge pull request #3135 from paroj:ovisup
parents
755beca9
0ad33e77
4.x
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/ovis/src/ovis.cpp
+4
-7
modules/ovis/src/ovis.cpp
with
4 additions
and
7 deletions
+4
-7
modules/ovis/src/ovis.cpp
View file @
53365ce2
...
...
@@ -168,12 +168,10 @@ static SceneNode& _getSceneNode(SceneManager* sceneMgr, const String& name)
return
*
mo
->
getParentSceneNode
();
}
/// BGR to RGB 0..1
static
ColourValue
convertColor
(
const
Scalar
&
val
)
{
// BGR 0..255 (uchar) to RGB 0..1
ColourValue
ret
=
ColourValue
(
val
[
2
],
val
[
1
],
val
[
0
])
/
255
;
ret
.
saturate
();
return
ret
;
return
ColourValue
(
val
[
2
],
val
[
1
],
val
[
0
]).
saturateCopy
();
}
class
WindowSceneImpl
;
...
...
@@ -614,9 +612,8 @@ public:
const
Scalar
&
specularColour
)
CV_OVERRIDE
{
Light
*
light
=
sceneMgr
->
createLight
(
name
);
// convert to BGR
light
->
setDiffuseColour
(
ColourValue
(
diffuseColour
[
2
],
diffuseColour
[
1
],
diffuseColour
[
0
]));
light
->
setSpecularColour
(
ColourValue
(
specularColour
[
2
],
specularColour
[
1
],
specularColour
[
0
]));
light
->
setDiffuseColour
(
convertColor
(
diffuseColour
));
light
->
setSpecularColour
(
convertColor
(
specularColour
));
Quaternion
q
;
Vector3
t
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help