Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Allosentient

Pages: [1]
1
C / C++ /C# / Re: Opengl in c# ?
« on: March 26, 2009 »
I've been very happy with this:
http://www.opentk.com/

Avoid Tao Framework unless you are an oldschool OpenGL purist who doesn't have a problem with using the procedural-based syntax.

2
Coding tutorials / Re: OpenGL framebuffer library
« on: November 11, 2008 »
Whatever the DirectX speed is, OpenGl will come out pretty much the same.  Somehow you have to hammer 640x480x4x60 bytes per second up to the gfx card.  That's around 80Mb/s, which is a lot.

Jim



I know this is an old post, but wanted to contribute.  I noticed that DrawPixels was mentioned right before this post.  The goal of using the graphics card is to have the graphics card procedurally create the pixels you are talking about here.  You are not sending 80 mb/sec to the graphics card, you are sending a set of instructions for the graphics card to process on the side.  This is why the use of DrawPixels isn't really recommended for the entire screen.

I am not an expert here by any means so please correct me if I am wrong!

3
One of the best things you can do to make your programs better is to split large functions into smaller ones, and name them logically.  May not automatically make them better but it will make it easier for you to make them better.  Pretty much the design principle of "small functions are better".

For example (pseudocode):

Instead of this:
Code: [Select]
for(int i = 0; i < count; i++)
{
     -50 Lines of Code-
}

Do this:

Code: [Select]
for(int i = 0; i < count; i++)
{
      ProcessCode();
}

ProcessCode()
{
      -Your 50 lines of code-
}

4
General chat / Re: The Welcoming Comittee
« on: November 06, 2008 »
Thanks a lot for the welcome.  I will certainly experiment a bit with C, just thought I would try pure assembler at first as it is a language I haven't used before.  C# is good but it is hard to combine true object-oriented principles with performance applications such as graphics (and by the time I could find a good work around I noticed the amount of work I ended up doing is too much for one person). 

I like the large number of links found here.  I saw a website with a lot of good graphics links in C and assembler, but the links were all broken.  I am trying to find stuff using VGA-pixel graphics for MS-DOS/Windows.  Thank you again.

5
General chat / Re: The Welcoming Comittee
« on: November 04, 2008 »
I am from Arizona (United States) and have been into demo music for about a year, and coding as a hobby for almost 10 years (C# is what I usually use).  I have experimented with OpenGL but do not have a lot of time to make anything special.  After discovering tiny intros recently I think I want to take a shot at learning assembler and seeing what happens from there. 

I also have done some hacking challenges, take a look at hacker.org for more of that.

Pages: [1]