360° Textur

Previous topic - Next topic

WPShadow

Hi!

Wie verwende ich eigentlich eine 360° Textur?

Ich meine damit, daß ich eine Textur habe, die ich sozusagen kugelförmig außen um meine 3D - Landschaft lege und je nachdem, wohin ich mich drehe, sehe ich genau den von der Kamera eingefaßten Teil der Textur...

GLG

W.
AMD X2 4600, 2 GB Ram, ATI X1950 XTX, XP PRO SP2: GLB Premium 10.beta_dingsi, <(´.´<) Kirby Dance (>`.`)>
http://lostrevenant.blogspot.com
alea iacta est

Kitty Hello

Skybox!
Ich hab' ein Beispeil irgendwo...
Ach: Schau Dir mal 3D JARCK oder S-Zero an. Ich poste hier mal was, wenn ich wieder d'rüberstolper.

WPShadow

Danke für die Problemlösung:


Code (glbasic) Select
LOADSPRITE "skybox.bmp", 1
X_LOADOBJ "skybox.ddd", 2


WHILE TRUE

X_MAKE3D 1, 10000, 45

MOUSESTATE mx, my, b1, b2
INC my,90

X_CAMERA 0,0,0, 1,0,0

sc = 150
X_SCALING sc, sc, sc
X_ROTATION mx, 0,-1,0
X_ROTATION my, 0,0,1
X_SETTEXTURE 1, 0
X_DRAWOBJ 2, 0
AMD X2 4600, 2 GB Ram, ATI X1950 XTX, XP PRO SP2: GLB Premium 10.beta_dingsi, <(´.´<) Kirby Dance (>`.`)>
http://lostrevenant.blogspot.com
alea iacta est