Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 984 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19053 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Scaling sky? #238857
11/30/08 20:04
11/30/08 20:04
Joined: Aug 2003
Posts: 716
Canada, Toronto
thegamedesigner Offline OP
User
thegamedesigner  Offline OP
User

Joined: Aug 2003
Posts: 716
Canada, Toronto
Hello, I have a skycube that I display in the level. But I need to scale it (as it looks too big right now).

However, it seems that sky cubes ignore the scale_x, scale_y stuff, and I can't seem to find another way to scale the sky. I just want the sky to look farther away. If this was a sprite I would just scale it to half to get the look I want (crisper and smaller), but I don't know how to do that with a skycube.
I have tried searching the forum, using photoshop to scale the sky size, alter the clip_far, and moving the sky's.x/y/z.

I did find something in the example code of bmap_blit in the manual, with the label:
// create a scaled-down cubemap from the level sky cube

But I can't get that to work.


Right, thats my problem, and all that I have tried so far. Any expert out there know the answer?

Thanks,


My games - www.spyeart.com
Re: Scaling sky? [Re: thegamedesigner] #238914
12/01/08 05:21
12/01/08 05:21
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
Well, of course scale_x - scale_z are ignored. You can't scale down the sky as the sky is rendered in an infinite distance and therefore has always the same size. The example in the manual just scales down the sky in a sense of downsampling it. It is not possible to scale the sky at all.

Why do you intend to that? What do you expect from scaling the sky?


Always learn from history, to be sure you make the same mistakes again...
Re: Scaling sky? [Re: Uhrwerk] #238916
12/01/08 05:31
12/01/08 05:31
Joined: Aug 2003
Posts: 716
Canada, Toronto
thegamedesigner Offline OP
User
thegamedesigner  Offline OP
User

Joined: Aug 2003
Posts: 716
Canada, Toronto
The art for the sky is drawn to be a certain dist away, ie: more of it should be displayed on the screen then is being done.

I just inverted a cube, skinned the inside with the cube map, and attached it to the camera.

Thanks,


My games - www.spyeart.com
Re: Scaling sky? [Re: thegamedesigner] #239001
12/01/08 18:08
12/01/08 18:08
Joined: Dec 2003
Posts: 1,220
Just down the road from Raven
BlueBeast Offline
Serious User
BlueBeast  Offline
Serious User

Joined: Dec 2003
Posts: 1,220
Just down the road from Raven
could you pehaps use a model for your sky? I usually use half of a sphere with a code that allows the sky to follow the player so it looks like it never moves.

Just a thought since sky cubes arent as flexible for various things.

- Jason


Gamestudio Pro 6.4
Pentium 4 3.0 GHz 800MHz BUS
AtiRadeon 9800 pro 256Mb 21" Monitor
1 Gig DDR RAM
36 Gig RAPTOR SATA+ 120 Gig SATA
SB Audigy 2 w/ 450 watt Logitech Z680 5.1

www.nordicepitaph.com

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