To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.dev.macOpen lugnet.cad.dev.mac in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Development / Macintosh / 467
466  |  468
Subject: 
Re: rotating models in MBC 0.4.1d Cocoa
Newsgroups: 
lugnet.cad.dev.mac
Date: 
Wed, 23 Jul 2003 16:15:13 GMT
Viewed: 
1648 times
  
  What seems to happen is that during the rotation my computer decides
to try to render the whole model instead of continuing with the low
complexity rotation.

This is a problem I've been wrestling with since I commenced with Objective-C.
Normally to engage slow drawing mode what I do is I time the redraw operation by
using glFinish(). This command is supposed to prevent the application from
continuing until all OpenGL commands have been executed. It works fine in
classic and carbon environments, however in cocoa it doesn't appear to work at
all, since control appears to be returned to the program instantly.

  When I rotate the model very, very slowly, MBC 0.4.1d Cocoa doesn't
try to do a high complexity model; it just happily rotates the low
complexity model. However, all but the slowest mouse inputs will cause
MBC 0.4.1d Cocoa to attempt a high complexity rotation, which of course
is death on my old PowerBook :)

Your "rotate the model very slowly" comment gives me an idea. As each instance
of the program under Objective-C exists seperately - and often with it's own
thread. Since mouse tracking uses a different instance to the render function,
glFinish() probably won't affect mouse tracking - which is where I decide
whether to draw basic or complex - stay tuned.

  Typing Classic, Carbon, and Cocoa all the time is getting tiresome. If
no one objects, from now on I would like to refer to the programs as
follows:
MBC Classi_c as MBCc
MBC Carbo_n as MBCn
and
MBC Coco_a as MBCa

Sounds good to me

Andrew...



Message has 1 Reply:
  Re: rotating models in MBC 0.4.1d Cocoa
 
(...) I'm not sure I completely understand the above. What are you timing? If you are just timing how long the glFinish takes, then a change in its behavior might not be indicative of a bug in the new OpenGL drivers. And if you time how long you (...) (21 years ago, 23-Jul-03, to lugnet.cad.dev.mac)

Message is in Reply To:
  rotating models in MBC 0.4.1d Cocoa
 
Andrew, I downloaded SnapzPro so I could show you what was happening when I tried to rotate a model using MBC 0.4.1d. (URL) What seems to happen is that during the rotation my computer decides to try to render the whole model instead of continuing (...) (21 years ago, 22-Jul-03, to lugnet.cad.dev.mac)

7 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR