Re: Lines
jon klein <[email protected]> Wed, 12 Jan 2005 10:43:55 -0500
| Newsgroups | gmane.comp.breve |
|---|---|
| Message-ID | <[email protected]> |
On Jan 10, 2005, at 4:24 PM, Naiqi Weng wrote:
> Hi, Jon
>
> I have tried the "set-bitmap" stuff ,but unfornately
> the speed still tremendously slows down when I make
> the spheres visible and "set-bitmap to 0". You said
> the real fix is use breve 2.1. But is it a released
> source code or just the every day snapshot? Currently
> all my work is done in breve 1.9 and I have made
> changes to the source code in order to display my
> anmation on that volumetric display. So there will be
> a lot of work to do if I want to use the new version
> of breve 2.0. I have bumped into a lot of problems
> when I tried to build breve1.9 in Mingw. I am
> wondering if there is any other libraries I should
> include if I want to build breve 2.0 based on my
> settings in Mingw to build 1.9? And when do you think
> the breve 2.1 source code wil be available?
The latest source code is now available from SourceForge. This
is not the final 2.1 source, but it is now rather stable on
Mac OS X and Linux. I'm doing some work on the Windows end
right now and that should be sorted out soon as well.
Instructions on accessing the source code are available here:
https://sourceforge.net/cvs/?group_id=124663
If you'd rather address the problem in your old 1.9 source,
that should also be pretty straightforward. If you look
in the file gldraw.c and search for "DM_INVISIBLE", you'll
find something like the following:
if(w->objects[n] && !(w->objects[n]->drawMode & DM_INVISIBLE))
If you look below this, you'll see that this is where the
object itself is drawn, as well as the lines to neighboring
objects. Currently, the line drawing is inside this
if-statement. Like this (pseudocode):
if ( ! invisible ) {
draw_object();
draw_lines();
}
You'll just want to move the line-drawing code outside of that
if-statement. Then your line will be drawn regardless of whether
the object itself is visible or not:
if ( ! invisible ) {
draw_object();
}
draw_lines();
If you have any problems doing this, mail me off-list, and send
me the copy of gldraw.c that you're currently using.
- jon klein
_______________________________________________
breve mailing list
[email protected]
http://lists.spiderland.org/mailman/listinfo/breve