Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Poll

What programming topic would you want the next challenge to be about?  (It might be a good opportunity to focus on a subject you're not familiar with or to reinforce knowledge on one that you already know)

Control Flow
- 2 (2.2%)
Arrays, Strings, Pointers, and References
- 8 (9%)
Functions
- 4 (4.5%)
Basic object-oriented programming
- 30 (33.7%)
A bit more advanced OOP (Composition, Operator overloading, Inheritance, Virtual Functions)
- 18 (20.2%)
Templates
- 8 (9%)
Other (Explain)
- 4 (4.5%)
Working with files?  (Streams)
- 15 (16.9%)

Total Members Voted: 89


Pages: 1 2 [3] 4 5 ... 78

Author Topic: Programming Challenges & Resources (#bay12prog) Initiative  (Read 97492 times)

Alexhans

  • Bay Watcher
  • This is toodamn shortto write something meaningful
    • View Profile
    • Osteopatia y Neurotonia
Re: Programming Challenges & Resources (#bay12prog) Innitiative
« Reply #30 on: May 20, 2010, 05:48:02 am »

Mibbit is decent as a Browser Based irc client (some servers like freenode are eliminating access from it though).  Although my connection at work is so bad that I can't connect from it.

Another alternative to redirect IO inside the code is:
http://www.cplusplus.com/reference/clibrary/cstdio/freopen/

I have no idea about macs. 
Logged
“Eight years was awesome and I was famous and I was powerful" - George W. Bush.

Siquo

  • Bay Watcher
  • Procedurally generated
    • View Profile
Re: Programming Challenges & Resources (#bay12prog) Innitiative
« Reply #31 on: May 20, 2010, 06:15:47 am »

Mibbit seems to be working fine, I can get on the channel.
Logged

This one thread is mine. MIIIIINE!!! And it will remain a happy, friendly, encouraging place, whether you lot like it or not. 
will rena,eme sique to sique sxds-- siquo if sucessufil
(cant spel siqou a. every speling looks wroing (hate this))

alway

  • Bay Watcher
  • 🏳️‍⚧️
    • View Profile
Re: Programming Challenges & Resources (#bay12prog) Innitiative
« Reply #32 on: May 21, 2010, 09:25:10 am »

Hmm... I seem to be having trouble with some directX 9 code; anyone know what the likely cause of the following symptoms are:
1. Rendered sphere stretched out along one axis infinitely (basicly showing up as an infinitely long cylinder)
2. No compile errors, and none of the if(FAIL()) are being set off, which are around pretty much all the shader code
3. .fx HLSL shaders used appear to work fine, as it happens even with a shader file which I used (and works perfectly) in another directx project
A bit of further context, I am using the built in ID3DXMesh class to load and render said sphere, the vertex format being used is a simple position and normals (PN) format. So in summary, something in the code dealing with vertices is exploding, but it isn't due to the shader fx files.
Logged

Siquo

  • Bay Watcher
  • Procedurally generated
    • View Profile
Re: Programming Challenges & Resources (#bay12prog) Innitiative
« Reply #33 on: May 21, 2010, 09:56:36 am »

Division by almost zero?

Perspective of the camera set to almost zero?
Logged

This one thread is mine. MIIIIINE!!! And it will remain a happy, friendly, encouraging place, whether you lot like it or not. 
will rena,eme sique to sique sxds-- siquo if sucessufil
(cant spel siqou a. every speling looks wroing (hate this))

alway

  • Bay Watcher
  • 🏳️‍⚧️
    • View Profile
Re: Programming Challenges & Resources (#bay12prog) Innitiative
« Reply #34 on: May 21, 2010, 10:09:09 am »

Division by almost zero?

Perspective of the camera set to almost zero?
Well, that certainly helped... Seems my camera wasn't set up properly, the function setting perspective was never called. Thanks!  :D
The result:
Spoiler: A phong shaded sphere! (click to show/hide)
Edit: phong sphere updated; seems the mesh from Blender didn't have the proper specular power settings for my code; set to 8 now.
« Last Edit: May 21, 2010, 10:39:56 am by alway »
Logged

Siquo

  • Bay Watcher
  • Procedurally generated
    • View Profile
Re: Programming Challenges & Resources (#bay12prog) Innitiative
« Reply #35 on: May 21, 2010, 10:12:48 am »

Yeah, had that same thing in opengl, but with distance. I was able to draw stuff that had a distance of about 0.00001 from the camera, as floats are almost never truly zero. Took me a while to find that out...

I'm getting ridiculously close to finishing my texturegenerator. Awesomeness.
Logged

This one thread is mine. MIIIIINE!!! And it will remain a happy, friendly, encouraging place, whether you lot like it or not. 
will rena,eme sique to sique sxds-- siquo if sucessufil
(cant spel siqou a. every speling looks wroing (hate this))

Alexhans

  • Bay Watcher
  • This is toodamn shortto write something meaningful
    • View Profile
    • Osteopatia y Neurotonia
Re: Programming Challenges & Resources (#bay12prog) Innitiative
« Reply #36 on: May 21, 2010, 10:21:40 am »

texture generator as in procedurally generated texture?  That should be interesting...
Logged
“Eight years was awesome and I was famous and I was powerful" - George W. Bush.

Siquo

  • Bay Watcher
  • Procedurally generated
    • View Profile
Re: Programming Challenges & Resources (#bay12prog) Innitiative
« Reply #37 on: May 21, 2010, 10:28:31 am »

Yeah, almost done, for really optimistic values of "almost" ;)

I'm using a 2D perlin noise generator, adding multiple passes into one texture, calculating color and alpha myself, with entirely different parameters for each layer, before sending it to the hardware as if it were a bitmap.
Check out this page, some examples of textures (I was surprised how good the wood looks!) at the bottom:
http://freespace.virgin.net/hugo.elias/models/m_perlin.htm
Logged

This one thread is mine. MIIIIINE!!! And it will remain a happy, friendly, encouraging place, whether you lot like it or not. 
will rena,eme sique to sique sxds-- siquo if sucessufil
(cant spel siqou a. every speling looks wroing (hate this))

alway

  • Bay Watcher
  • 🏳️‍⚧️
    • View Profile
Re: Programming Challenges & Resources (#bay12prog) Innitiative
« Reply #38 on: May 21, 2010, 11:10:16 am »

Looks like my multiple-materials-in-a-mesh code works! Next up, point lights of various sorts!
Er... Texturing. It seems I will wait until the chapter on blending before playing with multiple light sources.
« Last Edit: May 21, 2010, 11:34:03 am by alway »
Logged

Siquo

  • Bay Watcher
  • Procedurally generated
    • View Profile
Re: Programming Challenges & Resources (#bay12prog) Innitiative
« Reply #39 on: May 21, 2010, 12:29:55 pm »

Looking good!

Multiple light sources are easy in OpenGL, I don't know how it is in DX. I also read some pretty amazing stuff about deferred lighting, which allows for more than 5 lightsources without killing your fps, and natural reflections.
Logged

This one thread is mine. MIIIIINE!!! And it will remain a happy, friendly, encouraging place, whether you lot like it or not. 
will rena,eme sique to sique sxds-- siquo if sucessufil
(cant spel siqou a. every speling looks wroing (hate this))

alway

  • Bay Watcher
  • 🏳️‍⚧️
    • View Profile
Re: Programming Challenges & Resources (#bay12prog) Innitiative
« Reply #40 on: May 21, 2010, 02:26:24 pm »

Let me guess, Infinity dev-log?  :D
Logged

Siquo

  • Bay Watcher
  • Procedurally generated
    • View Profile
Re: Programming Challenges & Resources (#bay12prog) Innitiative
« Reply #41 on: May 21, 2010, 03:23:40 pm »

Right you are ;)

Found that while I was looking for procedural terrain generation techniques.
Logged

This one thread is mine. MIIIIINE!!! And it will remain a happy, friendly, encouraging place, whether you lot like it or not. 
will rena,eme sique to sique sxds-- siquo if sucessufil
(cant spel siqou a. every speling looks wroing (hate this))

timmeh

  • Bay Watcher
    • View Profile
    • My Portfolio
Re: Programming Challenges & Resources (#bay12prog) Innitiative
« Reply #42 on: May 22, 2010, 10:39:00 pm »

Found this:  http://www.cplusplus.com/forum/articles/12974/

Some great C++ challenges.  Ought to be able to be adapted to just about any language though, fairly basic concepts.
Logged
On the Wall is a Masterfully engraved carving of Urist McHardcastle and Goblins. Urist McHardcastle is surrounded by the Goblins. The Golbins are stamping on Urist McHardcastle. Urist McHardcaste is laughing at the Goblins. The carving related to the prolonged and bloody death of Urist McHardcastle in the Fall of 1659, the Winter of 1659, and the Spring of 1660. On the engraving is an image of Cheese.

alway

  • Bay Watcher
  • 🏳️‍⚧️
    • View Profile
Re: Programming Challenges & Resources (#bay12prog) Innitiative
« Reply #43 on: May 24, 2010, 10:50:12 am »

So... does anyone actually talk in the IRC channel, or just log in ocassionally and sit there?  :)
Logged

Blacken

  • Bay Watcher
  • Orange Polar Bear
    • View Profile
Re: Programming Challenges & Resources (#bay12prog) Innitiative
« Reply #44 on: May 24, 2010, 10:54:48 am »

If somebody actually says something, I respond.
Logged
"There's vermin fish, which fisherdwarves catch, and animal fish, which catch fisherdwarves." - Flame11235
Pages: 1 2 [3] 4 5 ... 78