Takahito Tejima
1e02fbebf8
Sync HLSL shaders for the single crease orientation fix.
...
- add HLSL equivalents of the previous GLSL change
- rename OsdGetSingleCreaseSegmentParameter to
OsdGetPatchSingleCreaseSegmentParameter.
- add shadingMode UI for dxViewer similar to glViewer
2015-06-02 12:03:27 -07:00
takahito-tejima
71470b1ab7
glViewer: mac shader compile error fix
2015-06-01 22:16:43 -07:00
Takahito Tejima
fe92265db9
Unlabel the rotation of single crease patch.
...
use boundaryMask to identify the crease edge from 4 edges.
with this change, single-crease patch no longer needs to be rotated on
its population.
In shader, experimentally use same infinite sharp matrix for both
boundary and single-crease patch.
2015-06-01 21:26:39 -07:00
George ElKoura
4536d44c31
Merge pull request #582 from barfowl/catmark_adaptive
...
Disabling feature-adaptive refinement for non-Catmark schemes
2015-06-01 19:02:57 -07:00
George ElKoura
8f7dc4ae8f
Merge pull request #581 from barfowl/vtr_members
...
Re-protected members of all major Vtr classes
2015-06-01 19:01:11 -07:00
barfowl
d8f139ae47
Disabling feature-adaptive refinement for non-Catmark schemes
2015-06-01 18:21:55 -07:00
barfowl
13e0850ac6
Re-protected members of all major Vtr classes:
...
- change public status of members back to protected/private
- mimized friends (primarily Refinements as builders for Levels)
- added any missing accessors to prevent member access (mainly Tags)
- added the Tri/Quad refinement subclasses to private header list
2015-06-01 17:38:11 -07:00
Jeremy Cowles
5317bf1b7e
Merge pull request #580 from barfowl/fvar_values
...
Renaming of face-varying methods to access values per face
2015-06-01 17:33:54 -07:00
barfowl
dc5056fe76
Renaming of face-varying methods to access values per face:
...
- replaced FVarFaceValues with FaceFVarValues in a couple Far methods
- rewrote face-varying Factory assignement to be clearer with terminology
2015-06-01 16:25:44 -07:00
Takahito Tejima
66ea8ab970
Merge pull request #578 from davidgyu/winBuildFix
...
Added include of algorithm for min/max
2015-06-01 13:46:46 -07:00
David G Yu
5d36d87dda
Merge pull request #579 from takahito-tejima/dev
...
glViewer: separate displayStyle(wire) and shading.
2015-06-01 12:08:02 -07:00
Takahito Tejima
b250fdcfc3
glViewer: fix invalid drawing on the first frame
...
uniform blocks were not set correctly.
2015-06-01 11:22:32 -07:00
Takahito Tejima
a09539c0a7
glViewer: separate displayStyle(wire) and shading.
...
- split displayStyle and shadingMode control into two different settings.
- add more shadingModes:
normal, curvature(screen space), curvature (from patch)
- minor cleanup
2015-06-01 11:13:54 -07:00
David G. Yu
2bad68e029
Added include of algorithm for min/max
2015-06-01 11:12:20 -07:00
George ElKoura
f05281efab
Merge pull request #577 from barfowl/far_includes
...
Removed unnecessary files include by public headers in Far
2015-06-01 08:26:49 -07:00
barfowl
e52dd83b14
Removed unnecessary files include by public headers in Far
2015-06-01 00:14:19 -07:00
George ElKoura
d7994b8f46
Merge pull request #575 from takahito-tejima/examples
...
examples cleanup: remove framebuffer class
2015-05-31 21:40:09 -07:00
George ElKoura
79db037a21
Merge pull request #574 from barfowl/far_vtr_access
...
Eliminated direct member access to Vtr classes from Far
2015-05-31 21:35:23 -07:00
Takahito Tejima
85bb0a156e
examples cleanup: remove framebuffer class
...
- the framebuffer class in examples/common is unstable in certain drivers.
removing offscreen rendering for now.
- move screenshot function to GLUtils.
- fix vertex attrib binding bug (not showing control mesh on osx)
2015-05-31 20:52:20 -07:00
barfowl
2e6cab8df4
Eliminated direct member access to Vtr classes from Far:
...
- added required/missing access methods to Vtr
- replaced direct member access in Far with appropriate methods
2015-05-31 18:26:13 -07:00
Jeremy Cowles
b83b4e3062
Merge pull request #573 from takahito-tejima/examples
...
Examples cleanup: factor out control mesh drawing.
2015-05-31 15:50:11 -07:00
Takahito Tejima
7394bf5f51
Examples cleanup: factor out control mesh drawing.
...
- add GLControlMeshDisplay and D3D11ControlMeshDisplay into
examples/common
- delete all drawCageEdges/drawCageVertices from viewers and
use ControlMeshDisplay class
2015-05-31 15:08:37 -07:00
Jeremy Cowles
39e22e55b2
Merge pull request #572 from davidgyu/amdShaderFix
...
Workaround GLSL shader compiler on AMD
2015-05-31 12:24:39 -07:00
Jeremy Cowles
ed38b28f40
Merge pull request #571 from davidgyu/winBuildFix
...
Workaround dxPtexViewer link dependencies
2015-05-31 12:24:20 -07:00
David G. Yu
1b6d9ba409
Workaround GLSL shader compiler on AMD
...
Added a size specifier to the shader output array declaration
in the GregoryBasis and Gregory control shaders. This seems
to be required by the GLSL compiler on AMD and is harmless elsewhere.
2015-05-31 10:59:01 -07:00
David G. Yu
99b214ca92
Workaround GLSL shader compiler on AMD
...
Added a size specifier to the shader output array declaration
in the BSpline control shader. This seems to be required by the
GLSL compiler on AMD and is harmless elsewhere.
2015-05-31 10:26:50 -07:00
David G. Yu
808d0322fd
Workaround dxPtexViewer link dependencies
2015-05-31 10:20:41 -07:00
Takahito Tejima
d470bc81b9
Merge pull request #570 from davidgyu/dxRefactor
...
Sync'd screen-space single-crease patch fix to DX
2015-05-31 09:08:23 -07:00
Takahito Tejima
cdef7870e7
Merge pull request #568 from c64kernal/dev_arg
...
Command line options for GL context.
2015-05-31 09:07:14 -07:00
Takahito Tejima
f04bab9143
Merge pull request #569 from c64kernal/dev_glc
...
Get more viewers using GLUtils.
2015-05-31 09:06:12 -07:00
David G. Yu
bd6d9b4ea9
Sync'd screen-space single-crease patch fix to DX
2015-05-31 08:18:18 -07:00
George ElKoura
f3eae18197
Command line options for GL context.
...
Adding command line options to glViewer to make it easy
to control the requested GL version and profile. While
it is only enabled for glViewer in this change, it will
be easy to extend to all our example viewers. The new
command line options are:
-glCoreProfile on|off
-glForwardCompat on|off
-glVersion M.n
2015-05-31 01:22:35 -07:00
George ElKoura
742dca5b81
Get more viewers using GLUtils.
...
farViewer and glPaintTest now use GLUtils to set the GL context instead of
rolling their own.
2015-05-31 01:01:11 -07:00
David G Yu
4bf1ef722c
Merge pull request #564 from takahito-tejima/singlecrease
...
Fix screen-space tessellation on single crease patch.
2015-05-30 23:58:39 -07:00
Jeremy Cowles
6b7f76010a
Merge pull request #567 from c64kernal/dev_f
...
Fix GL context init for Linux and Windows.
2015-05-30 23:32:09 -07:00
Takahito Tejima
6a1a99b36c
Merge pull request #566 from c64kernal/dev_osd
...
Fix out of bounds memory access in CPU stencil eval.
2015-05-30 23:25:20 -07:00
George ElKoura
fb096fdfed
Move OPEN_GL_FORWARD_COMPAT setting
...
Move OPEN_GL_FORWARD_COMPAT setting inside CORE_POFILE guard.
2015-05-30 23:24:44 -07:00
George ElKoura
e3b20b5418
Fix GL context init for Linux and Windows.
...
Move the core profile specification into the OSX only section.
2015-05-30 23:16:27 -07:00
George ElKoura
a63d477f4d
Merge pull request #565 from jcowles/dev-cleanup
...
Only specify an OpenGL version hint on OSX
2015-05-30 23:01:10 -07:00
George ElKoura
cb5044c462
Fix out of bounds mem access in CPU stencil eval.
...
When the stencil table contains no stencils, bail out
on the EvalStencil before indexing into the stencil table.
2015-05-30 22:55:43 -07:00
Jeremy Cowles
3b64c80f7f
Only specify an OpenGL version hint on OSX
...
It appears the behavior of the version hint is operating system
(and perhaps driver) specific. On OSX the version hint is a
minimum version, but on Linux you get exactly the version
requested.
The GLFW FAQ seems to suggest that any driver not supporting
ARB_compatibility may need the hint.
s
2015-05-30 22:52:52 -07:00
Takahito Tejima
2102b4f6b2
Fix screen-space tessellation on single crease patch.
...
- Rename OsdPerPatchVertexBSpline to OsdPerPatchVertexBezier
- Split OsdGetTessLevels into 3 functions,
OsdGetTessLevelUniform, OsdGetTessLevelAdaptiveRefinedPoints,
OsdGetTessLevelAdaptiveLimitPoints.
- Add a regression test shape : catmark_single_crease
2015-05-30 22:41:24 -07:00
Takahito Tejima
4eb6d55d19
Merge pull request #563 from c64kernal/dev_far
...
Remove mention of vtr from tests and examples.
2015-05-30 22:41:05 -07:00
George ElKoura
5a51f31104
Remove mention of vtr from tests and examples.
...
- Renamed common/vtr_utils to common/far_utils.
- Renamed all mentions of Vtr in the sources of tests and examples.
2015-05-30 22:10:07 -07:00
Takahito Tejima
ccb8488411
Merge pull request #562 from c64kernal/dev_fix
...
Fixed build breakage in mayaPolySmooth.
2015-05-30 16:44:51 -07:00
George ElKoura
fbfc657d03
Fixed build breakage in mayaPolySmooth.
...
Make sure to maintain constness to fix the build break for gcc.
2015-05-30 16:16:35 -07:00
Takahito Tejima
997d6035b9
Merge pull request #558 from davidgyu/fvarFix
...
Fixed a couple of problems with FVar handling
2015-05-30 12:00:32 -07:00
Takahito Tejima
310b96ae24
Merge pull request #561 from davidgyu/buildfix
...
Removed a vim swp file accidentally checked in
2015-05-30 11:52:42 -07:00
David G Yu
c49cc09966
Removed a vim swp file accidentally checked in
2015-05-30 11:39:51 -07:00
Jeremy Cowles
de69c5100c
Merge pull request #556 from barfowl/primvar_interpolate
...
Removed multi-level interpolation methods of Far::PrimvarRefiner
2015-05-30 10:26:33 -07:00