[TOOL] 32bit mesh to 16bit converter

Discussion area about developing or extending OGRE, adding plugins for it or building applications on it. No newbie questions please, use the Help forum for that.
Post Reply
Shamun
Gnoblar
Posts: 19
Joined: Sun Aug 01, 2010 12:45 am
Location: Israel

[TOOL] 32bit mesh to 16bit converter

Post by Shamun » Mon Oct 24, 2011 7:57 pm

I created a new tool that converts all the 32bit indices arrays to 16bit.
I developed it because OpenGL ES can't handle 32bit arrays and I needed high poly meshes.
It was developed specifically for my needs so you can make changes to adapt it to your needs.
Advices and bug fixes are welcome.

http://code.google.com/p/32to16/
0 x

User avatar
jacmoe
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 20570
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark
Contact:

Re: [TOOL] 32bit mesh to 16bit converter

Post by jacmoe » Mon Oct 24, 2011 8:02 pm

Made it sticky. :)
0 x
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.

dowi
Halfling
Posts: 48
Joined: Wed Sep 07, 2011 3:37 am

Re: [TOOL] 32bit mesh to 16bit converter

Post by dowi » Mon Oct 24, 2011 10:58 pm

thanks alot!
i used it for my iphone project and it did the trick
0 x

JDX_John
Gnome
Posts: 397
Joined: Sat Nov 08, 2008 1:59 pm

Re: [TOOL] 32bit mesh to 16bit converter

Post by JDX_John » Wed Nov 09, 2011 5:26 pm

Great tool - personally I'd like to suggest you might add this to MeshMagick?

How does your tool deal with meshes which can't simply be changed to 16bit... does it restructure them?
0 x

Shamun
Gnoblar
Posts: 19
Joined: Sun Aug 01, 2010 12:45 am
Location: Israel

Re: [TOOL] 32bit mesh to 16bit converter

Post by Shamun » Mon Nov 21, 2011 7:20 pm

yap it restructures the submesh by the render operation.
I haven't test all the cases so if you can post some feedback it will be great :)

By the way what is MeshMagic?
0 x

JDX_John
Gnome
Posts: 397
Joined: Sat Nov 08, 2008 1:59 pm

Re: [TOOL] 32bit mesh to 16bit converter

Post by JDX_John » Mon Nov 21, 2011 9:30 pm

Part of Ogre addons tools:
MeshMagick 0.6.0 - versatile Ogre mesh manipulation tool.
Copyright 2007-2008 by Daniel Wickert

Usage: MeshMagick [global_options] toolname [tool_options] infile(s) -- [outfile(s)]
Global options:
-help = Prints this help text
-help=toolname = Prints help for the specified tool
-list = Lists available tools
-no-follow-skeleton = Do not follow Skeleton-Link (if applicable)
-quiet = Supress all messages to cout.
-verbose = Print more detailed messages.
-version = Print meshmagick version.
Available Tools
===============

info - print information about the mesh.
meshmerge - Merge multiple submeshes into a single mesh.
optimise - Optimise meshes and skeletons.
rename - Rename different elements of meshes and skeletons.
transform - Scale, rotate or otherwise transform a mesh.
0 x

Post Reply