A 2D shape consisting of straight lines that are joined to for a circuit.

learn more… | top users | synonyms

2
votes
1answer
68 views

Polygons and actionlisteners Libgdx

I've been browsing these forums for a while now and I nearly always am able to find an answer without having to ask my own question! Such a great community! This is the first time I've been stumped ...
1
vote
1answer
72 views

How can I determine “exact moment” of collision with ray casting?

I'm currently brainstorming how the physics for my game engine is going to be handled. It's top down and I'm thinking of using ray casting for collision detection. I've reached two potential problems (...
1
vote
1answer
264 views

Vertex ordering with THREEjs's exporter

I'm using THREEjs's exporter to export a 2D polygon plane. The resulting JSON gives me the vertices. I'm trying to properly order these vertices as to make the actual polygon shape, without luck. ...
0
votes
1answer
35 views

Combining lots of small polygons to one (some) big poly(s)

I am looking for algorithm to merge lots of relatively small 2d polygons to one or some big polygons. In case two small polygons are touching or overlapping, they should be merged to one polygon. My ...
0
votes
1answer
150 views

Moving a Polygon based on Camera position

I am in the process of implementing TMX Maps (made in Tiled) for my game. In Tiled, I can create polygons, which leaves a tag, containing the points. Loading in these points to a Polygon (java.awt....
-1
votes
1answer
2k views

Create Box2D and engine polygon Box2D body without sprite

Hey I have created my body using following code: (please read full description) Body polyBody; final BodyDef mBodyDef = new BodyDef(); mBodyDef.type = BodyDef.BodyType.DynamicBody; ...
1
vote
0answers
26 views

Getting the polygon footprint from a map

I'm trying to implement the Explicit Corridors method to generate a navmesh for a large city. The algorithm takes a list of convex polygons representing the obstacles as input. The paper only ...
1
vote
0answers
53 views

GJK algorithm in case of circle and polygon?

I wonder if it's possible to modify GJK so I can use it to detect collision between circle and n points polygon. I implemented for polygon and polygon before, and I tried modifying the support ...
1
vote
0answers
34 views

How to test which edge is going in and which edge is coming out in Weiler-Atherton Algorithm?

The basics of Weiler-Atherton Polygon Clipping Algorithm are: Start from the first edge which is going inside the clipping area. When an edge of a candidate/subject polygon enters the clipping area, ...
1
vote
0answers
84 views

2D Polygon Collision push direction with large polygons

I have a collision detection/resolution implementation that uses the Separating Axis Theorem. Detection and such works perfectly fine, as well as resolution for most objects/shapes in my game. ...
1
vote
0answers
122 views

Cubic bezier polygon clipping

I have a large cubic bezier defined 2D polygon area which I need to render in DX11 real-time to create as many 4096x4096 textures as needed. An average control point count would be around the 12k and ...
0
votes
0answers
14 views

How to convert HiPoly to LoPoly & Displacement map

I've got some HiPoly meshes that have come from RealFlow. Loading them as-is uses a huge amount of memory. It seems like the ideal solution would be to simplify the mesh, but I'd like to preserve the ...
0
votes
0answers
16 views

Packing a load of irregularly shaped textures with UV bounds into a single texture

I'm developing a 2D game that uses a very large and varied set of high resolution tiles. Some of the shapes are large and diagonal, so when when it comes to batching all of the images into a single ...
0
votes
0answers
10 views

Render layered polygons

I am coding a video game in as3 for practice in game development/programming. It's a pixel game and I'm using my own game engine and I also created my own drawing api for thick lines and thin lines by ...
0
votes
0answers
48 views

How to get many rectangles and join them together into one polygon

I'm using LibGDX to make a platformer game in which I have a tilemap containing lots of instances of a Tile class. From the Tile class you can return a rectangle which represents the tile's position ...
0
votes
0answers
54 views

How to split or divide a polygon face in 3DS Max

I have previously used the Cut and Slice tools in 3DS Max. Recently I wanted to divide a selection of polygon faces into a specific number of faces. For example split each face into 2 equal halves, or ...
0
votes
0answers
93 views

Libgdx polygon ratating

I'm using polygons for collision detection. Here is the code: poly = new Polygon(verticies); poly.setOrigin(100,100); poly.setRotation(45); renderer.setColor(Color.GREEN); renderer.begin(ShapeType....
0
votes
0answers
59 views

Blender to UDK 3 How to smooth Static Mesh

I've created a bed cover model for my small game and here is how it looks like in blender: http://imgur.com/T88Mnbs but whenever I import it to UDK it looks like this: http://imgur.com/OMXBno3 it ...
0
votes
0answers
31 views

Efficient point-in test on static Polygons

I have some convex 2D polygons that are static and I would like to create an efficient point in test for them. I'm pretty new to this area of study so I just want to make sure I haven't made an error ...