Worm - Tunnel Effect
Blitz3D Forums/Blitz3D Programming/Worm - Tunnel Effect
| ||
Hi does anybody have any nice worm - tunnel effect code |
| ||
What you could do, is create a torus and rotate the craft around the Z-axis. Place the craft in the middle of the outer tubing. Rotate the torus around the Y-axis, and it should look like your going through a winding tunnel :o) |
| ||
i think he means more like this: |
| ||
Yes like the above code, Please some more, Please , please , please |
| ||
1. Look under samples->Richard_Betson->Binary_Cage_12 2. "Un effet de tunnel 3D" by Pigmin |
| ||
how can i use 2 images rather than squares and rectangles for the previous post thanks |
| ||
Replace;Texture tex=CreateTexture(32,32,1+8) SetBuffer(TextureBuffer(tex)) colR = 128 For j = 0 To 31 Step 8 colR = 64 - colR For i = 0 To 31 Step 8 colR = 64 - colR Color colR,colR,colR Rect(i,j,8,8,1) Next Next SetBuffer (BackBuffer()) ScaleTexture tex,.25,.25 ;Texture2 tex2=CreateTexture(64,64,1+4+8) SetBuffer(TextureBuffer(tex2)) For j = 0 To 16 colR = Rand(10,64) colG = Rand(0,128) colB = Rand(0,180) Color colR,colG,colB Rect(Rand(0,63),Rand(0,63),Rand(1,2),Rand(1,31)) Rect(Rand(0,63),Rand(0,63),Rand(1,31),Rand(1,2)) Next SetBuffer (BackBuffer()) ScaleTexture tex2,.1,.25 TextureBlend tex,2 TextureBlend tex2,3 With ;Texture tex=LoadTexture("nameoftexture1.png") ;Texture2 tex2=LoadTexture("nameoftexture2.png") |