-
as seen on Game Development
- Search for 'Game Development'
I'm having some problems with speed in my chunk engine. I timed it out, and in its current state it takes a total ~5 seconds per chunk to fill each face's list.
I have a check to see if each face of a block is visible and if it is not visible, it skips it and moves on.
I'm using a dictionary (unordered…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
If I get coordinates via
coords = get(0,'PointerLocation');
How can I convert them into points gotten via ginput?
i.e, I would like to get the same values from
coords = get(0,'PointerLocation');
coords=someConversion(coords);
As I would have gotten by calling
coords=ginput(1);
And clicking…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I am working with a hexagonal grid. I have chosen to use this coordinate system because it is quite elegant.
This question talks about generating the coordinates themselves, and is quite useful. My issue now is in converting these coordinates to and from actual pixel coordinates. I am looking for…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi,
I am new to OpenGL over iPhone. I am developing an iPhone app similar to a barcode reader but with an extra OpenGL layer. The bottommost layer is UIImagePickerController, then I use UIView on top and draw a rectangle at certain co-ordinates on the iphone screen. So far everything is OK. Then…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi everyone,
I've run into something of a mysterious bug (to me). I have some code to pick out the user's current location on the iPhone SDK. It works fine on the iPhone simulator, but when I try to run it on the actual device, I get a weird error.
Here is the code (I am using ASIFormDataRequest…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
i'm not sure how to solve the following problem:
i have a triangle with each of the three known vertex positions A,B,C being inaccurate, meaning they can each deviate up to certain known radii rA, rB, rC into arbitrary directions.
given such a triangle, i want to calculate how much the difference…
>>> More
-
as seen on Game Development
- Search for 'Game Development'
I'm trying to wrap my head around:
http://msdn.microsoft.com/en-us/library/bb196409.aspx
I'm trying to create a method in XNA that renders a single Triangle, then later make a method that takes a list of Triangles and renders them also. But it isn't working. I'm not understanding what all the things…
>>> More
-
as seen on Johnny Coder
- Search for 'Johnny Coder'
In my attempt to learn (Iron)Python out in the open, here’s my solution for Project Euler Problem 18.
As always, any feedback is welcome.
# Euler 18
# http://projecteuler.net/index.php?section=problems&id=18
# By starting at the top of the triangle below and moving
# to adjacent numbers…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hey, I'm trying to convert a function I wrote to generate an array of longs that respresents Pascal's triangles into a function that returns an array of mpz_t's. However with the following code:
mpz_t* make_triangle(int rows, int* count) {
//compute triangle size using 1 + 2 + 3 + ... n = n(n + 1)…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I am building a CAD-file converter on top of two libraries (Opencascade and DWF Toolkit).
However, my question is plattform agnostic:
Given:
I have generated a mesh as a list of triangular faces form a model constructed through my application. Each Triangle is defined through three vertexes, which…
>>> More