Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, dr_panther, VoroneTZ), 837 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Rotating a sky cube #308188
02/02/10 03:24
02/02/10 03:24
Joined: Aug 2002
Posts: 2,183
Germany, BaW�
Rondidon Offline OP
Expert
Rondidon  Offline OP
Expert

Joined: Aug 2002
Posts: 2,183
Germany, BaW�
Hi,

due to the fact that the sun of my sky cube graphic is on the wrong position I`m wondering if it`s possible to rotate a skycube in realtime by 90 degrees. Sky.pan = 90 doesn`t work out. Using a sky dome isn`t possible because I want to use a specific sky cube texture.

Thanks for help,
Rondidon laugh

Re: Rotating a sky cube [Re: Rondidon] #308189
02/02/10 03:26
02/02/10 03:26
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
Try putting the 'pan = 90;' in the sky cube definition. Alternatively I think you could play with the u/v values to scroll the texture to a different position.

Re: Rotating a sky cube [Re: DJBMASTER] #308190
02/02/10 03:30
02/02/10 03:30
Joined: Aug 2002
Posts: 2,183
Germany, BaW�
Rondidon Offline OP
Expert
Rondidon  Offline OP
Expert

Joined: Aug 2002
Posts: 2,183
Germany, BaW�
pan = 90 doesn`t work out because I use a sky cube, not a sky dome. According to the manual the engine ignores angle and x/y values for sky cubes so I`m wondering if there`s any trick left...

U/V doesn`t work, too. It causes a graphic bug becuase the engine shifts every six sides of the sky cube and not the whole texture.

Re: Rotating a sky cube [Re: Rondidon] #308320
02/02/10 19:41
02/02/10 19:41
Joined: Aug 2002
Posts: 2,183
Germany, BaW�
Rondidon Offline OP
Expert
Rondidon  Offline OP
Expert

Joined: Aug 2002
Posts: 2,183
Germany, BaW�
Really no solution? Here`s an illustration to show what I want to do:



Re: Rotating a sky cube [Re: Rondidon] #308341
02/02/10 21:11
02/02/10 21:11
Joined: Jan 2003
Posts: 4,615
Cambridge
Joey Offline
Expert
Joey  Offline
Expert

Joined: Jan 2003
Posts: 4,615
Cambridge
use a shader for that, i remember someone using a sky cube shader somewhere lately (sorry for not being more specific).

Re: Rotating a sky cube [Re: Joey] #308344
02/02/10 21:14
02/02/10 21:14
Joined: Dec 2009
Posts: 256
USA , NY
msmith2468 Offline
Member
msmith2468  Offline
Member

Joined: Dec 2009
Posts: 256
USA , NY
can you just shift the texture in a paint program? it should be seemless right? so if you move it accordingly then it should work.


Mikes Wicked Games

www.mikeswickedgames.com
Re: Rotating a sky cube [Re: msmith2468] #308345
02/02/10 21:31
02/02/10 21:31
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline
Expert
alibaba  Offline
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
how about rotating the sun in the right dirction?


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
Re: Rotating a sky cube [Re: alibaba] #308563
02/03/10 17:39
02/03/10 17:39
Joined: Aug 2002
Posts: 2,183
Germany, BaW�
Rondidon Offline OP
Expert
Rondidon  Offline OP
Expert

Joined: Aug 2002
Posts: 2,183
Germany, BaW�
Rotating the sun light does`t look good at the level geometry, but I try to switch it in photoshop. If there`s any idea left, it`s the last possibility now :-)

Re: Rotating a sky cube [Re: Rondidon] #308682
02/04/10 12:55
02/04/10 12:55
Joined: Feb 2006
Posts: 616
Netherlands
cartoon_baboon Offline
User
cartoon_baboon  Offline
User

Joined: Feb 2006
Posts: 616
Netherlands
Yeah, there should be the offset option under filters in Photoshop if I'm not mistaken that can do exactly what you want.

Re: Rotating a sky cube [Re: cartoon_baboon] #308793
02/05/10 02:59
02/05/10 02:59
Joined: Jul 2004
Posts: 1,710
MMike Offline
Serious User
MMike  Offline
Serious User

Joined: Jul 2004
Posts: 1,710
why not rotate the whole level -90 AHHAH

Page 1 of 2 1 2

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1