Commit b32da4e9 authored by hybrid's avatar hybrid

Many new features, e.g. (partial) planar mapping support and discontinuous...

Many new features, e.g. (partial) planar mapping support and discontinuous texture coords (loosely based on Auradrummers code). Best thing is still to export only real UV coords.
Still a problem with normals, although they are now generated with Irrlicht's meshmanipulator methods.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2182 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 57c16f70
This diff is collapsed.
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
#include "IMeshLoader.h" #include "IMeshLoader.h"
#include "SMeshBuffer.h" #include "SMeshBuffer.h"
#include "irrString.h" #include "irrString.h"
#include "irrMap.h"
namespace irr namespace irr
{ {
...@@ -53,6 +52,7 @@ private: ...@@ -53,6 +52,7 @@ private:
void readObj1(u32 size); void readObj1(u32 size);
void readTagMapping(u32 size); void readTagMapping(u32 size);
void readVertexMapping(u32 size); void readVertexMapping(u32 size);
void readDiscVertexMapping (u32 size);
void readObj2(u32 size); void readObj2(u32 size);
void readMat(u32 size); void readMat(u32 size);
u32 readString(core::stringc& name, u32 size=0); u32 readString(core::stringc& name, u32 size=0);
...@@ -68,8 +68,13 @@ private: ...@@ -68,8 +68,13 @@ private:
core::array<core::vector3df> Points; core::array<core::vector3df> Points;
core::array<core::array<u32> > Indices; core::array<core::array<u32> > Indices;
core::array<core::stringc> UvName;
core::array<core::array<u32> > UvIndex;
core::array<core::stringc> DUvName;
core::array<core::array<u32> > VmPolyPointsIndex;
core::array<core::array<core::vector2df> > VmCoordsIndex;
core::array<u16> MaterialMapping; core::array<u16> MaterialMapping;
core::map<core::stringc, u32> VMap;
core::array<core::array<core::vector2df> > TCoords; core::array<core::array<core::vector2df> > TCoords;
core::array<tLWOMaterial*> Materials; core::array<tLWOMaterial*> Materials;
core::array<core::stringc> Images; core::array<core::stringc> Images;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment