|
From: Alexander R. <a_r...@in...> - 2000-11-02 18:45:10
|
Hi, I am maintainer of tuxfleet.sourceforge.net TuxFleet is a free GPLd Space Fight Simulator in 3D. TuxFleet currently uses plib-ssg (Simple Scene Graph) for 3D rendering, but I have abstracted calls to plib-ssg in a class FleetScene, so I can optionally use other 3D renderers/scenegraphs like yours and look whichever is better etc. So, I'd like to try to use your SGL as an alternate scenegraph. To do that, I only have to modify class FleetScene - actually there are two implementations of FleetScene, one FleetSceneSSG (for plib-ssg) and the other FleetScene3dtk (based on lib3dtk, not fully working yet). I had a look at the examples in 'testsgl', especially at testLoaders, and I wrote a class FleetSceneSGL to implement it (see files in attachment). These files are only a quick 'draft', maybe you could do it better? If you'd like my game to be able to use your scenegraph, please download the TuxFleet source and have a look at the files fleet_scene* There you'll find the implementations of FleetSceneSSG and FleetScene3dtk. With your knowledge of SGL, it should be easier for you to implement FleetSceneSGL than me. If not, I could also need some more examples in testsgl. I need an example that loads two or three different .obj-models from disk, and displays them rotating/moving somehow, with an also moving camera. The 'testLoaders' example misses how to handle more than one object, and it also misses how to set position/rotating of those objects. With such an example (as few lines of code as possible ;-) ) it would be easier to implement FleetSceneSGL for me. But I've got some question and noticed a few things: * no documentation? * the draft of FleetSceneSGL compiles somehow (but not fully) if I don't set compiler-options, but if I use -Wall -W -g -pedantic -Wno-unused -Wtraditional -Wpointer-arith -Wconversion -Wstrict-prototypes gcc get's mad with the following errors (see attachment) * I had a short look at the sgl-source, what are the other loader file-formats? What is scm,xan,cmb filetypes? * do you know of good,free-to-use 3d modelling/tools,file format converters or 3d editors for windows or unix? I have found no 3D modeller I could handle (or pay for), do you know a easy-to-use thing for a modelling idiot like me? I need especially a 3d modeller/tool to wrap textures around meshes - I completely failed to do that in my life :-( I am also searching for converters, especially to convert 3do (Jedi Knight models) to 3ds,obj,dxf (I can only convert the meshes, but no textures) * when compiling (on redhat 6.2) I get the following warnings: /vast1/source/new/sgl/sgl/sglTraversal.hpp: In method `void sglTraversalState<fl oat>::setSortOrder<float>(const class vector<sglStatelet::StateEnum,__default_al loc_template<true,0> > &)': /vast1/source/new/sgl/sgl/sglTraversal.hpp:253: instantiated from `sglTraversa lState<float>::sglTraversalState<float>()' fleet_scene_sgl.cxx:96: instantiated from here /vast1/source/new/sgl/sgl/sglTraversal.hpp:263: warning: initialization to `sglS tatelet::StateEnum *' from `const sglStatelet::StateEnum *' discards const Hope to hear from you Alex PS: on my normal system, I've installed gcc/libstdc of Rehhat6.2 - but he keeps saying: Linking bin/platform.mylin20/sglfly.exe lib/platform.mylin20/libsgl.so: undefined reference to `streambuf::seekpos(long, int)' lib/platform.mylin20/libsgl.so: undefined reference to `streambuf::seekoff(long, ios::seek_dir, int)' lib/platform.mylin20/libsgl.so: undefined reference to `streambuf::sys_seek(long, ios::seek_dir)' collect2: ld returned 1 exit status Funnily, the binaries of the examples work on my system - but I can't link them :-( Any Ideas? I'm getting mad over it :-( -- Alexander Rawass Email: ale...@us... Project Homepage: http://tuxfleet.sourceforge.net ...but some day you'll be a STAR in somebody else's SKY... |