manuelk
419b6b9716
- add a message to limitEval when trying to display face-varying UVs on shapes
...
that do not have that type of data
- fix some regression shapes that had "empty" uv values
(including some minor topo surgery that luckily appears to not break
regression baselines)
2013-06-07 17:53:23 -07:00
manuelk
cf1b2f1334
- fix a face-varying bug in shape_utils : now face-varying UVs are indexed correctly
...
coming out of our shape format
- set blue component of point-cloud to 0 in face-varying mode (save a few micro-secs)
2013-06-07 14:47:41 -07:00
manuelk
f5a7ad4cdb
evalLimit example : make sure to reset the output buffer on creation - some of the prims may not
...
set all the point colors (if face-varying data is missing on the test shape for instance)
and we don't want random values creeping from unset memory allocations.
2013-06-07 10:38:10 -07:00
manuelk
c18cf5bff2
first pass at face-varying interpolation for CpuEvalLimit - still
...
a couple of kinks to be worked out...
2013-06-06 18:07:46 -07:00
manuelk
043369485c
- adding varying data interpolation to the EvalLimit module
...
- minor refactoring of the LimitEvalContext to accomodate all the data buffers
- pushing some minor sub-patch functionality back to FarPatchParams
- extend example code with randomly generated varying vertex colors
2013-06-05 11:44:30 -07:00
Takahito Tejima
b0e8533ef4
Fix cmakefile and #ifdefs for opencl configuration.
2013-06-05 10:44:21 -07:00
Takahito Tejima
a6bf169344
Fix fvardata interpolation on adaptive patches.
2013-06-04 11:02:27 -07:00
manuelk
21b9fbbb95
Moving some member variables of OsdGlDrawContext from public to protected
...
and adding the requisite accessors
Note : all our example code goes through the same boiler-plate texture
binding code - we might want to move it as a member function of the DrawContext.
2013-05-31 17:11:16 -07:00
manuelk
f2b3419a4d
bug fix in limitEval example : calculation for the required number of samples was incorrect
...
on geometry with non-quad faces. This should be fixed now.
2013-05-31 14:14:42 -07:00
manuelk
393362b589
Cleaning up the feature adaptive patch colors : all example code now shares the same function to provide the patch colors
...
Note : this function will probably eventually move down to osdutil or some similar canonical place
2013-05-22 16:26:02 -07:00
David G Yu
5632721a4b
Assign locations for attribs and frag data
2013-05-22 12:36:21 -07:00
Takahito Tejima
87114f7428
Rename osd_util to osdutil.
...
Cleanup the batching classes so that DrawCollection() no longer caches
current batch and effect. Any kind of binding optimization will be
handled in client's delegate class.
Also remove InitializeVertexBuffer method and add some arguments to
constructor instead.
2013-05-21 17:20:22 -07:00
David G Yu
0f0d4d56ff
Fixed ptexViewer xform feedback initialization
2013-05-20 12:21:13 -07:00
David G Yu
9aa83d9538
Fixed simpleCpu draw context construction.
2013-05-20 12:21:13 -07:00
David G Yu
784b6e4475
Fixed OS X build issues.
2013-05-17 15:53:36 -07:00
Takahito Tejima
a6dbb0adc4
example/paintTest can be built with GL 4.3 or later.
2013-05-17 13:59:06 -07:00
Takahito Tejima
e75d94e2ac
Fix paintTest to follow API change
2013-05-17 13:40:39 -07:00
Takahito Tejima
aa76d9c645
Add constructor to FarPatchTables. Add enums to FarPatchTables::Type.
2013-05-17 12:49:57 -07:00
manuelk
c2cec239cd
removing osd/patch.h (and cleaning up attending dependencies)
2013-05-17 09:06:40 -07:00
manuelk
19073abec8
fix glslTransformFeedback constructor for glBatchViewer
2013-05-16 17:48:06 -07:00
Takahito Tejima
6140f1ae81
DrawContext->IsAdaptive() is no longer needed in client code.
2013-05-16 17:10:17 -07:00
Takahito Tejima
da4fc9c653
Fix multiMeshFactory to splice uniform patches correctly.
...
(IP) refactor osdbatch
2013-05-16 16:55:53 -07:00
manuelk
6256010296
re-factoring the EvalLimit portion of the code (and other minor comment / typo fixes)
2013-05-16 14:21:11 -07:00
manuelk
ad3bacbbbb
remove topology data from FarMesh and refactor uniform / adaptive
...
code paths using FarPatchTables for all serialized topological data.
2013-05-15 17:53:40 -07:00
Takahito Tejima
b16272d6a5
more msvc fixes. make dxViewer working.
2013-05-14 10:48:48 -07:00
Takahito Tejima
1a2b71d929
Refactor OsdGLDrawContext to be constructed from FarPatchTables, instead of FarMesh.
...
Removed reference to FarMesh from OsdUtilMeshBatch.
Added const qualifier to ComputeContext constructor.
2013-05-10 19:35:25 -07:00
Takahito Tejima
b7814266c9
Add OpenCL specialized batching class
2013-05-10 09:20:45 -07:00
Takahito Tejima
6ea485de47
fix compile error
2013-05-09 21:27:00 -07:00
Takahito Tejima
5e5fc97b0c
fix glBatchViewer
2013-05-09 19:18:32 -07:00
Takahito Tejima
7b6630cf40
fix simpleCpu and ptexViewer to be compilable with new patch tables.
2013-05-09 13:48:00 -07:00
Takahito Tejima
3eaf0362bd
split patch descriptor into two parts, far intrinsic properties and osd's.
...
more OsdGLDrawContext clean up.
2013-05-09 13:14:02 -07:00
Takahito Tejima
f592e90067
fix OsdGLDrawContext to follow far patchtables refactoring.
2013-05-09 09:23:01 -07:00
David G Yu
2a12b21ab2
Removed mutex implementation.
...
We added this to support earlier versions
of hbr, but it is no longer needed.
2013-05-07 11:27:14 -07:00
David G Yu
e4afec5388
Disabled paintTest on OS X
2013-05-06 23:59:58 -07:00
David G Yu
93476a368d
Fixed a few OS X build errors.
2013-05-06 23:59:58 -07:00
manuelk
9860e1921f
clean up some function prototypes
2013-05-06 10:36:18 -07:00
manuelk
643b664067
the limitEval example appears to be building properly... adding it to the collection
2013-04-24 10:40:32 -07:00
manuelk
b815aff333
First pass at fixing the installation part of the Cmake build : now CMAKE_INSTALL_PREFIX can
...
be used as intended to specify an installation directory, which can be located anywhere on the
file system.
Also improved the doxygen target and made the doxy build "quiet".
fixes #154
2013-04-22 19:35:41 -07:00
manuelk
4bf24d9b95
First pass at our "Eval" API : this checkin is a mileston and is still missing
...
code paths for certain types of feature adaptive patches.
The check-in adds a new "limitEval" code example.
More to come soon...
fixes #45
2013-04-18 19:55:05 -07:00
manuelk
fd0af2dbb6
minor fixes to the GLFW motion callback to fix MSVC++ build errors.
...
fixes #149
2013-04-18 19:15:30 -07:00
manuelk
57808e4abe
fix the function prototype for the motion callbacks in our example viewers
...
fixes #149
2013-04-08 10:37:36 -07:00
manuelk
e6e7c96a52
We need to leverage our per-patch ptex indexing scheme in the EvalLimit API.
...
- replace ptex indexing with the FarPtexCoord structure as a way to pass per-patch
ptex data to the shaders.
We are replacing a vector<int> arranged as :
int[0] : ptex face index
int[1] : (u,v) as 16 bits encoding the log2 coordinate of the top left corner
Instead we are now using a struct arranged as :
int[0] : ptex face index
int[1] : is a bit-field containing u,v, rotation, depth and non-quad
The u,v coordinates have been reduced to 10 bits instead of 16, which still
gives us a lot of margin.
- Replace OsdVertexBufferDescriptor with something more adequate for general
primvar representation (this name will probably eventually change...)
- Improve OsdPatchDescriptor
- add a "loop" boolean (true if the patch is of loop type)
- add a GetPatchSize() accessor
- OsdPatchArray :
- remove some redundant elements (still more to do there)
- Fix all shader / examples / regressions & stuff to make this all work.
fixes #143
2013-03-22 18:20:50 -07:00
David G Yu
036ec2e189
Updated DX11 viewer to use std::string shapes.
2013-03-19 15:38:44 -07:00
Takahito Tejima
d026aca006
use std::string instead of char* for regression shapes definition,
...
to avoid MSVC's literal length limitation on some big shapes.
2013-03-19 14:43:21 -07:00
David G Yu
7cffcedbc3
Fixed ptexViewer to register for windowClose
2013-03-19 14:31:44 -07:00
manuelk
54856181a9
fix simpleCpu example :
...
- assign default widht / height to the window
- fix reshape callback
- downgrade GL profile hint to 3.3
2013-03-18 16:55:41 -07:00
manuelk
2ec61446db
use sqrtf and expf to prevent auto-casts to double
...
fixes #139
2013-03-18 16:29:35 -07:00
David G Yu
6f6a6aeab3
Fixed VS2010 compile errors.
2013-03-18 11:57:55 -07:00
David G Yu
f399ff2a10
Fixed VS2010 compile errors.
...
Also, disabled DEPTH_TEST for framebuffer blits.
2013-03-18 11:56:09 -07:00
Manuel Kraemer
a4c43b0522
fix some GLFW 3.0 issues - since we are still in beta, the API is changing a bit
...
- the closeWindowFun callback changed prototype (now returns void)
- keyboard functions now require the window handle (and pass it to the callback)
2013-03-16 18:44:53 -07:00