Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


StasB

Member Since 10 Jul 2008
Offline Last Active Feb 20 2013 08:00 PM

Topics I've Started

Random Gradients for Perlin Noise

29 January 2013 - 03:00 PM

Hi! My question is pretty simple: What are some good ways to generate random N-dimensional gradients for Perlin noise?


Projecting Textures

10 October 2012 - 05:03 AM

I need to project some textures to simulate sprite shadows but I can't wrap my head around how it's done in OpenGL. From what I understand, for each vertex of the projection surface, I need to calculate the coordinates on the projected texture and let OpenGL interpolate them automatically. This doesn't quite make sense to me because the interpolated function isn't even linear since it's basically a perspective projection. Pic related:

Posted Image

I'll be glad if someone could explain. Thanks. =)

Wrapping OpenGL Calls

09 March 2012 - 07:26 AM

I'm tired of my code being littered with verbose GL calls. I've been wondering if there's any way to wrap things up in small classes without a serious loss of performance and generality. For example, if I want to have a VBO class, every member function that does something with a VBO needs to make sure it is bound first. If I want to render it, I need to make sure all the client states (e.g. glEnableClientState(GL_VERTEX_ARRAY)) and pointers (e.g. glVertexPointer(...)) are set up correctly. The only robust way to do that is to set all relevant global state in every member function call, even when it's unnecessary. Wouldn't all this state-changing cause some serious performance issues?

2D Joints

29 October 2010 - 11:59 AM

Hi! I've been looking all over the net for documents describing how to implement joints between rigid bodies in 2D. All I could find deals with 3D simulations. Does anyone happen to know of a document explaining 2D joint physics?

Evil Vector Equation

28 October 2010 - 04:21 PM

Hi.
I'm stuck with this equation:

F/m1 + F/m2 + ((F/m1).N1) * N1 + ((F/m2).N2) * N2 = K

F, N1, N2 and K are vectors. m1 and m2 are scalars.
The dot symbol denotes a dot product.
I need to solve for F.
I don't expect anyone to solve it for me, but if anyone could point me in the right direction, I would be very thankful. =)
In particular, I'm not sure what to do with those dot products.

PARTNERS