Advertisement Jump to content


This topic is now archived and is closed to further replies.


BUILDINGS, RUNWAYS- how to render & texture?

This topic is 6328 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi! I would like to include a runway in my flight simlator but don''t actually know what is the right way to do so! Is it just a simple flat textured quad placed on the top of flat surface (terrain)? or there is a different way of doing this??? Also I want to add a few simple buildings! is it just the same way as with runways?? just textured quads everywhere? if so, do I render buildings separately from the terrain or they should be rendered all together ie. terrain & buildings as one thing and stored eg. in 1 vertex array?? Last question!!!- I''ve got one texture (256x256) of a building split into pieces which are all within one .bmp image. I am very curious how do u texture eg. a whole building with only one texture?? do u only extract a certain bit of an image at a time ie. write an algorithm that reads eg. 20 columns out of 256 & same with rows? if you know any good links or tutorials on this then please let me know asap!!!!!! Any help will be appreciated!!! thanks a lot!!

Share this post

Link to post
Share on other sites
I would do the runway as a big textured quad, unless it needs to be dynamically lit, in which case you you should split it up into many smaller quads.

How you make buildings depends on how detailed you want them. You could just make a textured box, but that''d look like crap up close, unless you had a really detailed and high-res texture. You probably won''t be getting a good look at it in a flight sim though, and you need as many polygons as you can get, so a box would probably work. Maybe add a polygonal door at the bottom and some street lights here and there to make it seem more like a city.

And to texture the whole building with one map, yes, you can use a small area of the texture map. Maybe your 3D modeller won''t be able to select exact coordinates, but as a programmer it''s very easy to do. Of course, that means you''ll have to either define the vertices of your building in the actual program, or figure out how to edit the vertex data in your model file and then save the changes you make to it.

And to render buildings, you''ll have to wait for someone else to reply^^ I''m pretty newbie in the world of 3D programming, so I don''t know what would be fastest. I''d probably render the terrain as a heightmap and then everything else as normal objects, but it might be faster to render the objects first, since they''d cover up quite a few of the landscape''s polygons, which might be faster, since it wouldn''t have to render any pixels twice (once for terrain, once for objects covering terrain)


DK Art (my site, which has little programming-related stuff on it, but you should go anyway^_^)

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!