Click here to Skip to main content
16,018,458 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Why they are no Virtual Constructors. Pin
led mike23-Feb-07 4:28
led mike23-Feb-07 4:28 
GeneralRe: Why they are no Virtual Constructors. Pin
Mark Salsbery23-Feb-07 8:37
Mark Salsbery23-Feb-07 8:37 
GeneralRe: Why they are no Virtual Constructors. Pin
Maximilien23-Feb-07 8:44
Maximilien23-Feb-07 8:44 
AnswerRe: Why they are no Virtual Constructors. Pin
cmk23-Feb-07 12:38
cmk23-Feb-07 12:38 
GeneralRe: Why they are no Virtual Constructors. Pin
Bram van Kampen24-Feb-07 15:02
Bram van Kampen24-Feb-07 15:02 
GeneralRe: Why they are no Virtual Constructors. Pin
Rajesh R Subramanian25-Feb-07 21:46
professionalRajesh R Subramanian25-Feb-07 21:46 
QuestionA question about OpenGL picking Pin
jk chan23-Feb-07 2:21
jk chan23-Feb-07 2:21 
AnswerRe: A question about OpenGL picking Pin
El Corazon24-Feb-07 15:23
El Corazon24-Feb-07 15:23 
krishnadevank wrote:
and i want to get those polygons inside that bounding box.It should be fast enough (At least don't take minutes ).


Several ways jump out. First You have the zone, you can render one more frame with a clip-buffer which isolates the polygons individually within the zones. You can identify which ones by coloring each differently, or split the work out, by doing so in each 2D image slice.

Remember that even at 20-60hz you can take a frame to do some work and then get back to the job of drawing. Multi-rendering methods make great shortcuts. You can also use the obscure test from the ARB and setup an obscuring object everywhere except the zone of interest, and get back only those triangles within the zone. You can also do the same test as you draw, using a multi-render cycle you can check the result of the projection and write to see if it should be clipped or kept with a stencil buffer and test the triangles you need.

Once again you can brute force it, or break it down, test slice by slice to see if any triangles are in the zone on cycle 0, then test those triangles in each slice one at a time for zone proximity, cycle 1+. Within a couple of frame cycles you can find all the triangles you need.

_________________________
Asu no koto o ieba, tenjo de nezumi ga warau.
Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)

Questionpass by reference error Pin
minkowski23-Feb-07 1:57
minkowski23-Feb-07 1:57 
AnswerRe: pass by reference error Pin
Cedric Moonen23-Feb-07 2:08
Cedric Moonen23-Feb-07 2:08 
AnswerRe: pass by reference error Pin
Bram van Kampen24-Feb-07 15:12
Bram van Kampen24-Feb-07 15:12 
QuestionAbout CLSID??? Pin
siddharthsan23-Feb-07 1:49
siddharthsan23-Feb-07 1:49 
QuestionRe: About CLSID??? Pin
prasad_som23-Feb-07 6:01
prasad_som23-Feb-07 6:01 
QuestionGlobal hook Pin
tigger_am23-Feb-07 1:47
tigger_am23-Feb-07 1:47 
AnswerRe: Global hook Pin
PJ Arends23-Feb-07 10:05
professionalPJ Arends23-Feb-07 10:05 
Questionabout linking obj files Pin
sawerr23-Feb-07 0:52
sawerr23-Feb-07 0:52 
AnswerRe: about linking obj files Pin
toxcct23-Feb-07 0:56
toxcct23-Feb-07 0:56 
AnswerRe: about linking obj files Pin
Cedric Moonen23-Feb-07 0:57
Cedric Moonen23-Feb-07 0:57 
AnswerRe: about linking obj files Pin
Newbie0023-Feb-07 1:09
Newbie0023-Feb-07 1:09 
QuestionCReBar border question. Pin
PatrykDabrowski23-Feb-07 0:28
PatrykDabrowski23-Feb-07 0:28 
QuestionTrying to pass an array Pin
ericelysia22-Feb-07 23:57
ericelysia22-Feb-07 23:57 
AnswerRe: Trying to pass an array Pin
Cedric Moonen23-Feb-07 0:47
Cedric Moonen23-Feb-07 0:47 
AnswerRe: Trying to pass an array Pin
Newbie0023-Feb-07 0:59
Newbie0023-Feb-07 0:59 
QuestionVisual Studio Installer Error Pin
Mahesha_m22-Feb-07 23:42
Mahesha_m22-Feb-07 23:42 
QuestionVS2005 Pin
Anilkumar K V22-Feb-07 23:40
Anilkumar K V22-Feb-07 23:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.