sky box rotation?

Blitz3D Forums/Blitz3D Programming/sky box rotation?

ala_samodi(Posted 2004) [#1]
I'm changing my castle demo alot and was woundering how I can get my sky box to rotate?


Bot Builder(Posted 2004) [#2]
Welcome to the forums.

I'd do this in the main loop:
TurnEntity MySkyBox,0,.1,0

You can change .1 to whatever speed you like.


ala_samodi(Posted 2004) [#3]
Thx! but it doesnt constantly rotate?


Bot Builder(Posted 2004) [#4]
Are you sure you have it in your main loop?

For instance:
While Not KeyHit(1)
 TurnEntity SkyBox,0,.1,0
 RenderWorld
 Flip
Wend


Also make sure that you have the variable name of the skybox correct.


ala_samodi(Posted 2004) [#5]
WTF!! it still doesn't rotate!! im using the castle demo??


Bot Builder(Posted 2004) [#6]
Figured it out - apparently the sky is stored in the shasecam type

TurnEntity camera1\sky,0,.1,0



ala_samodi(Posted 2004) [#7]
well now it says "variable mustbe a Type" and i'm not sure were to put it either?


GfK(Posted 2004) [#8]
Find line 99, which is this:
PositionEntity sky,EntityX(c\camera),EntityY(c\camera),EntityZ(c\camera)


...and put this line below it:
TurnEntity c\sky,0,0.1,0


Be warned that the skybox in the castle demo has mountains on it, and rotating it does look incredibly silly.


ala_samodi(Posted 2004) [#9]
i've changed the background! And I want it to look like Zelda:OOT and it Still says "variable mustbe a Type" btw on mine its line 85? GfK can you just send me your castle demo!? becuz urs works right? Wtf now my castle demo has a black screen??


GfK(Posted 2004) [#10]
GfK can you just send me your castle demo!
Can't, really. It's copyrighted and i might get in trouble. Your best option would be to reinstall Blitz if you've knackered up the sample code.


Rob(Posted 2004) [#11]
"WTF" won't get you much help around here. Do you say to your mother:

"WTF? where's the gravey?"

No you don't. So don't expect any help until you start being polite.


WolRon(Posted 2004) [#12]
WTF is going on these days...


ala_samodi(Posted 2004) [#13]
I wasnt talking to I was talking to my self! so why TF do you care!!


WolRon(Posted 2004) [#14]
WTF!!!


Warren(Posted 2004) [#15]
TF, indeed!


Damien Sturdy(Posted 2004) [#16]
girls girls, chill out. sheesh.


Warren(Posted 2004) [#17]
WTF?!


sswift(Posted 2004) [#18]
Double you tea eff?


Damien Sturdy(Posted 2004) [#19]
doubleyateeth


pah *whacks head*


ala_samodi(Posted 2004) [#20]
WOOT I got it!!