Bobby,

In "Flying" mode the frame rate on my computer appears to be fine.
Seems quite smooth to me.  Don't know what the frame rate is but   from
other applications where I know I get frame rates of 60fps I know your
program certainly is above the 2fps rate.

But, when I toggle to "Following" mode (using f key) your debug
statements really slow things to a crawl, at least for me.

I made an AVI file, that I was going to foward to you, of what I get on
the screen, but the playback on the AVI isn't at the same frame rate as
the application itself.  Not wanting to invest huge amounts of time in
this I abandoned this idea.  Sorry :-(

Anyway, no idea on your clipping other than noting that using extreme
clipping bounds (by extreme I mean the ratio of the front to the back I
believe should not be greater than 1000 or so, NOTE: quoting this from a
decaying memory) can lead to weird problems, first hand experience here!

Tested on:

Dual CPU PII 450mhz Intel
AccelSTAR II card (OpenGL definitely, Permedia II based I think) which
is pretty old, perhaps 3 years.
256 MB Ram
Windows NT 4.0

Good luck, your work looks very nice.

Regards,

Gregory Bradford

Bobby Martin wrote:
>
> I put up some questions here a couple of weeks ago about terrible frame
> rates I'm getting.  Many people seem to have hardware acceleration up and
> going with no problems.  Since this demo has failed to run at acceptable
> speeds on so many different PCs, I'd like to get someone who's sure that
> they have hardware acceleration to run the demo and tell me if they get the
> terrible frame rates (~2 frames a second, at best!) that I'm getting.
>
> Also, it does a few of the things that people have been requesting; i.e. the
> viewpoint maintains a set height over rough terrain as you move, and I
> calculate correct texture coordinates for tiling an image over the terrain
> surface.
>
> Also, it appears that my viewing distance is about 50 meters, even though I
> have added a ClipLeaf centered at the origin, with a bounds of 1000 meters,
> and a back clip of 1000 meters.  Bonus brownie points to anyone who can tell
> me why my clipping is wrong :)
>
> I have included all source, and you are welcome to use it however you like.
> If you fix bugs, please let me know.
>
> To run the demo, unjar it somewhere innocuous.  From that somewhere, run
> "java com.navtools.cosmdemo.single.BrowseTerrain".  (You have to unjar it to
> put the images somewhere it can find them.)
>
> You can use the number pad controls as in Doom (make sure the numlock is
> on).  You can also use page down/page up to rotate the view by 90 degrees
> down/up around the x axis.  You can hop up/down 10 meters by pressing the
> u/d key.  If you try to move while in the air, you will be popped back down
> to the terrain surface.
>
> One more thing: it takes a little while (less than a minute, though) to come
> up since it randomly generates terrain every time.  It's supposed to load
> the previous terrain when you run it after the first time, but that bugs out
> (I think due to an error in JDK1.3 serialization).  You _must delete
> HeightField.dat_ before each run of the demo after the first.
>
> Oh yeah, and my apologies for the crappy sky background.  I have a better
> one, but it's 16 times as big and I figured I'd save some bytes.
>
> Anyway, as I said above: if anyone can confirm that this runs quickly/slowly
> on a hardware accelerated machine (bonus points for telling me why), or can
> tell me what I'm doing wrong with my clipping, I would be very grateful.
>
> Thanks in advance,
> Bobby
>
> ________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
>
>   ------------------------------------------------------------------------
>                Name: demo.jar
>    demo.jar    Type: Zip Compressed Data (application/x-zip-compressed)
>            Encoding: base64
begin:vcard
n:Bradford;Gregory
tel;fax:408-736-8447
tel;work:408-736-2822
x-mozilla-html:FALSE
adr:;;;;;;
version:2.1
email;internet:[EMAIL PROTECTED]
fn:Gregory Bradford
end:vcard

Reply via email to