Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 03 Apr 2004
Offline Last Active Private

Topics I've Started

possible to have opengl in a command line program?

02 December 2013 - 07:18 PM

Hello guys,


I want to implement a program with opengl that renders something to a framebuffer object. I don't need to display anything, but I want to save the framebuffer into a jpg file and serve it via tcp/ip. the program is essentially a tcp image server. 


I will deploy this program to my server which has linux but no x windows. I can only access it through ssh. Suppose I have gpu on that server, how can I have an Opengl context within my command line program?





A.I idea for a simple strategy game

11 September 2012 - 11:33 AM

Hello guys,

A friend and I are working on a simple strategy game. While we are familiar with graphics and game programming in general, we have no idea how to implement A.I for this game.

The game has a map of several forts, two of them are occupied by the player and the computer at the beginning. They each has some solders inside their forts. The number of soldiers inside a fort can increase either at a steady rate or a rate that is proportional to the number of solders inside.

the Player and the computer send out solders from their forts to empty forts or to enemy's fort to occupy them, if you can outnumber your enemies in a fort, the fort is yours. whoever can occupy all forts on the map is the winner.

here is an example of this kind of game:

I have no idea how to approach this game A.I. (can "Bayesian network" do the job?)

Could you please point me a direction.

Thank you,

Efficient way to render binary sparse volume

02 August 2012 - 05:28 PM

Hello guys,

Are you aware of any algorithm that renders a sparse binary volume.

The reason I want this volume to be binary and sparse is that, I want to use it to represent a very fine model (large). I want the rendering result to be just like a polygonal surface with tiny details.

Also, I hope this volume can be dynamic, so I can change it anytime and recreate the sparse representation in an efficient way. I did some search, only found this interesting article: http://http.developer.nvidia.com/GPUGems3/gpugems3_ch01.html

I'm wondering if there are other researches I have missed.


is it possible to enable FXAA within my code?

24 April 2012 - 04:48 PM


nvidia has build-in FXAA, I wonder if it's possible to enable it within my code in a programmatic way, so users won't need to enable it from the control panel?

Thank you,

how 2d fluid is implemented?

19 March 2012 - 06:40 PM


I'm very interested in 2d physics engines. I have roughly studied some open source projects, for example, box2d and chipmunk. Both engines are ridged body engines, they don't support fluid or softbody, which I'm interested in.

There are several games that support 2d fluid, like for example


I wonder how this is implement. It looks like the water is simulated with particles, but how do I render then like water?