OgreAssimpConverter

A place to show off your latest screenshots and for people to comment on them. Only start a new thread here if you have some nice images to show off!
Transporter
Minaton
Posts: 933
Joined: Mon Mar 05, 2012 11:37 am
Location: Germany
x 110

Re: OgreAssimpConverter

Post by Transporter »

  • Update support for boost 1.48 to 1.53
  • Optional ZLIB switch
  • Update assimp include dir detection (config.h is a common name)
  • Fix to compile ogreassimp with ogre 1.9.0
  • Bugfix in material creation (emissive)
  • Add LOD
  • Add shading modes
  • Fix signed/unsigned warnings
  • Prepare for shader programs
  • Update website url
EDIT: I'll patch my fork https://bitbucket.org/transporter/ogreassimp and create pull requests.
User avatar
jacmoe
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 20570
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark
x 179
Contact:

Re: OgreAssimpConverter

Post by jacmoe »

I've seen it, great work!

I'll get around to accepting the pull request RSN - thanks. :)
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.
Transporter
Minaton
Posts: 933
Joined: Mon Mar 05, 2012 11:37 am
Location: Germany
x 110

Re: OgreAssimpConverter

Post by Transporter »

You are welcome! :)
Transporter
Minaton
Posts: 933
Joined: Mon Mar 05, 2012 11:37 am
Location: Germany
x 110

Re: OgreAssimpConverter

Post by Transporter »

I've done another pull request to update boost handling.
Pulas
Halfling
Posts: 61
Joined: Sat Oct 29, 2011 9:39 am

Re: OgreAssimpConverter

Post by Pulas »

Does OgreAssimpConverter support converting ogre mesh to common 3d file? for example to STL format file.
If not, is there any existing library to do this?
Thanks in advance.
Transporter
Minaton
Posts: 933
Joined: Mon Mar 05, 2012 11:37 am
Location: Germany
x 110

Re: OgreAssimpConverter

Post by Transporter »

OgreAssimpConverter coverts varous file formats to ogre meshs. Of course you can create a program to read ogre meshs and export them to a file format at the export list: http://assimp.sourceforge.net/main_features_export.html
Pforce
Kobold
Posts: 27
Joined: Wed Apr 07, 2010 12:45 am

Re: OgreAssimpConverter

Post by Pforce »

This is not directly related to OgreAssimpConverter, but thought people might be interested as you guys are using Assimp.

I recently implemented Ogre binary importer and rewrote the XML importer to Assimp. My pull request was accepted so the quite soon to be released Assimp 3.1 supports reading Ogre binary and XML for meshes, skeletons and materials (text ofc, this I did not implement but cleaned up the code and some bugs from it too).

Relevant pull request: Initial Ogre related code cleanup and fixes https://github.com/assimp/assimp/pull/266 Actualy binary importer implementation and XML importer rewrite https://github.com/assimp/assimp/pull/280

As said this is not relevant to your project as you are doing the exact reverse, Assimp >> Ogre. While what I did was Ogre >> Assimp. You could now do Ogre >> Assimp >> Ogre, even if it makes no sense :) But hopefully the binary support will be useful for other 3D engines/projects that want to support Ogre stuff.
gridqian
Gnoblar
Posts: 4
Joined: Tue Mar 10, 2015 7:46 am

Re: OgreAssimpConverter

Post by gridqian »

Hi Sirs,
I am a new guy for the ogre. I want to change some other 3d format model to ogre. So I come to OgreAssimpConverter, but I found I can't find it in bitbucket by the link: https://bitbucket.org/jacmoe/ogreassimp
The project is dead? Or is moved to other website?

Thanks!

Grid
User avatar
spacegaier
OGRE Team Member
OGRE Team Member
Posts: 4304
Joined: Mon Feb 04, 2008 2:02 pm
Location: Germany
x 135
Contact:

Re: OgreAssimpConverter

Post by spacegaier »

Ogre Admin [Admin, Dev, PR, Finance, Wiki, etc.] | BasicOgreFramework | AdvancedOgreFramework
Don't know what to do in your spare time? Help the Ogre wiki grow! Or squash a bug...
User avatar
Herb
Orc
Posts: 412
Joined: Thu Jun 04, 2009 3:21 am
Location: Kalamazoo,MI
x 38

Re: OgreAssimpConverter

Post by Herb »

@Pforce - Thanks for posting that. I have a program using Ogre where I want to export a procedurally made model in the editor to multiple formats from the internal Ogre format. This sounds exactly what I need. ;) I'll check it out!
gridqian
Gnoblar
Posts: 4
Joined: Tue Mar 10, 2015 7:46 am

Re: OgreAssimpConverter

Post by gridqian »

spacegaier wrote:It was moved here: https://bitbucket.org/ogreaddons/ogreassimp
Thank you very much!
I came to the codes of ogreaddons/ogreassimp, but I found it is 'C' code.
OgreAssimpConverter is a command line, right?
It means I need to make or build these codes, then get a excutable command line tool?
Sorry for the stupid question because I can't write 'C' code.
gridqian
Gnoblar
Posts: 4
Joined: Tue Mar 10, 2015 7:46 am

Re: OgreAssimpConverter

Post by gridqian »

spacegaier wrote:It was moved here: https://bitbucket.org/ogreaddons/ogreassimp
And I google the cmake, and install cmake on my mac laptop,
download the source codes, run
cmake .
Then I met the error as bellow, It means I need to download ogre codes at first?
Only need the ogre source codes?
Thanks a lot!

"By not providing "FindOGRE.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "OGRE", but
CMake did not find one.

Could not find a package configuration file provided by "OGRE" with any of
the following names:

OGREConfig.cmake
ogre-config.cmake

Add the installation prefix of "OGRE" to CMAKE_PREFIX_PATH or set
"OGRE_DIR" to a directory containing one of the above files. If "OGRE"
provides a separate development package or SDK, be sure it has been
installed.
"
gridqian
Gnoblar
Posts: 4
Joined: Tue Mar 10, 2015 7:46 am

Re: OgreAssimpConverter

Post by gridqian »

Hi all,

I use some tools convert a JT file to a DXF, then use ogre assimp converter to convert the DXF to mesh and materail files. But I found only there are these two files, I can't display the 3D model correctly. It needs the scene file. But I don't know how to get a right scene file from a JT or DXF. The ogre assimp converter only can be used to convert some 3d model to mesh and material files. How about the scene file? What method I can get a right scene for the 3D model?

Thanks all!
Grid
Transporter
Minaton
Posts: 933
Joined: Mon Mar 05, 2012 11:37 am
Location: Germany
x 110

Re: OgreAssimpConverter

Post by Transporter »

Scene files are not supported by assimp. You have to create your own scene generator.
Seranth
Gnoblar
Posts: 15
Joined: Mon Jul 11, 2016 1:50 am
x 1

Re: OgreAssimpConverter

Post by Seranth »

gridqian wrote:
spacegaier wrote:It was moved here: https://bitbucket.org/ogreaddons/ogreassimp
And I google the cmake, and install cmake on my mac laptop,
download the source codes, run
cmake .
Then I met the error as bellow, It means I need to download ogre codes at first?
Only need the ogre source codes?
Thanks a lot!

"By not providing "FindOGRE.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "OGRE", but
CMake did not find one.

Could not find a package configuration file provided by "OGRE" with any of
the following names:

OGREConfig.cmake
ogre-config.cmake

Add the installation prefix of "OGRE" to CMAKE_PREFIX_PATH or set
"OGRE_DIR" to a directory containing one of the above files. If "OGRE"
provides a separate development package or SDK, be sure it has been
installed.
"
I realize this is a bit late, but what you need to do is grab the ogre3d source code first, compile it, then tell this project during compilation where it's at.

For example, your command could look like this:
mkdir build && cd build <- always build in another directory than the source directory
cmake -DOGRE_HOME=/path/to/ogre .. <- the -D lets you pass a variable to cmake, and OGRE_HOME is a variable found in your FindOGRE.cmake file. If you don't have one you can google it and find it, there's also a FindOGRE.cmake file inside the Ogre3D sources.

where /path/to/ogre is the directory that contains the lib and include directories where Ogre is installed.
Post Reply