Paolo Cignoni
a745b77c04
Added default initialization of materials in io importer
2017-05-12 18:21:55 +02:00
Paolo Cignoni
66fde513b1
Merge pull request #22 from johnmaf/bugfix/ambient-map
...
Don't assign MTL ambient map value to diffuse map
2017-05-12 17:08:04 +02:00
Paolo Cignoni
43f114d237
Heavy refactoring of the OBJ export
...
The recent material attribute changes had some issue when exporting
mesh newly created.
2017-05-12 16:23:12 +02:00
John Senneker
d885a45bbd
Formatting
2017-05-12 10:21:22 -04:00
John Senneker
446b0fde06
Don't assign MTL ambient map value to diffuse map.
...
This fixes a bug in which a map_Ka statement appears after a map_Kd, in
which case the former will be assigned as the diffuse map of the
imported mesh, when it should be the latter.
2017-05-09 11:52:40 -04:00
Luigi Malomo
066762521a
removed harmless warnings
2017-04-16 16:24:00 +02:00
Paolo Cignoni
d7e9209a4f
Merge pull request #6 from johnmaf/feature/specular-attributes
...
Add material attributes in OBJ importer
2017-04-12 10:29:46 +02:00
Marco Callieri
c547c56a0d
fix for space in material name, filename, texture
...
added support for space in material name, material filename, texture
name
2017-02-21 17:54:47 +01:00
John Senneker
0ee03d276d
Fix clang compiler errors (">>" -> "> >")
2016-12-12 18:07:20 -05:00
Paolo Cignoni
095a697535
added a check for empty lines in obj (to avoid out of bound accesses)
2016-11-24 18:02:07 +01:00
John Senneker
dc3f714b34
Add a per-mesh attribute in OBJ importer to hold a
...
std::vector<Material>, and a per-face attribute to hold an index into
that vector.
2016-11-22 16:21:57 -05:00
John Senneker
1abba4a694
Initial commit
2016-11-21 18:36:20 -05:00
Paolo Cignoni
f4feeb5d5b
Added support of backslash terminated lines in OBJ
2016-11-18 09:16:52 +01:00
Paolo Cignoni
32333eba24
Huge copyright sanitization of the header files of vcg folder.
2016-06-13 05:29:25 +00:00
granzuglia
c54c85768a
- fixed some minor bugs
2016-05-22 15:40:41 +00:00
Paolo Cignoni
9dc93f2b24
small bug in mask initialization for obj files
2015-12-29 07:13:51 +00:00
Paolo Cignoni
63e67d5131
Updated to reflect the Normal() -> TriangleNormal() change
2014-11-12 00:21:16 +00:00
Luigi Malomo
a78ac53814
added edge mesh support to OBJ importer
...
corrected a type to avoid clang compiler issues
2014-09-06 11:06:23 +00:00
Paolo Cignoni
f6574c7abe
Added a fallback to the standard fan tessellator for managing the cases where the glu::tessellator can fail (better than nothing...)
2014-06-17 13:07:07 +00:00
Nico Pietroni
017e289d3e
added several instructions to close the stream on file once opened and read is complete
2014-04-08 08:35:17 +00:00
granzuglia
89f4146e2c
- fixed crash on reading obj with material file
2014-02-21 15:16:40 +00:00
Luigi Malomo
5e22249c96
2014-02-19 18:58:06 +00:00
Paolo Cignoni
303d4e1fca
factored out the internal fan tessellator from the obj to a generic place to be used also in other importers
2013-11-25 12:49:12 +00:00
Paolo Cignoni
2b84f16b45
Removed a questionable assert in the splittoken of the OBJ importer
2013-11-11 13:21:05 +00:00
Paolo Cignoni
3657b94ab7
Corrected a bug in the loading of normals when loading an obj with normals but without texcoords
2013-11-08 15:50:51 +00:00
mtarini
f1761e86b7
Better error handling + error msg. One assert turned into an error (silva's quads). Faces with < 3 verts and faces with repeated vert now just ignored (non critical errors).
2013-08-21 23:07:25 +00:00
Paolo Cignoni
e77e13a8fe
Improved management of fauxbit for quad and polygonal meshes in OBJ (did not set the high level polygonal bit) and OFF (wrong faux bits for polygonal faces with more than 4 sides)
2013-04-12 09:49:51 +00:00
granzuglia
a6f71e32dd
- removed bug on LoadMask
...
: from if (oi.numTexCoords == oi.numVertices) to if (oi.numNormals == oi.numVertices)
2013-01-24 11:43:43 +00:00
Marco Di Benedetto
b70569feb8
fixed bugs in OBJ importer that caused crashes when the v/vt/vn vertex pattern was not the same for all vertices in the file.
2012-12-05 17:38:16 +00:00
Paolo Cignoni
cccc066735
removed harmless warnings
2012-12-02 14:53:37 +00:00
Paolo Cignoni
4dbbb9384a
better check of emtpy line skipping in obj parsing
2012-10-31 21:03:05 +00:00
Paolo Cignoni
f45e0cec3a
Changed all the MeshType::HasSomething() into the now standard tri::HasSomething(MeshType &m)
2012-01-20 07:44:55 +00:00
ganovelli
cedf5fb284
bug fixing:
...
- mixup of nomes Edge and Face on the components.
- possibly use of empty vector in import_obj.h
Thanks to nagaokagetora for showing them
2011-10-25 10:03:10 +00:00
ganovelli
fce10a34fa
point3f to point3d conversion error.
2011-10-21 12:18:18 +00:00
Paolo Cignoni
d019261682
harmless gcc/clang warnings
2011-10-15 21:30:41 +00:00
Paolo Cignoni
3665268aa4
Significant refactoring. Cleaned up the non glutesselator code. Quad are split in a simpler way. Support for the qobj format preserved...
2011-10-13 08:02:10 +00:00
Paolo Cignoni
2fe129645b
Rolled back
2011-10-05 15:04:40 +00:00
granzuglia
f49691377c
added missing include file and namespace prefix
2011-04-13 12:29:21 +00:00
Paolo Cignoni
4b0fb8bb2e
Ongoing corrections of include paths to comply the new folder arrangement
2011-04-03 20:55:22 +00:00
Paolo Cignoni
3eb92cbe8a
harmless gcc warnings
2011-02-17 11:38:01 +00:00
granzuglia
b75a2c77a0
removed crashes when a not well-formed mtl file has been opened.
2011-01-25 09:10:34 +00:00
Paolo Cignoni
423fce1321
automatically detect the color format (integer between 0 and 255 or
...
floats between 0 and 1)
2011-01-17 10:06:15 +00:00
Paolo Cignoni
dfba841714
add support for vertex per color with OBJ files (read/write)
2011-01-13 18:04:32 +00:00
Paolo Cignoni
4ee60382b0
put qt debug code inside guards
2010-03-18 10:20:08 +00:00
mtarini
54ca153009
mini-changes at various importer exporters, to maximize compatibility
2010-03-13 00:52:17 +00:00
Paolo Cignoni
73ed783085
Significant change. Now obj with non-convex polygonal faces are correctly managed (and faux edges are supported too). Warning it requires GLU because it relies on glu tessellation.
2009-12-17 17:49:51 +00:00
Marco Di Benedetto
08f9b6a4b3
prevented cast/unused/uninitialized warnings and some indentation work.
2009-12-01 17:37:45 +00:00
Marco Di Benedetto
8e9062b12b
1) fixed token parsing : SplitToken() should take the original IO mask and not the clamped (with mesh attributes) one.
...
2) some indentation work.
2009-11-22 19:09:53 +00:00
Marco Di Benedetto
1994b5b493
removed implicit cast warning.
2009-10-21 18:43:51 +00:00
Paolo Cignoni
d3b6444cb4
added polygonal bit mask setting
2009-10-01 15:46:54 +00:00