Comments (4)
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.
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.
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.
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)
- Crashes with OGRE_THREAD_PROVIDER != 0 HOT 2
- cmake 3.14 doesn't generate Makefiles HOT 1
- MSVC build broken HOT 3
- Enable C++11 and replace Boost threads and regex HOT 1
- port some widgets to imgui
- OFS must die! HOT 3
- Include media/projects HOT 2
- CMake Error HOT 5
- class Ogre::Camera does not have lookAt member function HOT 1
- unresolved symbol "__declspec(dllimport) public: void __cdecl Ogre::SceneNode::setVisible(bool,bool)"
- error C2491: “OgreBites::ApplicationContextQt::staticMetaObject”: dllimport static member is not allowed in moc_OgreApplicationContextQt.cpp HOT 1
- std::tolower(key->key())
- std::length_error in qtOgitor HOT 3
- undefined type Ogre::UTFString HOT 1
- “pthread.h”: No such file or directory
- 就单纯的想测试下 HOT 3
- does the ogitor support ogre 2.x ? HOT 2
- Cannot get scene to render properly. HOT 1
- Upgrade to Ogre 14 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ogitor.