Hi Frank,
what do you mean by 2 textures in one scene - like using 2 textures on one object?
If yes, then you need to use OpenGL headers and switch texturing units.
The rule is simple:
- bind texture unit n ( glActiveTextureARB )
- enable texturing ( TBGL_UseTexturing %TRUE )
- bind texture object ( TBGL_BindTexture )
... for each.
For texture coordinates, you should use glMultiTexCoord2fARB.
You can find example on this topic in TBGL Bonus Pack in folder SpecialEffects/Multitexturing.
I will bring multitexturing to TBGL, but I need to make more tests on Intels.
But I think the problem in your code seems to be you are using same texture for both "cities".
Just replace:
[code=thinbasic]
tbgl_BindTexture 1
tbgl_BindTexture 2
[/code]
with
[code=thinbasic]
tbgl_BindTexture 1
[/code]
And you will get both flowers and woman face
Petr
Bookmarks