Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

SuzukiChopper

Object Selection with OpenGL

This topic is 5888 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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 * ***************************/

Share this post


Link to post
Share on other sites
Advertisement
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 ?

Share this post


Link to post
Share on other sites
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 *
***************************/

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!