> > [...]
> > VTK is used a lot, i believe, but I have no direct experience with this
> > tool.
> > [...]
> I already spent a couple of hours trying to learn VTK, and I think I'm
> still a few hours away from getting it to do what I need, which is much
> simpler than what VTK provides. Ideally, I'd like to have a stand-alone
> program that parses files like
> sphere <radius> <center> <color>
> cylinder <radius> <begin> <end> <color>
> // etc.
VTK comes with a Tcl wrapper that will allow you to do this
(write a parser for that kind of file) fairly easily in Tcl.
Quote:> Or I could use a C++ library with the same level of simplicity. Using VTK
> seems like an overkill (even though it does provide primitives like sphere
> and cylinder)
If you're going to do this on your own in C++ on Linux, you'd need
to use the OpenGL API. Since VTK can already do all this for you &
is written in C++, using VTK seems like the path of least resistence.
Quote:> BTW after VTK draws your model, can you change, say, sphere colors or do
> you completely relinquish control once Start() member function is called?
You have full control. If you use the Tcl/Tk wrapper, you can write a Tk
GUI and click buttons to change colors, or you can just enter the commands
to change the attributes at the Tcl command prompt.
If you go w/VTK, I recommend buying:
"VTK User's Guide" (http://www.kitware.com/products/vtkguide.html),
"The Visualization Toolkit" (http://public.kitware.com/VTK/buy-books.php),
and maybe also Tcl and the Tk Toolkit (Addison-Wesley, ISBN 0-201-63337-X),
all of which I am reading now.