barfowl
f706062ab1
Added support for semi-sharp features along face-varying boundaries:
...
- added semi-sharp tag to FVar ValueTags and applied in base FVarLevel
- re-assess status of tagged semi-sharp values in each FVarRefinement
- detect and apply fractional weighting in InterpolateFaceVarying()
2014-10-06 12:07:44 -07:00
manuelk
639788abbe
Fix vec array initialization in GLSL & HLSL (should fix some DX compiler problems)
...
Fixes #354
2014-10-04 16:22:43 -07:00
stopiccot
eeedcc155f
Added search path for VS 2013 built-in DXSDK
2014-10-04 21:40:46 +03:00
manuelk
3fc60389cd
Fix build warning in Far::StencilTablesFactory (MVSC)
2014-10-03 17:54:30 -07:00
manuelk
43c235b85d
Adding 2 regression shapes to exercise face-varying interpolation code paths
2014-10-03 10:35:32 -07:00
manuelk
d3fa91deaa
Fix incorrect assert in Osd::DrawContext
2014-10-03 10:35:00 -07:00
barfowl
75ee14e974
Minor improvements to TopologyRefiner's Interpolate() and Limit methods():
...
- rearranged weight application in all to improve precision
- added LimitFaceVarying()
2014-10-03 10:07:05 -07:00
manuelk
43493bb9ae
Add support for bilinear stencils to the FarLimitStencilsFactory
...
- also update glSencilViewer code example to visualize the new stencil type
2014-10-02 16:09:17 -07:00
barfowl
34f397c52b
Checking in work-in-progress on face-varying boundary interpolation:
...
- added more recognition of Hbr behavior
- refactored smooth boundaries to identify continuous spans
- mark spans as sharp corners if interrupted by internal dart edge
2014-10-02 14:32:54 -07:00
manuelk
431ee0fabb
Fix boundary interpolation rule bug in glFVarViewer
...
- "propagate corner" rule was swapped with "always sharp" rule
2014-10-01 16:38:06 -07:00
manuelk
d898ab9779
Update glFVarViewer code example to match face-varying boundary policy changes in Sdc
2014-10-01 11:27:57 -07:00
manuelk
0d4582b34c
Add 'sticles' to the glEvalLimit code example
...
Make the sample locations dynamic by adding a velocity vector. Face boundary
crossing is handled using the new ptex adjacency functionality recently
added to the Far::TopologyRefiner.
2014-09-30 18:53:47 -07:00
manuelk
b48da0d6c6
Fix doxy build warning on the new ptex adjacency function
2014-09-30 18:53:14 -07:00
manuelk
de4564a779
Fix parametric rotation in Far::PatchParam for Gregory Boundary patches (always 0)
2014-09-30 18:13:51 -07:00
barfowl
09e5e5fefa
Fixed missing initialization of Vtr::Level::VTag._incomplete.
2014-09-30 17:19:03 -07:00
barfowl
4a11e39f2c
Added initialization of Vtr::Level::VTag._incomplete in refiner factory.
2014-09-29 18:48:24 -07:00
barfowl
606e8fc1b9
Added support for face-varying boundary interpolation options:
...
- "propagate corners" added as new enumeration to Sdc::Options
- topology tags within FVar channel initialized and propagated
- face-varying Interpolate() method updated to deal with creases
2014-09-29 18:46:33 -07:00
manuelk
aacd43a09b
Add a function to Far::TopologyRefiner to gather ptex adjacency for a given face / quadrant pair
...
- also refactor Vtr::Array 'FindIndex' functions
2014-09-26 15:10:57 -07:00
manuelk
19ed202965
Pass control vertices by reference to Far::PatchTables::Limit<>() function
...
This will allow overriding the [] operator and possibly help refactor the far stencil factory code
2014-09-24 15:15:22 -07:00
manuelk
be679dde3f
Fix compile warning in Far::StencilTablesFactory
2014-09-24 14:49:51 -07:00
manuelk
7ac73157f4
Bump gcc version requirement to 4.8 : upcoming changes run into compiler bugs with older gcc versions
2014-09-24 14:47:57 -07:00
barfowl
99a4b112b7
Fixed ICC warning regarding inline declaration after usage.
2014-09-24 14:06:18 -07:00
barfowl
ab5e2e8d4e
Removed dead code from sparse selection and feature adaptive refinement:
...
- removed old alternative to Catmark feature adaptive selection
- removed unused methods from Vtr::SparseSelector
- made use of Level::VTag's new "incomplete" member in both
2014-09-23 18:24:29 -07:00
barfowl
8cb4a1c8ad
Fixed issues with refined topology not correctly oriented around vertices:
...
- Refinement methods to populate relations updated to order correctly
- updated topology validation method in Level
2014-09-23 17:37:33 -07:00
manuelk
82e7a1bcc5
Minor EvalLimit naming refactor
...
- also added some additional animation to the glEvalLimit code example
2014-09-22 16:01:43 -07:00
manuelk
788880aeba
Minor code cleanup / typo fixes in Far::PatchTables
2014-09-22 13:51:59 -07:00
manuelk
f7b21b941c
Add far_tutorial_6 showing how to interpolate primvar data on the surface
...
limit at arbitrary locations.
2014-09-22 13:51:59 -07:00
barfowl
09789296d9
Modified weighting of sharpness values for Chaikin crease method:
...
- semi-sharp edges prevented from decreasing by averaging with inf-sharp
- averaging now includes only semi-sharp edges around the vertex
- see regression/shapes/catmark_chaikin2
2014-09-18 19:13:55 -07:00
manuelk
d02bfc48d2
WIP on LimitStencilTablesFactory
...
- added an option to Far::StencilTablesFactory to generate stencils for
coarse control vertices
- refactored interpolation code out into Far::PatchTables
- corrected tangent interpolation
- code cleanup & comments
2014-09-18 17:48:34 -07:00
manuelk
fe0cb3a3d4
Update documentation images of some gl code examples (glViewer, glEvalLimit, glStencilViewer)
2014-09-17 18:29:25 -07:00
manuelk
4dd366593d
WIP FarLimitStencilsFactory
...
- bi-cubic patches should be mostly covered, although portions of the interpolation code
need to be refactored out into Far::PatchTables as vertex templated functions (following
patterns established in the Far::TopologyRefiner)
- end-cap patches still have to be done (prob. going to drop Gregory in favor of bilinear)
- Presto needs a fully bilinear code path (no patches) - really ???
2014-09-17 17:53:38 -07:00
manuelk
2e81594050
Fix GL_DEPTH_TEST in glStencilViewer
2014-09-17 17:52:37 -07:00
manuelk
cab8e0a038
Adding catmark_chaikin2 test shape
...
- this shape tests for Chakin rule around vertices with multiple incident creased edges
(shows where Hbr is wrong)
2014-09-17 14:46:10 -07:00
Manuel Kraemer
4814736ce7
Merge pull request #352 from nathan-at-digitalfish/osd_comment
...
We can't leave this poor little guy out now, can we ?
2014-09-17 14:15:08 -07:00
Nathan Litke
c355dc1060
Added a comment in PatchTablesFactory::createUniform
to explain that options.triangulateQuads
may only be set to true
for quadrilateral refinement schemes.
2014-09-17 13:51:12 -07:00
manuelk
ad402d3623
Fix inconsistent file access permissions
2014-09-17 13:45:50 -07:00
Nathan Litke
78ae830794
Fixed Osd::Mesh constructors that initialize member variables from user variables.
2014-09-17 13:41:45 -07:00
Nathan Litke
2dc3b17fb2
Fixed triangulation of uniform quad patches.
2014-09-17 13:36:47 -07:00
Nathan Litke
1d0378774a
Fixed a bug in far_tutorial_3 which had set the number of face-varying values to the number of per-face vertices, not the number of uvs.
2014-09-17 13:34:02 -07:00
Manuel Kraemer
b5098a5b0b
Fix warning in FarStencilTablesFactory for Windows build
2014-09-13 15:58:54 -07:00
Manuel Kraemer
4eb6450bfe
Partial fix of bad tangents for arbitrary limit stencils
2014-09-13 07:38:12 -07:00
Manuel Kraemer
8fc5371ec9
Merge pull request #350 from nathan-at-digitalfish/build_android
...
Fix build for Android
2014-09-12 17:27:57 -07:00
manuelk
c3cfb6824b
Fix window title for glStencilViewer code example
2014-09-12 17:04:26 -07:00
manuelk
c66ee724a8
WIP limit stencils factory
...
todo:
- fix rotated tangents on patches
- add "end-caps" (bilinear or Gregory ?)
- add pure bilinear stencil mode
2014-09-12 16:59:16 -07:00
manuelk
e538261f7d
Fix Cuda compile warning in osd/cudaKernel.cu
2014-09-12 10:43:18 -07:00
Julien Demouth
29b2d033e3
Introduces a kernel for NUM_ELEMENTS=4. It's faster and not buggy,
...
anymore.
2014-09-12 10:22:30 -07:00
Julien Demouth
cf0fe60ab4
Add a first pass of optimization in CUDA kernels
...
Conflicts:
opensubdiv/osd/cudaKernel.cu
2014-09-12 10:21:46 -07:00
Nathan Litke
194ac022eb
Added forward declarations for template specializations for raw topology data.
2014-09-11 16:30:56 -07:00
Nathan Litke
91f6f2246d
Fix linker settings for Android.
2014-09-11 16:30:56 -07:00
Nathan Litke
d7311801c1
Fix compiler errors for OpenGL-ES.
2014-09-11 16:30:50 -07:00