Paolo Cignoni cignoni
bafdadb3f0
Renaming for coherent naming
2009-08-29 13:25:10 +00:00
Paolo Cignoni cignoni
54e55a164c
yet another code cleaning pass to the texture quadric simplifiction code
2009-08-29 07:18:09 +00:00
Paolo Cignoni cignoni
b7be19da3d
added normal variation check to the texture simplification
2009-08-29 00:46:55 +00:00
Paolo Cignoni cignoni
e8bb416611
exposed parameter for quality quadric in texture simplification filter.
2009-08-29 00:21:09 +00:00
Paolo Cignoni cignoni
8578e46b3d
heavily refactored code and moved templated stuff into a .h file
2009-08-29 00:20:21 +00:00
Paolo Cignoni cignoni
d04e0da45c
Added support of quality quadrics
2009-08-29 00:19:43 +00:00
Nico Pietroni nicopietroni
fea454ad50
Added functions in order to:
...
* Interpolate the Curvature
* Precumpute the projection matrix
* Interpolate between various points in parametric space
2009-08-28 10:07:04 +00:00
Nico Pietroni nicopietroni
adcb0d77d1
added function testParamCoordsPoint
2009-08-28 10:05:07 +00:00
Nico Pietroni nicopietroni
6de9f7dbd0
removed Function testParamCoordsPoint(const vcg::Point2<ScalarType> &) and corrected some GCC compilation errors
2009-08-28 10:04:04 +00:00
Nico Pietroni nicopietroni
fcc8370917
added functions:
...
* getSharedVertices(const std::vector<int> ,AbstractVertex *[3])
* InterpolationSpace(const std::vector<int> ,int )
to implement interpolation between different points in parametric space
* Theta(const int &,
const vcg::Point2<ScalarType> &,
ParamFace* &,
CoordType &)
to get directly the 3D coordinates of a parametric point
changed
#include <local_parametrization.h>
#include <uv_grid.h>
into
#include "local_parametrization.h"
#include "uv_grid.h"
added
vcg::face::Normal3f,
vcg::face::Qualityf
on ParamFace
and
vcg::vertex::CurvatureDirf
on ParamVertex
for Quad processing
2009-08-28 10:01:54 +00:00
Paolo Cignoni cignoni
b0ab1a2d76
added a compacting pre save to avoid wrong deleted face management in dae export...
2009-08-28 07:26:23 +00:00
Paolo Cignoni cignoni
e5f3f42747
Yet another code cleaning pass to improve readability of critical code in texture quadric simplification
2009-08-27 05:57:19 +00:00
Paolo Cignoni cignoni
f3fc39e430
Yet more refactoring of the quadric texture simplification core
2009-08-26 00:11:21 +00:00
Paolo Cignoni cignoni
0bba66cb7f
Other code cleaning to improve readability of critical code.
2009-08-25 22:31:31 +00:00
Paolo Cignoni cignoni
20d574a06a
Needed Code Cleaning to remove unnecessary new/allocations
2009-08-25 07:13:07 +00:00
Paolo Cignoni cignoni
82c2f8321f
Sometimes (in collada) the texture names could have been encoded with a url-like style
...
Added another texture loading attempt that should be harmless (e.g. replacing spaces with '%20')
2009-08-24 06:08:49 +00:00
Nico Pietroni nicopietroni
cf4d0f24d8
first release version
2009-08-20 15:08:12 +00:00
Nico Pietroni nicopietroni
3c8bd77d72
corrected function Preconditions
2009-08-20 15:06:52 +00:00
Nico Pietroni nicopietroni
83cf9a7d08
removed comments
2009-08-20 15:05:24 +00:00
Nico Pietroni nicopietroni
9395111e86
- added new functions of IsoParametrization class:
...
* getSharedVertices(AbstractFace *f0,AbstractFace *f1,AbstractVertex *shared[3])
* InterpolationSpace(const int &I0,const int &I1,int &IndexDomain)
* Theta(const int &I,const vcg::Point2<ScalarType> &UV,CoordType &pos3D)
* inv_GE1_fixedI(const int &DiamIndex,const vcg::Point2<ScalarType> &UVDiam,const int &I,vcg::Point2<ScalarType> &bary)
- erased comments at the end of the file
2009-08-20 15:04:13 +00:00
Nico Pietroni nicopietroni
e6717550d6
added 2 includes
2009-08-20 14:58:34 +00:00
Paolo Cignoni cignoni
59505c502b
documented with doxygen.
...
Memory leak caught and documented.
An alternative Matching() function that use clustering to save time is provided, but commented in code. To use it is sufficient uncomment this one and comment the one with the same name.
2009-08-18 15:44:12 +00:00
Paolo Cignoni cignoni
6ef5d14e13
Enhanched bronze shader, better interface to set up params
2009-08-18 01:08:38 +00:00
Stefano Marras marras
b9856b6d8a
Fixed minor bugs. Splitting of border face revised.
2009-08-04 09:46:30 +00:00
Paolo Cignoni cignoni
a7b7801ad2
added a missing const (for gcc compiling)
2009-08-03 11:45:08 +00:00
Paolo Cignoni cignoni
831f7ae38b
-Changes in random generator object initialization
...
-short consensus's threshold removed. Number of full consensus performed increased to 15
-a consensus percentage is always shown in the log pane, although alignment process fails.
-Features are automatically computed by the alignment process if they were not computed yet.
2009-08-02 21:54:02 +00:00
Paolo Cignoni cignoni
26a66b3d2c
Function LocRnd has been split in two functions, one to create and initialize a static random generator object, and another one to retrieve a random number. They are used to perform normal equalized sampling.
2009-08-02 21:47:13 +00:00
Paolo Cignoni cignoni
dfbecaa6f1
cleaned up a bit. Still require quality in reasonable ranges...
2009-07-29 00:04:08 +00:00
Paolo Cignoni cignoni
c70eeeb3d6
corrected some other bugs in the special uniform management
2009-07-29 00:01:14 +00:00
Paolo Cignoni cignoni
a434fc11d0
Consensus class has been renamed and moved in vcg lib. Code has been changed accordingly to import and use the new class. I took the chance to delete some unused stuff as .h, typedefs, functions etc...
2009-07-28 23:12:26 +00:00
Paolo Cignoni cignoni
b70ff92bd7
corrected small error that prevented the correct use of quality min special uniform
2009-07-28 23:05:29 +00:00
Paolo Cignoni cignoni
0ecb9530b0
changed the definition of the geometry texture(normal + depth) using a GL_RGBA16 texture.
...
tuned some parameters in ssao.frag and added a control on blur.frag to remove white fragments
2009-07-28 16:44:56 +00:00
Gianpaolo Palma gianpaolopalma
4fb905ca58
Add partial support to node Material (only diffuseColor).
2009-07-28 15:34:16 +00:00
Paolo Cignoni cignoni
abb4371df2
better version of the zbrush like shader
2009-07-28 10:50:12 +00:00
Paolo Cignoni cignoni
c8d2386875
re-arranged the rendering loop in order to correctly pass all the per vertex attributes
2009-07-28 08:53:44 +00:00
Paolo Cignoni cignoni
0493a797da
bug fixed in Draw function in render_rfx.h and calculation of min and max quality to pass as Special Uniforms
2009-07-28 07:31:59 +00:00
Paolo Cignoni cignoni
b7b1c77add
new version of ZBrush.rfx
2009-07-28 07:29:05 +00:00
Paolo Cignoni cignoni
ba35f900f0
Changed ambient occlusion value stored into quality, now it is a 0..1 number that represents the portion of the sphere that is visibile from that point (At least it should). so usually 0 means that such point is not visible and flat exposed areas have 0.5 value.
2009-07-27 21:43:25 +00:00
Paolo Cignoni cignoni
ce15cc4191
Added ZBrush.rfx shader.
2009-07-27 20:36:35 +00:00
Paolo Cignoni cignoni
fa9b57e3bf
Added special uniforms MSHLB_QUALITY_MIN and MSHLB_QUALITY_MAX to perform ZBrush.rfx shader
...
Temporarily uniforms above assume respectively value 0.0 and 128.0
2009-07-27 20:34:59 +00:00
Paolo Cignoni cignoni
e2f9233c41
first draft of SSAO
2009-07-27 17:36:32 +00:00
Paolo Cignoni cignoni
616a4096a2
deleted prints for debug. BranchAndBound is a stand alone function.
2009-07-26 20:40:39 +00:00
Paolo Cignoni cignoni
4fe5ff2a76
refactoring: ransac loop has been divided in more loops, each one performing a specific task, such as base selection, matching, ranking, short consensus and full consensus. timer in millisec have been added to each loop. many log infos have been added in DEBUG mode. Random generator for base selection has been initialized with iteration, instead of clock() that is dangerous 'cause iterations are really close one another.
2009-07-24 15:28:36 +00:00
Paolo Cignoni cignoni
93020b9c89
disable alpha writing in vsm to avoid the creation of snapshot with semitransparent shadowed areas
2009-07-24 13:02:21 +00:00
Paolo Cignoni cignoni
2d58517708
First working version of the blurred Variance Shadow Mapping (thanks to Brondi, Giovinazzo)
2009-07-24 10:25:38 +00:00
Paolo Cignoni cignoni
e89c29d006
first draft of ssao
2009-07-24 08:55:26 +00:00
Paolo Cignoni cignoni
e34a4e4c35
refactoring: function to select bases has been moved out from matching procedure. this should help us to investigate the importance/efficiency of base selection in the alignment process. major changes will follow in next commit
2009-07-23 14:11:24 +00:00
Paolo Cignoni cignoni
20364bcf95
cleaned file's version without include not existent.
2009-07-23 13:11:41 +00:00
Paolo Cignoni cignoni
d297a52ae2
2009-07-23 12:43:39 +00:00
Paolo Cignoni cignoni
61dfedac77
fixed some bugs, added alpha blending for sm e vsm.
...
first working draft of vsm + blur...still some problems with little meshes
2009-07-23 12:34:56 +00:00