Vertex.uv. Vertex.uv.u = GetMeshMemblockVertexU(id, v) Ioffset = GetMemblockInt(id, 20) + (n * 12) lor = MakeColor(GetMeshMemblockVertexRed(id, i), GetMeshMemblockVertexGreen(id, i), GetMeshMemblockVertexBlue(id, i), GetMeshMemblockVertexAlpha(id, i)) Vertex.uv.v = GetMeshMemblockVertexV(id, i) Vertex.uv.u = GetMeshMemblockVertexU(id, i) TPoly = tPoly.vertex is table containing information for the 3 vertex that make up the poly N = poly (from 0 through (GetPolysFromMemBlock() - 1)) TPoly = GetPolyFromMemblock(id as integer, n as integer) Integer = The number of polys in this mesh Integer GetPolysFromMemBlock(id as integer) Dont forget to read the BUILD.md document to learn how to get started. WriteLine(f, "vn "+str()+" "+str()+" "+str()+" ") You can checkout the repository to easily add features you need, or just for curiosity If you think that your new code can bring benefits to the whole community, dont hesitate to create a pull request, so we can test your code and include it in the main package. ![]() Vertex.uv.v = GetMeshMemblockVertexV(mem, v)Įxt = GetStringToken(name, ".", CountStringTokens(name, ".")) Vertex.uv.u = GetMeshMemblockVertexU(mem, v) Verticies = GetVerticiesFromMemblock(mem) - 1 Indicies = GetIndiciesFromMemblock(mem) - 1 Mem = CreateMemblockFromObjectMesh(id, mesh) SaveToObj(id, 1, GetDocumentsPath()+"/newtrack.obj")įunction SaveToObj(model as integer, mesh as integer, filename as string) ![]() Id = LoadObject("raw:"+GetDocumentsPath()+"/track.obj") SetScissor( 0,0,0,0 ) // use the maximum available screen space, no black borders SetSyncRate( 30, 0 ) // 30fps instead of 60 to save battery SetOrientationAllowed( 1, 1, 1, 1 ) // allow both portrait and landscape on mobile devices SetVirtualResolution( 1024, 768 ) // doesn't have to match the window SetWindowAllowResize( 1 ) // allow the user to resize the window
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |