Advertisement

doubt??

Started by January 19, 2002 12:29 PM
0 comments, last by digitalash 23 years, 1 month ago
Hi, for a demo of mine i would like to add a sceenory as the background....but i dont know how to do the same...i tried to use glBitmap function with little success.... how can i do the same...examples will of great help... i would also like to know whether the following implementation of the same is a good idea.... create a huge cube which will encompass my small world (which consists of a road, a few buildings etc) and texture map the interior of the cube.... how can i tex map the interior of the cube...i have the cube loaded but i am finding tex mapping the interior of the cube a bit difficult...some example will be of great help Also i have another doubt in loading of .MD2 models...i followed the implemetation given in Game Programming tutorials in NEHE...i successfully loaded the model...but when i try to map the RUN state of the model to the UP arrow (so that when i move fwd the RUN animation takes place)...nothing happens...why is it??? Thanks in advance bye Ashwin
Ashwin "DiGiTaL-AsH" Desikan
quote:
Original post by digitalash
for a demo of mine i would like to add a sceenory as the background....but i dont know how to do the same...i tried to use glBitmap function with little success....

Don''t use glBitmap or glDrawPixels. Simply switch to an orthographic projection matrix and render a textured quad the same size as the image.

quote:
Original post by digitalash
create a huge cube which will encompass my small world (which consists of a road, a few buildings etc) and texture map the interior of the cube....

That''s both a bad and a good idea. Instead of a ''huge cube'' just create a small one that is rendered before anything else while depth testing is turned off. This method is called a ''sky box'' normally.

This topic is closed to new replies.

Advertisement