[Plib-devel] desperate plea for help
Brought to you by:
sjbaker
From: Curtis L. O. <cu...@in...> - 2000-03-04 03:23:58
|
Ok, I've been beating my brains on this for the last 48 hours and I'm about ready to give up (except I can't, so I keep bashing my head on it.) I'm hoping that some kind soul will have pity on me and help me out. I'm sure I'm doing something stupid someplace, but for the life of me I can find out what that is. My ultimate goal is to build a nice generic sky with sun, moon, stars, haze at the horizon, etc. all within the structure of ssg. I'm doing this for the FlightGear project, but I'm hoping that when I'm done this could be a quick easy drop in for others who want to add a decent/realistic sky quickly to their ssg-based projects. (with the possibility of having all the astronomical objects placed correctly for time and view position.) Every one needs this because even indoor worlds have windows, right? :-) I'm a good ways along with this effort, but I've hit a problem with texturing. I've tried to boil this problem down to an example that is as simple as I can get it. What I've done is try to build a simple object (square), texture it with the "wood.rgb" texture for now, and add it into the sky in the plib "tux" example program. I'm attaching my changes to the "tux" example program (from the plib_examples-1.1.8 distribution). It's about 4k compressed (4 small files) so hopefully I'm not blatantly violating list ettiquete. This includes a replacement Makefile.am, a replacement tux_example.cxx and two new files: skysun.cxx and skysun.hxx. Just untar this over top the examples/ssg/tux directory and you should be able to build it. You should see a wood textured square in the sky, but you don't. This is the problem. Instead, you'll see a solid white square in the sky. If anyone can tell me why the texture isn't getting applied and what I can change to make this work, I will owe you a virtual beer ... no make that a virtual 6 pack. By tomorrow I may be handing out first born sons. I'm guessing this problem is centered around a screwed up opengl state configuration, but I'm stuck ... I've tried everything I can think of. The worst part is that I've gotten all kinds of texturing to work in the FlightGear project ... I just can't get it to work in this simple example. Help! Curt. -- Curtis Olson University of MN, ME Dept. Flight Gear Project Twin Cities cu...@me... cu...@fl... Minnesota http://www.menet.umn.edu/~curt http://www.flightgear.org |