Haven't posted in a while...  programming

By agi_shi
Mar 15, 2007
Post New Reply
  1. agi_shi

    agi_shi Newcomer, in training Topic Starter Posts: 507

    Not too far. Just a bit of physics and this per-pixel shader that does everything from parallax to emissive mapping.

    Yes, we're working on a plot. In fact, we've got a draft document of the intro. Not sure if we should post it yet, so I won't.
  2. agi_shi

    agi_shi Newcomer, in training Topic Starter Posts: 507

    Here's a VERY SIMPLE demo that will test your PC to it's limits (hopefully).

    Pass: nullandvoid
    http://www.jeepbarnett.com/narbaculardrop/community/Portalized/PerPixelDemo.zip

    There's no parallax or bump mapping, or even texturing. But there are, what I tend to call them, perfect lights. Lights that are all entirely calculated for every.single.pixel.

    Press space to place up to 7 additional lights. WASD to move.
  3. Boogityboo04

    Boogityboo04 Newcomer, in training Posts: 351

    nevermind. I missed the password when reading your post
  4. agi_shi

    agi_shi Newcomer, in training Topic Starter Posts: 507

    Mmk :D

    How's it run? BTW, it's found in bin/release.
  5. Boogityboo04

    Boogityboo04 Newcomer, in training Posts: 351

    Yeah I tried it out and it ran very well (took all my processor cycles too :))
    That might be a little overkill for the lighting in a game though... Slow computers ftw
  6. agi_shi

    agi_shi Newcomer, in training Topic Starter Posts: 507

    Lol. I'll leave it in as an option for high-end rigs. Otherwise it'll be semi-per-pixel.

    As for processor cycles... =) No sleep() in it, will eat up all you can give it.

    And... shadows!
    [​IMG]
    (1 green spotlight, 1 ... something-ish point light, 1 yellow point light at camera not causing shadows)
  7. TimeParadoX

    TimeParadoX Newcomer, in training Posts: 2,438

    Demo was pretty good!

    You should in the next demo add some guys guarding a big portal and you shoot boxes at them to make them cry then you go and kick them in the balls and rush into the portal! Muahahahaha :)
  8. cfitzarl

    cfitzarl TechSpot Chancellor Posts: 2,520   +9

    I liked the demo too :D ! Good work so far :D !
  9. agi_shi

    agi_shi Newcomer, in training Topic Starter Posts: 507

    Cool, nice to hear that!

    Out of curiosity, how'd it run? I'm interested as to how a heavy pixel shader runs on different cards... For simple testing, place max lights in a close-to-one spot and make sure they're all in view.

    An FPS, what settings you use (including whether it was GL or D3D) would be fine I guess. And a gfx, too, unless you have it in your sig or something.

    For me, at 1440x900 fullscreen, 6x AA it runs at ~30FPS on D3D (you know my trusty good 'ol PS2 X850XT that I love but hate that it's restricting my pixel shaders)...
  10. agi_shi

    agi_shi Newcomer, in training Topic Starter Posts: 507

    More parallax goodness!

    [​IMG]

    (wow, I better start working on the portals...)
  11. agi_shi

    agi_shi Newcomer, in training Topic Starter Posts: 507

  12. TimeParadoX

    TimeParadoX Newcomer, in training Posts: 2,438

    nice video agi_shi, it reminds me of a Doom 3 / Quake 4 lighting :)
  13. agi_shi

    agi_shi Newcomer, in training Topic Starter Posts: 507

    Well, it's not really any different, so it looks similar =D. Also, I guess it looks like Doom3 because there's no ambient light :D
     
  14. agi_shi

    agi_shi Newcomer, in training Topic Starter Posts: 507

    PORTALS!

    [​IMG]

    [​IMG]

    [​IMG]

    [​IMG]

    [​IMG]

    [​IMG]

    There's no passing through yet because I haven't finished the physics. Once I do the physics, expect "Fun With Portals (tm)".
  15. agi_shi

    agi_shi Newcomer, in training Topic Starter Posts: 507

    2 more which were over the limit :D

    [​IMG]

    [​IMG]

    Video: http://www.jeepbarnett.com/narbaculardrop/community/Portalized/v01dEngine_Portals.avi
    DISCLAIMER: THE VIDEO IS OLD! There are several bugs in the video that are now non-existent:
    1) The 1:1 portal ratio has been fixed.
    2) The "wiggly" portal you saw in the middle of the video was a non-reproducible bug. No matter what I do, I can't reproduce it. It's as good as non-existent.
    3) Lighting now works like in the above images. Sorry for the 100% ambient light.
    4) Several other things.
    Make sure you have the Xvid codec installed.
  16. Jacal

    Jacal Newcomer, in training Posts: 126

    dude you rock :cool:

    i am just trying to learn about programming because heh seeing as how i work at an internet cafe/business centre i finally have access to a computer :)

    still browsing around for a good website as to which i can learn programming and stuff (not being too successful but still trying)....

    and i'm 19 so lol trust me you are going to go places with the knowledge that your currently possess

    keep up the good work :wave:
  17. agi_shi

    agi_shi Newcomer, in training Topic Starter Posts: 507

    Website... Try Gamedev.net. Join the forums, they are the best game programming site/forums around.

    As for learning... I suggest C++. Many say "DO NOT START WITH IT, IT'S OVER-COMPLICATED!!!111!!11one!!", but I said "do start with it, it's the industry standard". I did, and it wasn't really all that "complicated". Well, it is, but it's fun :D
  18. Jacal

    Jacal Newcomer, in training Posts: 126


    thanks much for that :D
  19. agi_shi

    agi_shi Newcomer, in training Topic Starter Posts: 507

    I don't know what your options are, but if you can get a book... just one book... make SURE it is "Beginning C++ Game Programming". It teaches C++ from nothing all the way to polymorphism, inheritance, classes, pointers, and a bunch of other advanced stuff. Why does it say "game" in there? Because it teaches C++ from a game perspective.

    No, you don't get to make a 3D FPS on the last chapter. You don't get 3D tetris on the third. You don't get anything 3D at all. You don't get anything 2D either. You get a console-based tic-tac-toe on the sixth chapter :D However, like a great programmer said:
  20. almcneil

    almcneil TechSpot Guru Posts: 1,554

    As a former high tech engineer, I'd have to agree. C++ and VisualBasic are the best languages to learn first. I actually harken long back to the days when we just had 'C' but a lot of application layer programs are now in C++ and VisualBasic.
  21. Jacal

    Jacal Newcomer, in training Posts: 126

    Alright bro thanks for that insight we should get in touch one day :p so we can talk more about this if needed :p
    I will work on getting that book. Although my main interests are game design and web design i was told programming is really helpful in that aspect.
  22. agi_shi

    agi_shi Newcomer, in training Topic Starter Posts: 507

    I agree with all but VisualBasic.

    If I had to choose a second language... most probably C# or Java (thinking of GUI's - VisualBasic ;))

    If I had to choose a language irregardless of what I'll use it for... probably Haskell or Lisp.
  23. TimeParadoX

    TimeParadoX Newcomer, in training Posts: 2,438

    So this is going to be a FPS or a TPS ( third person view )

    If it was a FPS you should make the weapons more weird like the guns from Serious Sam / Fruit Life ( Fruit Life is a Half-life 2 mod that makes the game more... fruity :D )
  24. agi_shi

    agi_shi Newcomer, in training Topic Starter Posts: 507

    It's going to feel like an FPS but there won't be any guns or NPCs. It'll be a puzzle-based game where you're the "last one standing", and must escape.
  25. almcneil

    almcneil TechSpot Guru Posts: 1,554

    When it comes down to it, once you learn a couple of programming languages, it gets easier to learn others. The hard part learning to THINK as a programmer. It's not for everyone. As well, what languages you learn has more to do with what jobs you get rather than personal choice. There are still some who program in COBOL and FORTRAN!! puke: I wouldn't worry too much about the exact languages.

    BTW, there is no such word as "irregardless". It's just "regardless" :p


Add New Comment

TechSpot Members
Login or sign up for free,
it takes about 30 seconds.
You may also...


Get complete access to the TechSpot community. Join thousands of technology enthusiasts that contribute and share knowledge in our forum. Get a private inbox, upload your own photo gallery and more.