SamGondelman
2d754edf74
CR
2018-02-15 15:48:41 -08:00
Sam Gondelman
15cdfef16a
Merge branch 'master' into decals
2018-02-14 17:33:01 -08:00
samcake
6357f36a97
Fixing names
2018-02-14 10:39:14 -08:00
samcake
1d3ae1b187
Work in progress to get the render items beeing tagged correctly for groupCulled
2018-02-13 17:50:01 -08:00
Anthony J. Thibault
d2c199104e
Avatars use Dual Quaternion Skinning and Model Entities do not.
2018-02-13 17:47:49 -08:00
Anthony J. Thibault
7f5f48bca9
Models can now switch between dual quats and matrix palette skinning.
...
but not dynamically, because we still only compile one version of the shader.
2018-02-13 11:37:14 -08:00
Anthony J. Thibault
cf5452313a
WIP check in of making the use of dq or mat dynamic per model
2018-02-12 18:44:24 -08:00
SamGondelman
84cd0e1529
wip live material swapping on model entities, model overlays, avatars,
...
and albedo swap on shape entities
2018-02-09 12:00:08 -08:00
samcake
4419dfe622
Addressing review comments
2018-02-09 10:02:16 -08:00
samcake
b66da1897d
improving the forward rendering pass, removing the specular variation and making it defautl
2018-02-08 17:59:07 -08:00
Bradley Austin Davis
ab5355dbdd
First pass at bindless textures
2018-02-08 11:11:36 -08:00
samcake
03aeb7adda
Adding the ubo slot assignment for the resource texture table
2018-02-08 11:08:23 -08:00
SamGondelman
4d4294dd6a
Merge remote-tracking branch 'upstream/master' into decals
2018-02-02 16:50:01 -08:00
SamGondelman
d7f4b033e8
wip finish adding material entity
2018-02-02 16:49:33 -08:00
samcake
8dfa3aace3
cleaning en route
2018-01-26 17:34:37 -08:00
Sam Gateau
51dac04374
Introducing the tag in lieu of the vsisiblity mask
2018-01-26 02:59:43 -08:00
samcake
2f4e61888f
Making it work maybe
2018-01-25 16:57:35 -08:00
Seth Alves
31c007d167
more backwards logic, added withViewVisibilityMask call in ItemKey
2018-01-18 14:15:30 -08:00
Seth Alves
7c32d3c536
flip logic back around
2018-01-18 13:49:17 -08:00
Seth Alves
0ad4cdc41b
works now
2018-01-18 13:15:47 -08:00
Seth Alves
fb974b0b9c
attempt to straighten out use of view-visibility masks
2018-01-18 10:09:23 -08:00
Seth Alves
1c819c8422
formatting
2018-01-18 09:12:37 -08:00
Sam Gateau
7a9740d258
visible-perview
2018-01-18 02:18:46 -08:00
humbletim
b91d536dd0
rename model:: -> graphics::
2018-01-16 12:46:16 -05:00
Anthony J. Thibault
7753b8a0b5
Merge branch 'master' into feature/dual-quat
2018-01-11 17:31:29 -08:00
Olivier Prat
db9e5fdae8
Merged from master but rendering seems broken
2018-01-09 11:05:34 +01:00
Anthony J. Thibault
59b843781e
Merge branch 'master' into feature/dual-quat
2018-01-08 13:18:42 -08:00
SamGondelman
97c0b33975
fix avatar texture loading
2018-01-08 12:50:05 -08:00
Olivier Prat
b296b96e5e
Merged with master
2018-01-06 10:01:00 +01:00
SamGondelman
a9d5dda976
always push default haze to current frame
2018-01-04 17:54:23 -08:00
Anthony J. Thibault
fac0982c67
need to use sizeof(TransformType), not sizeof(mat4)
2018-01-04 16:37:12 -08:00
Anthony J. Thibault
bcd813ac62
Optimizations and cleanup
2018-01-04 16:15:44 -08:00
Anthony J. Thibault
e86fd4f992
Removed SKIN_COMP define, re-enabled cauterization
2018-01-04 16:15:42 -08:00
Anthony J. Thibault
8bdddf7211
Full Dual Quaternion support
2018-01-04 16:15:38 -08:00
Anthony J. Thibault
18113d824c
Created Model::TransformComponents class
2018-01-04 16:13:44 -08:00
Anthony J. Thibault
23affb570b
WIP checkpoint, root transforms for shapes and non-animated fbx files are working.
2018-01-04 16:09:06 -08:00
Anthony J. Thibault
565875e823
WIP first attempt at dual quat skinning
2018-01-04 16:09:02 -08:00
Sam Gateau
db4f9909c7
Merge pull request #12017 from Zvork/glcolor
...
Removed glColor reset hack in MeshPartPayload
2017-12-22 14:25:51 -08:00
SamGondelman
69c1c65eb8
get rid of _model completely
2017-12-21 14:08:21 -08:00
SamGondelman
2ba3e337db
cleanup
2017-12-20 14:18:01 -08:00
SamGondelman
bd06dc6443
cleaning up modelmeshpartpayload
2017-12-20 11:00:14 -08:00
Olivier Prat
bd666406f4
Removed glColor reset hack in MeshPartPayload and replaced it by a reset of the color attribute to white in the execution of the setInputFormat command of the various GLBackends
2017-12-19 14:17:17 +01:00
Olivier Prat
264f41472d
Added tangents to blendshape for possible break of bump mapping when doing blend shape animations
2017-12-15 12:06:07 +01:00
Olivier Prat
f38e473218
Working packing of normals and tangents in GL_INT_10_10_10_2_REV format. Need to check this with all available 3D data input formats
2017-12-14 17:57:34 +01:00
samcake
053052a95d
removing warnings
2017-11-03 13:28:20 -07:00
Sam Gateau
c11f46a8d3
cleaning more code
2017-11-02 23:35:18 -07:00
Sam Gateau
56510abd1e
Trying to set the ClusterBuffer in the render loop instead of the game loop
2017-11-02 03:45:27 -07:00
SamGondelman
477dfdff1e
wip hud layering and fix crashes
2017-10-04 11:45:21 -07:00
SamGondelman
b59ec07171
move hud rendering to render thread, still need to separate out hud overlays
2017-09-29 09:49:08 -07:00
Bradley Austin Davis
e42068f681
Merge branch 'master' into android_new
2017-09-26 14:31:29 -07:00
SamGondelman
86198606e0
add _modelJustLoaded and updateTransforForSkinnedMesh on creation
2017-09-22 17:12:44 -07:00
SamGondelman
9f12d3a365
fix missing models
2017-09-21 17:57:25 -07:00
Bradley Austin Davis
b93e91b9f3
New android toolchain
2017-09-19 13:45:12 -07:00
Olivier Prat
3316be4dea
Working fade parameters through instanced draw calls
2017-07-18 17:01:17 +02:00
Olivier Prat
2f9885870b
First merge with Sam's fader branch with custom pipeline support in shape plumber
2017-07-12 17:29:21 +02:00
Olivier Prat
aba8be595e
Separated fade categories from transition event types
2017-07-11 11:37:24 +02:00
Sam Gateau
4edea433ce
Rename the _pipeline into _shapePipeline in the render::Args
2017-07-10 12:16:53 +02:00
Olivier Prat
4256a1f2a7
Preparing for merge with stage. DOESN'T COMPILE!
2017-07-07 15:16:20 +02:00
Olivier Prat
69a7ec42fd
Added fade state in render::Item
2017-07-07 09:16:54 +02:00
Olivier Prat
8a12d0c106
Fade effect working again for basic enter domain but with various Fade jobs
2017-06-29 08:54:23 +02:00
Olivier Prat
1bb0d51849
Merged with master
2017-06-26 11:55:46 +02:00
Olivier Prat
2e3ffe7721
Disabled check on enabled physics when deciding is fade is adequate
2017-06-19 18:19:36 +02:00
Brad Davis
fece438602
Cleanup and refactoring
2017-06-15 18:58:56 -07:00
Olivier Prat
5eeff5aa28
Fixed unwanted red tint due to unreset color attrib in ModelMeshPartPayload
2017-06-14 10:23:12 +02:00
Olivier Prat
cba70e6be0
Fade working on voxel objects
2017-06-08 14:57:09 +02:00
Olivier Prat
de143d0ea2
Switched to uniforms for sending fade shader data. Moved more fade functions to FadeEffect class
2017-06-06 17:07:20 +02:00
Olivier Prat
a9ab9d2476
Renamed FadeManager to FadeEffect
2017-06-06 16:27:56 +02:00
Olivier Prat
8af2f75996
Added FadeManager to centralize some common fade effect data and functions
2017-06-06 16:11:12 +02:00
Olivier Prat
e7eca7728f
Debug fade management moved out of the inner render loop
2017-06-06 14:57:52 +02:00
Olivier Prat
08fcd6c357
Added new shaders
2017-06-05 16:32:36 +02:00
Olivier Prat
1433ae4b34
Merged from 21274
2017-06-05 11:12:57 +02:00
Andrew Meadows
f7db877b7f
payload keeps weak pointer to Model
2017-05-22 17:29:15 -07:00
Olivier Prat
111f0762ea
Added debug scripts and fade position is now stable
2017-04-30 14:42:27 +02:00
Olivier Prat
6a39c25dc7
Merged from master because protocol has changed
2017-04-27 10:59:51 +02:00
Olivier Prat
8071c04e98
Added fade effect prototype version
2017-04-27 10:31:06 +02:00
Atlante45
70ece9f0fd
Load skybox first and sounds later
2017-04-26 14:57:23 -07:00
Atlante45
a2f7a88433
Start drawing models before we get the textures
2017-04-26 10:49:23 -07:00
Atlante45
6fb074715e
Fix alpha rendering bug
2017-04-26 10:48:57 -07:00
Ryan Huffman
8d03d50d35
Cleanup progressive ktx debugging
2017-04-26 10:48:57 -07:00
Ryan Huffman
472c888529
Fix handling of failed ktx downloads
2017-04-26 10:48:24 -07:00
samcake
9bc7e41642
Remove extra calls for binding default textures, not needed
2017-03-29 10:57:08 -07:00
Andrew Meadows
cf848d73e4
don't updateClusterMatrices() in render()
2017-03-15 16:03:36 -07:00
Andrew Meadows
f250c0d298
simpler bindTransform() for ModelMeshPartPayload
2017-03-15 14:41:13 -07:00
samcake
c7b164d8f2
Adding differenciation for the Material shapeKey bit
2017-02-22 18:21:18 -08:00
samcake
c88d070868
Merge branch 'master' of https://github.com/highfidelity/hifi into blue
2017-01-31 11:49:25 -08:00
samcake
04d5173328
Merge pull request #9530 from AndrewMeadows/computeBoundsOutsideLambda
...
compute Model's local bounds outside pending changes queue
2017-01-31 11:40:21 -08:00
samcake
0b139c906c
Assigniing default textures that make sense
2017-01-31 10:56:30 -08:00
samcake
249ec80d74
Writting a better version of the no texture case
2017-01-30 15:48:48 -08:00
samcake
3c56bd2960
Adding support for disabling texturing from the material
2017-01-30 15:03:04 -08:00
Andrew Meadows
489fbc6299
compute Model's local bounds outside render lambda
2017-01-27 09:35:36 -08:00
Andrew Meadows
10cdea9cd8
cleanup model fade logic
2017-01-19 14:17:50 -08:00
Andrew Meadows
b7c1bfaf58
another attempt to fix model transform
2017-01-19 14:01:40 -08:00
Andrew Meadows
d3af420516
fix broken model transforms
2017-01-19 13:07:50 -08:00
Andrew Meadows
bfbef91f53
re-enable cauterization of meshes for MyAvatar
2017-01-19 12:56:07 -08:00
Andrew Meadows
3dd8fd838b
move cauterization out of Model class
2017-01-19 12:56:07 -08:00
Andrew Meadows
fd28457807
fix cauterization hack
2017-01-16 15:13:28 -08:00
Andrew Meadows
c060fd6a68
restore updateClusterMatrices() in render()
2017-01-11 17:33:30 -08:00
Andrew Meadows
e88f02d7b6
remove cruft
2017-01-11 06:55:13 -08:00
sam
7a01b856f7
Factorization of the modelTransform out of the cluster matrices
2017-01-11 02:33:56 -08:00
Andrew Meadows
44699fc661
modelToWorld rotation not in cluster matrices
2017-01-10 16:21:13 -08:00
Brad Davis
99af7f2819
Reduce unecessary copying in MeshPartPayload::bindMaterial
2016-12-28 12:11:27 -08:00
samcake
c435afb728
Introducing a fix for the overlayered model drawn in front
2016-12-19 13:17:56 -08:00
Brad Hefta-Gaub
7ef8e53d03
Merge pull request #8701 from ZappoMan/getShapeKeyCrashFix
...
add guards to getShapeKey
2016-10-01 20:23:50 -07:00
Brad Hefta-Gaub
7fe16442fa
make calculateTextureInfo thread safe
2016-10-01 15:47:17 -07:00
Brad Hefta-Gaub
04f6547940
add guards to getShapeKey
2016-10-01 12:15:03 -07:00
David Rowe
68499f49ad
Fix count of textures
2016-09-10 10:15:13 +12:00
Brad Hefta-Gaub
e1845e2c3f
add support for renderInfo properties to model entities
2016-08-31 15:00:21 -07:00
Andrew Meadows
fe4198530f
don't render raw compound collision geometry
2016-08-24 22:26:56 -07:00
Andrew Meadows
6b0ae654ba
cleanup logic around creating RenderItems
2016-08-24 22:26:56 -07:00
Brad Davis
c5628b615c
Make sure we start fade in once an item becomes ready
2016-08-24 16:05:22 -07:00
SamGondelman
ccca6d935f
don't fade after physics kick in
2016-08-12 14:35:22 -07:00
SamGondelman
36d9f92101
performance optimization to minimize calling usecTimestampNow
2016-08-09 13:10:02 -07:00
SamGondelman
ae9fb3768c
CR notes
2016-08-08 17:45:25 -07:00
SamGondelman
de900e85c0
remove duplicate include
2016-08-08 14:10:47 -07:00
Brad Hefta-Gaub
83280aa3f2
implement support for updating the render items of models when they finish their fade
2016-08-05 10:11:07 -07:00
SamGondelman
d63a0ef08f
working on making other entities transparent
2016-08-02 18:09:42 -07:00
SamGondelman
5de21982be
fix linux build
2016-08-02 11:44:17 -07:00
SamGondelman
ad5dec829c
why did I change that
2016-08-02 10:52:51 -07:00
SamGondelman
3d08502080
space
2016-08-02 10:50:57 -07:00
SamGondelman
74f11eb70b
try a different easing function
2016-08-02 10:50:31 -07:00
SamGondelman
0b5c7909b8
a calculated change
2016-08-01 18:45:25 -07:00
SamGondelman
6154aaddda
try to fix linux build
2016-08-01 16:19:03 -07:00
SamGondelman
ae0b9ea9a3
fade wireframes
2016-08-01 15:26:04 -07:00
SamGondelman
313ba87fce
fade on texture load
2016-08-01 14:47:20 -07:00
SamGondelman
217a102926
working on loading fade
2016-08-01 13:15:55 -07:00
samcake
744474982d
Merge branch 'master' of https://github.com/highfidelity/hifi into skin
2016-07-17 13:28:03 -07:00
Andrew Meadows
9f7d2cf263
NetworkGeometry --> GeometryResourceWatcher
...
Model class gets render and collision geometries with watchers
also changed names for readability
2016-07-13 15:00:12 -07:00
samcake
3ec14fd746
MErging and still trying to understand the curvature isssue
2016-06-22 18:06:55 -07:00
samcake
a8347cac6e
Getting the unlit to work from the pipeline, and found the isLinear for texture bug!
2016-05-06 18:36:55 -07:00
samcake
e306a24a1b
INtroducing the unlit mode for fragments
2016-05-05 17:08:52 -07:00
samcake
88f816fab4
Adding reflection of the ambient map for translucent
2016-04-28 18:18:18 -07:00
samcake
fd3efa37e3
Cleanup the shaders to avoid any uniform in genral, fixed a bug woith the emissive params applied twice for model_lightmap.slf
2016-04-22 10:56:21 -07:00
samcake
5a67411d75
Removing separate uniforms for the texcoord transforms and lightmap params, shader still failing
2016-04-21 18:35:37 -07:00
samcake
0531f90675
Adding state sorting for free
2016-04-18 00:22:05 -07:00
samcake
8964c2427d
adding support for the 2 versions of the shaders nad solving the mapping of uniforms that arise with it
2016-04-08 18:47:21 -07:00
Anthony J. Thibault
635f58629a
MeshPartPayload: remove dead code
2016-03-31 14:58:25 -07:00
Anthony J. Thibault
24ca5b3d60
Update after merge changes to NetworkGeometry.
...
Also cleaned up API for ModelMeshPartPayload::updateTransformForSkinnedMesh() to pass a QVector const ref, instead of a raw pointer and a size.
2016-03-28 20:29:02 -07:00
Anthony J. Thibault
940f3e636d
Merge branch 'master' into tony/animated-culling
2016-03-28 19:58:38 -07:00
Anthony J. Thibault
115fd607a0
Address performance issues introduced with this PR.
...
* Prevent clusterMatrices from being invalidated and re-computed in each updateItem lambda.
We do this by not setting _model->_needsUpdateClusterMatrices = true;
* Prevent redundant work if Model::enqueueLocationChange is called multiple times per frame.
We do this by introducing a preRenderLambdas map in the Application class.
Instead of adding work directly to the scene PendingChanges queue Model::enqueueLocationChange
adds a lambda to the Application preRenderLambdas map. The Application ensures that only one lambda will
be invoked for each model per frame.
2016-03-28 19:47:30 -07:00
Anthony J. Thibault
49a4d104a6
Minimize diff with master
2016-03-26 13:27:05 -07:00
Anthony J. Thibault
bf433487fa
Dynamic bound update for skinned mesh
...
* Use all cluster matrices to compute bound for skinned mesh.
This is far less expensive then doing per-vertex work, but it's not free, for avatars especially.
* Remove skinnedMeshBound, compute it instead.
* Compute clusterMatrices in render update, because we need them to update bounds.
2016-03-26 12:22:02 -07:00
Anthony J. Thibault
b4e70d9101
WIP: checkpoint
...
* bug fix in AABox::operator+=
* added AABox::emiggen
* Avatar now has a default bound for it's skinned mesh.
* WIP: AABox tests; NEED MORE
* Model: split collision and model mesh render items.
Because ModelMeshRenderItems need special handling to update bounds for animated joints.
* Model: dynamically update the bound for rigidly bound animated meshes
* Rig: added access to geometryToRigTransform
* RenderableModelEntityItem: try to update bounds for skinned mesh to be the entity dimentions (this doesn't seem to be working)
* Geometry.cpp: removed unused bounds parameter in evalPartBounds
* ModelMeshPartPayload: bounds updating
* non-animated: use existing _localBound
* rigid bound mesh: use _localBound transformed by clusterMatrix joint transform
* fully skinned mesh: use _skinnedMeshBound provided by the application.
2016-03-25 21:29:20 -07:00
Zach Pomerantz
3e9e083df5
Update users of NetworkGeometry
2016-03-24 11:35:41 -07:00
samcake
1e46b0803c
fixing repported issues during review
2016-03-23 15:59:57 -07:00
samcake
227ddb12a6
Trying to clen up the way the opacity final value comes to the fragment shader
2016-03-21 12:14:59 -07:00
samcake
225b330d41
Trying to better load aand detect the case for transparent textures oor opacity mask
2016-03-18 12:47:33 -07:00
Zach Pomerantz
ee1fb698a4
Add texture transparency to material key
2016-03-11 14:27:35 -08:00
samcake
89920370db
A bunch of typo fixes after review
2016-03-01 10:53:08 -08:00
samcake
3ee6f9d6f2
Merge branch 'master' of https://github.com/highfidelity/hifi into orange
2016-02-25 23:48:53 -08:00
Andrew Meadows
f964df6c97
final names for ViewFrustum intersection tests
2016-02-25 18:09:35 -08:00