Results 1 to 2 of 2

Thread: Strange results from feedback code...

  1. #1
    Senior Member Regular Contributor
    Join Date
    Oct 2002
    Location
    San Diego, CA, USA
    Posts
    209

    Strange results from feedback code...

    I have been working on a space simulation, and I want to have ships which may have little boxes around them if they are selected, and I still need to know the screen coordinates otherwise. I have done everything according to spec in the OpenGL SuperBible, and just about every other refrence I can find. Since I dont want my feedback buffer to explode, what I do is I establish what the bounding box for the model is, and I render the front, back, top and bottom of that to the feedback buffer as a quadstrip. This is after using octree culling and so forth to cut down on the set of visible objects. I get really odd results from the feedback. I always get the X coordinate = 3 in any instance where the object is visible on screen, regardless of its location. The only difference I can see between my code and the available tutorials is that my code is doing feedback on a perspective view, rather than an orthoganal view. Has anybody else had a similar problem with the feedback buffers?

  2. #2
    Senior Member Regular Contributor
    Join Date
    Oct 2002
    Location
    San Diego, CA, USA
    Posts
    209

    Re: Strange results from feedback code...

    I fixed it- actually removed all feedback code and used gluProject() to get the information I needed.

Similar Threads

  1. Matrices - Strange results
    By 2851999 in forum OpenGL: Advanced Coding
    Replies: 7
    Last Post: 11-09-2014, 04:49 AM
  2. Very Very Strange results with shaders
    By abhishek bansal in forum OpenGL: Advanced Coding
    Replies: 8
    Last Post: 06-17-2011, 10:02 AM
  3. Strange results
    By Rui in forum OpenCL
    Replies: 2
    Last Post: 04-07-2010, 02:29 PM
  4. strange projection results
    By -NiCo- in forum OpenGL: Advanced Coding
    Replies: 4
    Last Post: 09-03-2004, 12:43 AM
  5. Strange Speed Results
    By AxelF in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 05-12-2003, 09:26 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean