|
From: Scott M. <mcm...@ca...> - 2000-11-02 22:05:21
|
Alexander Rawass wrote: > > 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? I will look at them. > 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. Loading two models should be straight forward. Just call the load function twice with the appropriate filenames (I will verify that this works). To get models to move around you add the pointers that the load function returns as a child to an sglTransform node and you manipulate the transform matrix (the latter is illustrated in sglfly.cpp - when you hit the 'p' key). > * no documentation? As I said before....I am working on it. > * 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) Did you try building with the flags used in the file in make/make.platform.linux.i686.dbg: CXXFLAGS := -g -D_BOOL -Wall -c -fPIC -march=i686 -D_POSIX_C_SOURCE=199506L the brand of C++ used in SGL is very picky about the C++ compiler settings. > > * I had a short look at the sgl-source, what are the other loader > file-formats? > What is scm,xan,cmb filetypes? Old simplistic formats used in a robot simulator. They are of little use. > > * 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) I can't help you here...maybe PrettyPoly will be online soon? 3D modelling packages are far from trivial to write and never very easy to use (at first). > * 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 This is due to compiler conformance issues. The setup that Tom describes in a previous email (with 2.95.2) does not have this warning. > 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 :-( Tom already took a guess in the previous email. I am inclined to agree with him that you may have problems with your installation and multiple conflicting versions of the library in question. -- Scott McMillan mailto:mcm...@ca... Cambridge Research Associates http://www.cambridge.com 1430 Spring Hill Road, Ste. 200 Voice: (703) 790-0505 x7235 McLean, VA 22102 Fax: (703) 790-0370 |