GithubHelp home page GithubHelp logo

Comments (4)

kPYKx7Ddw4n1aIKZ avatar kPYKx7Ddw4n1aIKZ commented on September 27, 2024

I think this would be useful and possible, but not trivial. As far as I can tell, Ogitor can read and write .scene files. The Ogre .scene loader can only read them (if I'm not wrong) and populate them directly in a SceneNode. One could of course just keep the .scene files writing part and replace the reading part.
Then different XML libraries (TinyXML and pugixml) would be used, which may not be a problem, but one could also port the writing part to pugixml.
Furthermore, I think that some values are kept as metadata in Ogitor, so an abstraction might help.

from ogitor.

paroj avatar paroj commented on September 27, 2024

making it use the ogre plugin has proved trivial (see PR). However restoring the metadata is not. The broken attempt that is checked in is as far as I could get without the whole input to silently fail.

On the plus side, the original code crashes when trying to import a blender2ogre generated .scene file.

from ogitor.

kPYKx7Ddw4n1aIKZ avatar kPYKx7Ddw4n1aIKZ commented on September 27, 2024

However restoring the metadata is not.

Thats why I think that it would make sense to introduce an abstraction (maybe in the code of the .scene loader plugin). Maybe some kind of data access object / data transfer object pattern or the strategy pattern would be suitable to easily access the metadata and improve reusability.

However, I don't know if that would fit into the existing class hierarchy for loading scenes in Ogre.

from ogitor.

paroj avatar paroj commented on September 27, 2024

Thats why I think that it would make sense to introduce an abstraction (maybe in the code of the .scene loader plugin). Maybe some kind of data access object / data transfer object pattern or the strategy pattern would be suitable to easily access the metadata and improve reusability.

I think the need of such an intrusive mechanism is a design flaw on the ogitor side, which we should not give into.

Fortunately, I made was able to properly connect the metadata and importing the default blender scene now works.

from ogitor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.