From: Dan Johnston (dan.johnston++at++nrc.gc.ca)
Date: 12/14/2005 06:48:20
I tried to write my own loader. I have done this in the past, but the
code was always in the 'C' language. This one I tried to use C++
and use fstreams for file I/O and strstreams for file parsing.
This did not work. The shared library was linked, but when 'perfly'
tried to use it, there were errors about unresolved references. Given
the usual C++ name mangling, the missing reference were very hard
to read, but they appeared to indicate "allocation" and "streams".
I removed all the stream stuff and the loader works ... but I also had
to drop my fancy "labeled point location" class and replace it with a
simple sphere and DCS to position it. (My class has position, color,
a switchable text label, switchable axis orientation arrows, and 5
different methods of point representation - ranging from a single
pixel point, a lightPoint, to a smooth sphere.)
I would prefer to use the loader to create multiple instances of
my class (I need hundreds or even thousands of particles - and
need to switch to a low-poly representation when the numbes
go up.)
Can you use all of C++ to write a loader? I read the parts of the
manual on C++ and didn't spot anything. I have tried to force
the loader to have all the components needed (using options
like "no_unresolved" in the linker).
Any hints, suggestions, examples? Thanks very much - in advance.
Dan Johnston
--
___|__ |
/ | \ ||\ Daniel (Dan) Johnston
/___|___\ || \ Dan.Johnston++at++nrc.gc.ca
_____|____ || \ National Research Council of Canada, London, ON
| | | || \ Integrated Manufacturing Technologies Institute
\___| | | ||____\ Tel: (519) 430-7081 Fax: (519) 430-7140
\_o_\___|____|_|______\_ Inst: http://www.nrc.gc.ca/imti
\ o / These opinions are my own! Not those of NRC.
\________________/ Virtual Reality:
http://imti.nrc.gc.ca/vetc_e/vetc_e.html
More Tall Ships - Fewer Computers!
This archive was generated by hypermail 2b29 : Wed Dec 14 2005 - 06:50:56 PST