R: [Plib-users] Grrr.... I only get a black screen
Brought to you by:
sjbaker
From: Paolo L. <p.l...@ci...> - 2004-08-26 12:00:16
|
Peter, try these: 1. disable lighting (state->disable(GL_LIGHTING)); 2. add the fourth vertex color (just three colors set for four vertices), or just add a single color, single normal (flat shading); 3. move the sgSetCoord/setCamera to the draw() section and use rotate_ as azimuth (4th param in sgSetCoord) in order to look around. Alternatively try loading a 3D model (get whatever 3DS model in internet) instead of creating the leaf internally. Let's hope and see... Paolo > -----Messaggio originale----- > Da: pli...@li...=20 > [mailto:pli...@li...] Per conto di=20 > Peter Poulsen > Inviato: gioved=EC 26 agosto 2004 10.09 > A: pli...@li... > Oggetto: [Plib-users] Grrr.... I only get a black screen >=20 >=20 > I have been playing around with wxWindow and ssg and I simply=20 > cannot get it=20 > working properly. >=20 > My program can be found here:=20 > http://rafb.net/paste/results/TcxCwP78.html=20 > It shows to=20 > windows. One is drawn using ssg and _should_ show a white=20 > rectangle, but only shows a black screen. The other window is=20 > drawn using=20 > direct opengl calls, and shows (and should show) a spinning=20 > red rectangle. >=20 > It can be compiled with this command: > g++ wxssg.cc -o wxssg `wx-config --cxxflags --libs --gl-libs`=20 > -lplibssg > -lplibul -lplibsg >=20 > Can anybody explain to me why only the red rectangle works? >=20 > PS. considering that it works with direct opengl calls, I=20 > don't think the=20 > problem is in wxWindow. >=20 > --=20 > A: Because it messes up the order in which people normally read text. > Q: Why is it such a bad thing? > A: Top-posting. > Q: What is the most annoying thing on usenet and in e-mail? >=20 >=20 > ------------------------------------------------------- > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media > 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 > Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > _______________________________________________ > plib-users mailing list > pli...@li... > https://lists.sourceforge.net/lists/listinfo/plib-users >=20 |