steve3d Posted November 18, 2010 Posted November 18, 2010 I need to create a generic spline node in engine. so I use the following steps. create a class for WorldSpline including load/save save/restoreState, load/saveWorld add another enum like WORLD_SPLINE in node.h and set the world_end enum to correct value export this worldspline class in worldinterpreter.cpp also export it's type id decleared in node.h Do I need more extra steps?? it seems the above steps makes entire engine not work, the log have this: Interpreter::restore_state(): different number of variablesthen there is nothing loaded in world.what's wrong?
steve3d Posted November 18, 2010 Author Posted November 18, 2010 OK, I've found the problem, I didn't add the type name in node.cpp.
a.andreev Posted February 5, 2013 Posted February 5, 2013 Hi Steve! Maybe it's not relative with the topic, but we've trying to find a way to generate .spline files without 3DMax. Is that what you have done? If so, can you give an advice how to relize that? :)
manguste Posted February 22, 2013 Posted February 22, 2013 Alexey, You can give a look at WorldTransform class. It allows to load a spline, as well as add points to it or modify them.
Recommended Posts