Stencil Buffer Tutorial Port.. test me! (linux)

This is a discussion on Stencil Buffer Tutorial Port.. test me! (linux) within the Game Programming forums, part of the General Programming Boards category; Hi, all. I decided to venture into the wonderful world of stencil buffered shadows in OpenGL. So, naturally, i point ...

  1. #1
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640

    Stencil Buffer Tutorial Port.. test me! (linux)

    Hi, all. I decided to venture into the wonderful world of stencil buffered shadows in OpenGL. So, naturally, i point my web browser at NeHe's site to check out the shadow casting tutorial (Lesson27). Sure enough, the linux port has makefile errors, so i fix those just to find missing include statements in the src. So i fixed that too and compiled the tutorial. The demo starts up and .... the objects are there, the room is there, but there are NO shadows being cast

    long story short: i grabbed the original tutorial (VC++) and created my own linux port. By doing this i also found many .... interesting ... refactorings made by whoever did the original linux port.

    Anyway, id appreciate it you guys could test this and make sure it runs ok. The original tutorial (along with key commands) can be found here
    Thanx

    edit: came back to grumble about how ".tgz" and ".tar.gz" arnt valid file extensions for cboard attachments. *grumbles off*
    Attached Files Attached Files

  2. #2
    Registered User linuxdude's Avatar
    Join Date
    Mar 2003
    Location
    Louisiana
    Posts
    926
    it works nicely for me. The shadow look realistic also. Although I had these two makefile warnings
    Code:
    make: Warning: File `Makefile' has modification time 5.4e+04 s in the future
    ...
    make: warning:  Clock skew detected.  Your build may be incomplete.
    But good work. Does it not work on your computer(laptop) or something?
    [edit]for your moving light source. Opengl Red book puts it in a push/pop matrix. Your way works though. I like your matri math in your code. Very eduucated. For a keyboard function, I add a usleep(100) at the beginning of it. I saw it in one of the NeHe tutorials. It said so it doesn't overload the function.[/edit]
    Last edited by linuxdude; 08-15-2004 at 07:10 PM.

  3. #3
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    thanks for the reply linuxdude. All that code is from the original NeHe tutorial except for the GLUT code and a few oddities here and there that i had to fix to get it running on linux. But im gonna let your compliments go to my head anyway hehe. It runs fine on my laptop, i just wanted to make sure it worked for others as im submitting it to NeHe.

    that makefile warning is kind of funny, you must live west of where i am

  4. #4
    Registered User
    Join Date
    Aug 2004
    Posts
    34
    no warnings for me
    ~flood

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C++ Operator Overloading help
    By Bartosz in forum C++ Programming
    Replies: 2
    Last Post: 08-17-2005, 01:55 PM
  2. MSVC Template Constructor/Assignment Errors
    By LuckY in forum Windows Programming
    Replies: 3
    Last Post: 07-22-2005, 03:57 PM
  3. need guidance to connect to serial port
    By gnychis in forum Linux Programming
    Replies: 1
    Last Post: 06-02-2005, 11:10 AM
  4. installing linux for the first time
    By Micko in forum Tech Board
    Replies: 9
    Last Post: 12-06-2004, 05:15 AM
  5. DOS, Serial, and Touch Screen
    By jon_nc17 in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 01-08-2003, 04:59 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21