FPC+Lazarus+OpenGL - anything I should know? lazarus / 13-General ---------------------------------------------------------------------- Wodzu · 2010-01-21 18:04 Hi guys. Currently I have Windows 7 32Bit version. I do not have installed Lazarus and I am new to the OpenGL (altough I have an experience with Direct3D). Is there anything that I should know before starting to develop an 3D application in OpenGL? I want it to be crossplatform but my main OS will be Windows. Do I need to download a glut.dll from somewhere? Please tell me what version of Lazarus and FPC should I download? Thanks for your time. ---------------------------------------------------------------------- sasa · 2010-01-21 19:31 If you are math skilled, that is fairly enough. Very good engine for OpenGL is GLScene for Lazarus. If you want to use some low-level approach there is several ways. Current stable version for FPC is 2.4.0. For Lazarus latest SVN is always benefit. ---------------------------------------------------------------------- Wodzu · 2010-01-22 08:35 I do not have problems with math but I was wondering if everything is stable? GLScene seems to be a bit heavy in terms of CPU usage? I spent few monts on my algorithm for generating lakes in 2D. I have a heightmap and all the information needed to transform lake and terrain into 3D. Would you suggest me to use GLScene or do it from scratch? Also, what version of headers for OpenGL are transcribed to FPC? 2.1? ---------------------------------------------------------------------- Leledumbo · 2010-01-22 08:50 QuoteIs there anything that I should know before starting to develop an 3D application in OpenGL?Sure, learn how to use OpenGL. I learned it from NeHe. There's also a bok called "Beginning OpenGL Game Programing" (or something like that) that explains the inner workings of OpenGL (well... if you like to know the low level details). QuoteI want it to be crossplatform but my main OS will be Windows. Do I need to download a glut.dll from somewhere?You can use GLUT but isn't required. Lazarus has OpenGL control package (find under components directory of your lazarus dir) and LCL already works cross platform. QuotePlease tell me what version of Lazarus and FPC should I download?Latest stable or daily snapshot is OK. QuoteI do not have problems with math but I was wondering if everything is stable?This is programming world. Even when a software is stated stable, it may still have bugs. You can always post questions and report to bugtracker whenever it occurs, and maybe you can find a solution. QuoteGLScene seems to be a bit heavy in terms of CPU usage?To my knowledge, not really. But it does a little heavier in memory than plain OpenGL. But you have everything required to build a non-trivial 3D apps with it, so it's worth enough. Anyway, as your code grows, it may reach the same peak as if you're using GLScene. QuoteWould you suggest me to use GLScene or do it from scratch?I don't really remember what components exist in OpenGL, but I think there's one for height map. Just try it. QuoteAlso, what version of headers for OpenGL are transcribed to FPC? 2.1?Depending on FPC version, but I guess it's 2.X nowadays.