Selection methods, eg. in RTS games

learn more… | top users | synonyms

12
votes
5answers
217 views

How to make unit selection circles merge?

I would like to know how to make this effect of merged circle selection. Here are images to illustrate: Basically I'm looking for this effect: How the merge effect of the circles can be ...
11
votes
4answers
3k views

Cast ray to select block in voxel game

I am developing a game with a Minecraft-like terrain made out of blocks. Since basic rendering and chunk loading is done now, I want to implement block selecting. Therefore I need to find out what ...
6
votes
1answer
728 views

What are some good methods of implementing RTS-style Box selection?

I'm scouting around for different methods of implementing a typical RTS box selection. This is for 3D game - so I'm looking for methods for finding units within selection box in 3D world. Here is a ...
5
votes
1answer
239 views

Unit selection circle

I do not know whether it's called a circle, or whether it's called a halo or whatever. But, I do know that I want to know what is the game development world term for this. So, how do we call it?
4
votes
3answers
1k views

What method replaces GL_SELECT for box selection?

Last 2 weeks I started working on a box selection that selects shapes using GL_SELECT and I just got it working finally. When looking up resources online, there is a significant number of posts that ...
2
votes
1answer
65 views

Which part of MVC should be responsible for selecting a unit

Imagine a turn-based tile game, that generally looks like Heroes' combat view. Except for the fact a player can choose any of his units to command. Our team is implementing the game according to MVC ...
2
votes
2answers
3k views

How can I do Mouse Selection In OpenGL 3.0?

Hello I'm pretty good programmer I've made my own 2D games in SDL and made a gui in 3D using Old OpenGL and Modern OpenGL but.. I'm having problems with trying to click 3D models with opengl I have no ...
1
vote
4answers
225 views

Selecting and moving vertices

How can I identify the correct vertecis and move them in XNA using VertexBuffer? Let's say I have a simple cuboid in my project and want to move one face of it. How would I loop thru vertices, get ...
1
vote
2answers
289 views

How to implement rectangle selection?

I don't know if there is another term for it, but I mean this: You hold down a mouse button. A rectangle forms when you move the mouse around. The units inside the box get selected when you let go of ...
1
vote
1answer
414 views

Unity3d select empty gameobjects in scene

I have a pathing system that I am creating in Unity. When you add nodes to denote the path, I create a empty GameObject and render it in OnGUI as a square. The problem that I have is clicking on the ...
1
vote
1answer
216 views

Selection of a mesh with arbitrary region

Considering example: I have a mesh(es) on the OpenGL screen and would like to select a part of it (say for delete purpose). There is a clear way to do the selction via Ray Tracing, or via Selection ...
1
vote
1answer
273 views

Region selection in OpenGL

If I have a mesh of triangles and going to make a selection on it using a region (and not rectangle using Glu.gluPickMatrix(...);), how can I implement it?
1
vote
1answer
50 views

Selection with region (when rendering with shaders and VAO)

I am currently render my geometry using "Modern OpenGL" approach (with shaders and buffers). I have already implemented picking of single primitives using glReadPixels. Now I am faced with problem how ...
1
vote
1answer
174 views

Understanding implementation of glu.PickMatrix()

I am working on an OpenGL project which requires object selection feature. I use OpenTK framework to do this; however OpenTK doesn't support glu.PickMatrix() method to define the picking region. I ...
0
votes
2answers
134 views

How to avoid character to move when selected

I've got a player Class which can walk to a certain point on the screen when left mouse is pressed: if (mState.LeftButton == ButtonState.Released && oldMouseState.LeftButton == ...
0
votes
1answer
171 views

Implementing a 2d Selection Box

I'm in the process of implementing a selection box for my simulation and am having difficulty with something which appears simple. At the moment, I can draw the selection box and accurately select the ...
0
votes
1answer
57 views

Scrolling though objects then creating a new instace of this object

In my game when pressing the right mouse button you will place an object on the ground. all objects have the same super class (GameObject). I have a field called selected and will be equal to one ...
0
votes
0answers
42 views

How to raycast select a scaled OBB?

I have the OBB picking code to select an OBB with code inspired from Real time Rendering 3 and opengl-tutorial.org. I can successfully select objects that have been moved or rotated. However, I cant ...