Commit Graph

25 Commits (master)

Author SHA1 Message Date
cutealien 917379f453 Collada loader now handles texture-names with escape characters.
Names like "my%20texture.png" will now load "my texture.png". Collada filenames are in xs:anyURI format.
xs:anyURI is used in more places, but we don't support any other file-loading inside Collada so far, so that was the most important place to fix.
Also added/fixed a few comments.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5793 dfc29bdd-3216-0410-991c-e03cc46cb475
2019-03-25 22:32:32 +00:00
cutealien 47cebab98f Add IColladaMeshWriter::setUnit to allow exporting a unit-to-meter-ratio and name.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5723 dfc29bdd-3216-0410-991c-e03cc46cb475
2019-02-01 15:52:29 +00:00
cutealien 43f75cbd9f Add function IColladaMeshWriter::SetParamNamesUV.
A workaround for broken Collada importers which insist on specific names. 
Seems SketchUp insists on UV's being called "S" "T" or it won't show textures.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5695 dfc29bdd-3216-0410-991c-e03cc46cb475
2019-01-28 16:05:39 +00:00
cutealien 2f127c2773 Switch Collada writer to utf8 xml's.
Reasons are that it's more typical to use utf8 for xml's and that it allows SketchUp (which doesn't support xml's with wide-chars) can import our Colladas now.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5693 dfc29bdd-3216-0410-991c-e03cc46cb475
2019-01-25 20:57:39 +00:00
cutealien f6da59daf3 IColladaMeshWriter::writeScene got an additional flag to decide if root should be written.
Default stays as it was - a roots is written when it's not the SceneManager root.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5691 dfc29bdd-3216-0410-991c-e03cc46cb475
2019-01-24 15:39:45 +00:00
cutealien bff50c751d Spelling fixes.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5327 dfc29bdd-3216-0410-991c-e03cc46cb475
2016-08-13 12:50:06 +00:00
hybrid 9f7227b7ad Some whitespace adjustment.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4500 dfc29bdd-3216-0410-991c-e03cc46cb475
2013-04-05 21:55:05 +00:00
hybrid 5de4ef87f6 Merged from 1.8 branch, revisions 4393-4484: Compiler issues with certain compilers fixed, localtime bug under windows7 fixed.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4485 dfc29bdd-3216-0410-991c-e03cc46cb475
2013-03-27 13:43:52 +00:00
cutealien d8611d8279 Add IColladaMeshWriter::findGeometryNameForNode
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4402 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-12-14 18:26:49 +00:00
hybrid 0a2330890a Bump copyright to 2012
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4320 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-09-30 23:38:54 +00:00
cutealien efa93883e2 Remove code causing compile warning on gcc.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4294 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-08-19 19:19:56 +00:00
cutealien 86bd1032f9 ColladaExporter does now cache material-names on export by default which leads to smaller .dae files.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4279 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-08-15 10:36:25 +00:00
cutealien 9459acf1ee Added IColladaMeshWriterProperties::useNodeMaterial to allow handling custom ISceneNode implementation on export.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4278 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-08-15 08:49:46 +00:00
cutealien f1aea87c1a - IColladaMeshWriter now writes a scene by default (most tools can't handle .dae's otherwise)
- In CColladaMeshWriter the texcoords in in mesh-source and those in texture (for effects) don't use the same name anymore. bind_vertex_input does handle that connection and having the same name had complicated the code (and was confusing)
- In Collada export mesh-geometries can now be copied when different materials are using the same mesh. Reason was that many tools (all I tested so far including Irrlicht) can't handle such materials otherwise.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4277 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-08-14 20:17:39 +00:00
cutealien 78e936aae4 Simplify the IColladaMeshWriterNames interface somewhat and improve documentation.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4270 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-08-09 18:05:52 +00:00
cutealien f09f35e082 Make nameFor functions in IColladaMeshWriterNames non-const as it's not necessary in the writer and we don't know what people will do with it (and because I already needed it non-const to avoid ugly mutable variables in writing the example).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4269 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-08-09 12:36:50 +00:00
cutealien 8fbc2fb8fc - Colladawriter does now reset correctly (calling writeMesh twice failed before and writeScene twice didn't write light-nodes second time)
- Add some callbacks that allow users to use custom-names on writing
(I'll probably add an example as well soon for how to use all that - the problem is that there don't seem to be 2 tools out there interpreting Collada the same way and so we have to be rather flexible on export. And yeah - our own import also still  has way to go...)

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4268 dfc29bdd-3216-0410-991c-e03cc46cb475
2012-08-08 17:04:26 +00:00
hybrid 68f2170d40 Avoid unescaped xml tags in comments
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3976 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-11-01 08:42:30 +00:00
hybrid 0e61ebeb98 Remove trailing commas in enums.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3872 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-07-01 22:58:38 +00:00
cutealien 4533956fab ColladaMeshWriter: Add light export. Meshname handling cleaned up.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3868 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-06-23 17:40:27 +00:00
cutealien 84291fd165 ColladMeshWriter: Unified functions in IColladaMeshWriterProperties some more. Can now export reflection and refraction and more flexible color-mapping (which means all effects can now be written). Also some fixed some schema-breaking when writing node-id's.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3865 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-06-22 19:49:14 +00:00
cutealien 87f8637183 - add overloaded map::getValue which can return a reference
- simplified IColladaMeshWriterProperties interface
- ColladaMeshWriter can now write complete scenes as well as just writing single meshes.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3859 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-06-21 17:04:43 +00:00
hybrid 438baffc3e Fix some warnings from recent gcc versions.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3852 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-06-16 12:06:27 +00:00
cutealien 6296a1c1ff ColladaMeshWriter - add infrastructure to export transparent textures.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3851 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-06-15 15:28:02 +00:00
cutealien ac6e07f87d Make ColladaMeshWriter more flexible by giving user more control over several settings.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3850 dfc29bdd-3216-0410-991c-e03cc46cb475
2011-06-15 10:47:42 +00:00