Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (7th_zorro, degenerate_762, AndrewAMD, ozgur), 774 guests, and 0 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
Blue Background #87555
08/26/06 16:54
08/26/06 16:54
Joined: Feb 2006
Posts: 62
teromous Offline OP
Junior Member
teromous  Offline OP
Junior Member

Joined: Feb 2006
Posts: 62
Is there a way to change the color of the default blue background to black? I'm not looking to place a sky cube/sphere, I just want to change the color.

Re: Blue Background [Re: teromous] #87556
08/26/06 17:40
08/26/06 17:40
Joined: Jun 2005
Posts: 656
G
Grafton Offline
User
Grafton  Offline
User
G

Joined: Jun 2005
Posts: 656
In the beginning of your main:

sky_color.red = 1;
sky_color.green = 1;
sky_color.blue = 1;

I would set Camera.clip_far to the lowest value you can get away with since
you will not have a sky entity to clip the cameras render range.



Not two, not one.
Re: Blue Background [Re: Grafton] #87557
08/26/06 17:43
08/26/06 17:43
Joined: Feb 2006
Posts: 62
teromous Offline OP
Junior Member
teromous  Offline OP
Junior Member

Joined: Feb 2006
Posts: 62
Thank you!

Re: Blue Background [Re: teromous] #87558
08/27/06 09:15
08/27/06 09:15
Joined: Feb 2003
Posts: 6,818
Minot, North Dakota, USA
ulillillia Offline
Senior Expert
ulillillia  Offline
Senior Expert

Joined: Feb 2003
Posts: 6,818
Minot, North Dakota, USA
You should use 0's for red and green, but 1 for blue - it's the absolute closest you can get to black without being black. Having it exactly black (all zeros) seems to cause strange things to happen when outside (try it once and see what happens - things can look very weird). If using 16-bit color instead of 32-bit color, then you'd set blue to 8 instead, again the absolute closest possible. I have all the numbers and I've run many tests to verify this.


"You level up the fastest and easiest if you do things at your own level and no higher or lower" - useful tip My 2D game - release on Jun 13th; My tutorials

Moderated by  HeelX, Spirit 

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