Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
alta
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
5
Issues
5
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alta
alta
Commits
5993cf5d
Commit
5993cf5d
authored
Sep 20, 2013
by
Laurent Belcour
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Got the BrdfExplorer export to work. The Jacobian evaluation is missing.
parent
c7999f0c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
10 deletions
+1
-10
sources/plugins/nonlinear_function_ward/function.cpp
sources/plugins/nonlinear_function_ward/function.cpp
+1
-3
sources/plugins/nonlinear_function_ward/function.h
sources/plugins/nonlinear_function_ward/function.h
+0
-7
No files found.
sources/plugins/nonlinear_function_ward/function.cpp
View file @
5993cf5d
...
...
@@ -98,8 +98,6 @@ void ward_function::setParameters(const vec& p)
//! \todo finish.
vec
ward_function
::
parametersJacobian
(
const
vec
&
x
)
const
{
double
dot
=
compute_dot
(
x
);
vec
jac
(
dimY
()
*
nbParameters
());
for
(
int
i
=
0
;
i
<
dimY
();
++
i
)
{
...
...
@@ -229,7 +227,7 @@ void ward_function::save_body(std::ostream& out, const arguments& args) const
out
<<
"
\t
vec3 hax = dot(H,X) / ax;"
<<
std
::
endl
;
out
<<
"
\t
vec3 hay = dot(H,Y) / ay;"
<<
std
::
endl
;
out
<<
"
\t
float hn = dot(H,N);"
<<
std
::
endl
;
out
<<
"
\t
return (ks / (4 *
M_PI * ax*ay * sqrt(dot(L,N)*dot(V,N
))) * exp(-(hax*hax + hay*hay)/(hn*hn));"
<<
std
::
endl
;
out
<<
"
\t
return (ks / (4 *
"
<<
M_PI
<<
" * ax*ay * sqrt(dot(L,N)*dot(V,N)
))) * exp(-(hax*hax + hay*hay)/(hn*hn));"
<<
std
::
endl
;
out
<<
"}"
<<
std
::
endl
;
}
}
sources/plugins/nonlinear_function_ward/function.h
View file @
5993cf5d
...
...
@@ -77,13 +77,6 @@ class ward_function : public nonlinear_function
//! \brief Set the number of output dimensions
void
setDimY
(
int
nY
);
private:
// methods
//! \brief Compute the cosine for inside the lobe function.
//! Depending on the lobe type, the dot product can have
//! different evaluations.
double
compute_dot
(
const
vec
&
in
)
const
;
private:
// data
vec
_ks
,
_ax
,
_ay
;
// Lobes data
...
...
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