PDA

View Full Version : TBGL backgrounds



Macros The Black
13-03-2009, 16:18
I have been messing around with the tunnel script and would like to put an image as a background.

Attached is the script i have been using in which i have created a quad and have tried to texture it with background image.
The problem is the texture for the tunnel is overiding the texture on the quad and forcing it to use the same texture as the tunnel.
The code seems to look right but im sure i am just missing something simple or have got stuff in the wrong order
Any help would be great.

Petr Schreiber
13-03-2009, 16:25
Hi,

you use TBGL_BindTexture 2 after TBGL_BeginPoly, that is considered not valid practise.
Put it right one line before TBGL_BeginPoly.


Petr

Macros The Black
13-03-2009, 17:01
So simple but so effective.
I knew it was something simple.
Will post code when finished playing with it.
It should be cool warping space tunnel when i am finished.
Maybe even with random lightning bolts running into the tunnels centre