C Board  

Go Back   C Board > General Programming Boards > Game Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 08-15-2004, 04:47 PM   #1
Crazy Fool
 
Perspective's Avatar
 
Join Date: Jan 2003
Location: Canada
Posts: 2,596
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
File Type: zip Lesson27.zip (8.5 KB, 33 views)
Perspective is offline   Reply With Quote
Old 08-15-2004, 06:04 PM   #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 06:10 PM.
linuxdude is offline   Reply With Quote
Old 08-15-2004, 06:41 PM   #3
Crazy Fool
 
Perspective's Avatar
 
Join Date: Jan 2003
Location: Canada
Posts: 2,596
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
Perspective is offline   Reply With Quote
Old 08-15-2004, 09:35 PM   #4
Registered User
 
Join Date: Aug 2004
Posts: 34
no warnings for me
__________________
~flood
subflood is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

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


All times are GMT -6. The time now is 02:51 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

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