Search found 219 matches

by loonycyborg
Mon May 12, 2008 8:49 pm
Forum: General Discussion
Topic: Ogre Tech Demo
Replies: 64
Views: 14048

Re: Ogre Tech Demo

pd wrote:Well, whatever they are, Tzlaine was just talking about how they are rendered.
Then their phase is irrelevant, and Tzlaine should draw inspiration from photos of jovian planets, not from physical considerations.
by loonycyborg
Mon May 12, 2008 8:13 pm
Forum: General Discussion
Topic: Ogre Tech Demo
Replies: 64
Views: 14048

Re: Ogre Tech Demo

tzlaine wrote:I wasn't planning on giving gas giants separate atmospheres, because the whole planet is essentially an atmosphere.
Nope. Under such pressure even hydrogen is solid.
by loonycyborg
Tue Mar 25, 2008 7:00 pm
Forum: Support
Topic: [LINUX] Segmentation Fault
Replies: 22
Views: 5693

Re: Segmentation Fault

kroddn wrote:Are you sure it is necessary to use GL > 2.0? What for?
GL 2.0 is required for shaders.
by loonycyborg
Tue Mar 25, 2008 6:49 pm
Forum: Support
Topic: [LINUX] Segmentation Fault
Replies: 22
Views: 5693

Re: Segmentation Fault

Silvertree uses vertex buffer objects if it detects GL version >= 1.5 with GLEW. Otherwise it uses vertex arrays only.
by loonycyborg
Tue Mar 25, 2008 6:38 pm
Forum: Support
Topic: [LINUX] Segmentation Fault
Replies: 22
Views: 5693

Re: Segmentation Fault

freereign wrote:ATI Radeon 340M
Of course ATI drivers are known to suck, but someone with an ATI card was able to run Silvertree (which uses glDrawElements) without crashes...
by loonycyborg
Sun Mar 23, 2008 10:47 pm
Forum: Compile
Topic: "GL/gl.h" header not found
Replies: 36
Views: 5988

Re: "GL/gl.h" header not found

If there's -lGiGi in command line and you get undefined references to GG:Clr::Clr() that means that it found libGiGi*.so but it couldn't find these symbols in these libraries.
What's the output of

Code: Select all

$ readelf --symbols /usr/local/lib/libGiGi.so | grep Clr
?
by loonycyborg
Sat Mar 22, 2008 6:10 pm
Forum: Compile
Topic: "GL/gl.h" header not found
Replies: 36
Views: 5988

Re: "GL/gl.h" header not found

Do you have -lGiGi in linker command line? g++ -o freeoriond -pthread combat/Combat.o Empire/Empire.o Empire/EmpireManager.o Empire/ResourcePool.o network/Message.o network/MessageQueue.o network/Networking.o network/boost/error_code.o UI/StringTable.o universe/Building.o universe/Condition.o univer...
by loonycyborg
Thu Mar 20, 2008 6:35 pm
Forum: Compile
Topic: "GL/gl.h" header not found
Replies: 36
Views: 5988

Re: "GL/gl.h" header not found

What's in linker command line that produces undefined references? Does it contain -lGiGi*? If it doesn't, try configuring GG with 'scons with_boost="/usr" configure' so env["LIBPATH"] exists. Make sure there are no python backtraces and it installs .pc files correctly.
by loonycyborg
Thu Mar 20, 2008 5:38 pm
Forum: Compile
Topic: "GL/gl.h" header not found
Replies: 36
Views: 5988

Re: "GL/gl.h" header not found

freereign wrote:Still not working.
Do you get python backtraces during GG configure too?
by loonycyborg
Thu Mar 20, 2008 5:25 pm
Forum: Compile
Topic: "GL/gl.h" header not found
Replies: 36
Views: 5988

Re: "GL/gl.h" header not found

This is, indeed, the cause. SCons script crashed when creating the .pc file and it won't add -l linker flags for GiGi if pkg-config fails.
by loonycyborg
Thu Mar 20, 2008 4:46 pm
Forum: Compile
Topic: "GL/gl.h" header not found
Replies: 36
Views: 5988

Re: "GL/gl.h" header not found

Did you do "scons install" after compiling GG last time? Also, there could be old version with different suffix or in different directory that is used instead of the latest svn version...
by loonycyborg
Thu Mar 20, 2008 4:26 pm
Forum: Compile
Topic: "GL/gl.h" header not found
Replies: 36
Views: 5988

Re: "GL/gl.h" header not found

EyesKiller wrote:undefined reference to `GG::Clr::Clr()'
Make sure that there's no old GiGi library somewhere in link path.
by loonycyborg
Tue Mar 18, 2008 10:34 am
Forum: Programming
Topic: Texture rotation
Replies: 49
Views: 7324

Re: Texture rotation

Flatline wrote: Any link on good material from the opengl experts? :D
OpenGL Red Book is considered to be good material by OpenGL experts. Also, there are OpenGL man pages(E.g. try "man glNewList").
by loonycyborg
Tue Mar 18, 2008 10:15 am
Forum: Programming
Topic: Texture rotation
Replies: 49
Views: 7324

Re: Texture rotation

Flatline wrote:But as I said with my small knowledge of opengl I didn't completely understand it. Anybody can comment the DisplayFunc()?
It's already well commented. What did you not understand about it?
by loonycyborg
Sat Mar 15, 2008 5:57 pm
Forum: Programming
Topic: Texture rotation
Replies: 49
Views: 7324

Re: Texture rotation

Assuming that OrthoBlit does actual rendering, if you rotate texture matrix before calling it and reset the matrix after calling it, then only these calls will be affected by rotation. If you want to restore previous texture matrix you can use glPushMatrix - glPopMatrix: glMatrixMode(GL_TEXTURE); gl...