Advertisement

Object Selection with OpenGL

Started by June 27, 2002 09:59 AM
1 comment, last by SuzukiChopper 22 years, 7 months ago
Hey there, I need a little help with object selection. I''ll try and explain what I need as best as possible. I know how to allow a user to select an object on the screen and how to depth testing, that''s no problem. But what I need is to basically do the same thing but using a log file instead of a user using a mouse. The log file is populated with action commands and depending on the command, will make an object move accordingly. The problem I''m having is figuring out how this can be done using the selection buffer and a PickMatrix. I tried it once with the PickMatrix as the whole screen and it messed up the rendering and seemed to create alot of over-head for the program. Any help would be GREALTY appreciated! /*************************** * Chris * * admin@design-cycle.com * * www.design-cycle.com * * Website admin/designer * ***************************/
/**************************** Chris ** admin@design-cycle.com ** www.design-cycle.com * * Website admin/designer ****************************/
I''m afraid your explanations are not clear enough.

First you say that selecting an object is not a problem, and then you say that you can''t use PickMatrix correctly.

Also I don''t get what your log file is. Is it an input or an output file ?
Advertisement
Thanx for the reply vincoof, but with a little inginuity I figured it out and have it working like I need it to : ) But just for clarification all I need was to read an action in from this log file, say the action was ACTOR1RUN and then make that object run. I thought I need selection to select the right actor but all I need to do was created an object class holding the x,y,z,name values for that object and just loop through them each time. Pretty simple I think : )

/***************************
* Chris *
* admin@design-cycle.com *
* www.design-cycle.com *
* Website admin/designer *
***************************/
/**************************** Chris ** admin@design-cycle.com ** www.design-cycle.com * * Website admin/designer ****************************/

This topic is closed to new replies.

Advertisement