BlitzSky
Community Forums/Showcase/BlitzSky
| ||
![]() I present you a derivate of my former project BlitzTiles. It is BlitzTiles without "tiles", just the cool day/night cycle with lighting usable for own projects. I added a small demo how to include it. The steering is like in BlitzTiles, reduced in some useless functions. If you need help just press F1 or "I" for runtime information. Download [442KB ZIP]: http://www.christianhart.de/bb/blitzsky/BlitzSky.zip Like BlitzTiles, BlitzSky is completely free and published under a modified BSD-License. And BlitzSky doesn't need additional files to download and it is much smaller - just unpack and play. Have fun! Here some screenshots: DAWN ![]() MORNING ![]() NOON ![]() MIDNIGHT ![]() |
| ||
Really nice work here. Thanks for sharing. Nicest sky I've seen outside of Oblivion. Ever thought of adding weather :) Well done. |
| ||
Excellent, thanks. |
| ||
wow!!! thank you so much for sharing... pretty good job!!! ;) |
| ||
Looks amazing! Great job! |
| ||
Hey this is really fantastic, appreciate you providing us with it. |
| ||
Truly stunning - thanks. |
| ||
Very nice transitions, very smooth and unnoticible. I thought the overall quality was top-notch. |
| ||
I just get "Texture does not exist"... Loading the "mywaves.dds" ? |
| ||
Yeshu, either update your B3D to the latest Version and/or check your graphics card driver version und update it, too. |
| ||
awesome! now to add some weather effects :D i have just the thing! fredborgs rain demo :D |
| ||
Thank you Christian. You have just saved me a power of work. I'm adding you to the list of contributors to my project. |
| ||
This is very good. However, it still retains the dual lighting of BlitzTiles - ie, when the sun sets below the horizon, it continues to light objects and, as the moon rises as the sun sets, the moon also lights the same objects from the opposite side. An additional check is required to turn the sun/moon off when they have set. You'll notice this is you press '9', to flip time to the point of sunset and the point of moonrise. Personally, after '; rotate light angle and point light sources/quads to pivot/cam', I would 'kludge' the code so that the moon does not rise until the sun has set fully and the sunlight has gone (deactivated from the scene) - then you can bring the moon up. This will give a more realistic effect to back and front surfaces that have darkened (due to sunset) and then you get the frontsurface lighting instigated by the rising moon. Realistically, sunlight overpowers and negates moonlight - ie, in real-life, when it is daytime and you can see the moon in the sky, then that moonlight is irrelevent (probably because the relection angle is wrong from our viewpoint on the earth). I'd also push the sunrise and sunset colours deeper into orange - the current lighting colour is too subtle. |
| ||
*wishes someone would start making these cool modules for miniB3D* |
| ||
*wishes someone would start making these cool modules for miniB3D* I think it would be better to wait for the revised MiniB3D to come out first. |
| ||
Hi there if someone helps me, I'm trying to implement the sky in my project, but I have two problems, the first is to get a white box in place of the moon, and the other problem is that apparently the car appears very high intercourse around the sky.![]() |
| ||
As far as I know Blitz Sky is not compatible with Fast extension. You could probably find another solution on the forums. |
| ||
If it is a pity, does not work out that initializing Fastext white box in place of the moon. |
| ||
Comment out the moon glow areas and the white box will disappear. |
| ||
----------------------------------------------------------------------------------------------- ; Loads the textures and images ; ----------------------------------------------------------------------------------------------- Function BS_LoadMedia() Local s#=BS_CloudScale If BS_LoadMediaToVRAM Then Local vram%=256 ; Create Moonphase BS_Texture_MoonSphere = BS_LoadTexture("moon.jpg" ,0+vram) BS_Texture_MoonQuad1 = BS_LoadTexture("moon1.png" ,2+vram) BS_Texture_MoonQuad2 = BS_LoadTexture("moon2.png" ,2+vram) ; Loading Textures BS_Texture_Water1 = BS_LoadTexture("mywaves.dds" ,2+8+vram,1.0/16 ,1.0/16 ,2) BS_Texture_Water2 = BS_LoadTexture("mywaves.dds" ,2+8+vram,1.0/32 ,1.0/32 ,5) BS_Texture_Clouds1 = BS_LoadTexture("clouds1.dds" ,2+8+vram,1.0/2 ,1.0/2 ,2) BS_Texture_Clouds2 = BS_LoadTexture("clouds2.dds" ,2+8+vram,1.0/s ,1.0/s ,2) BS_Texture_Clouds3 = BS_LoadTexture("iceclouds.dds" ,2+8+vram,1.0/s ,1.0/s ,2) BS_Texture_Sun1 = BS_LoadTexture("sun1.dds" ,2+8+vram) BS_Texture_Sun2 = BS_LoadTexture("sun2.dds" ,2+8+vram) BS_Texture_HorizonMask = BS_LoadTexture("mask.dds" ,2+8+vram) BS_Texture_Sunglow1 = BS_LoadTexture("sunshine1.dds" ,2+8+vram,1 ,1 ,3) BS_Texture_Sunglow2 = BS_LoadTexture("sunshine2.dds" ,2+8+vram,1 ,1 ,5) ;BS_Texture_Moonglow = BS_LoadTexture("moonmask.dds" ,2+8+vram,1 ,1 ,3) BS_Texture_SingleStar = BS_LoadTexture("dot.png" ,2+8+vram) BS_Texture_HazeGradient = BS_LoadTexture("haze.dds" ,2+8+vram) ; Loading Images BS_DomeBulge=LoadImage(BS_TexturePath+"dome.png") BS_Numbers=LoadImage(BS_FontPath+BS_FPSfont) End Function not exactly where you remove the glow of the moon. = ( |
| ||
Global BS_Hazesegments% = 16 Global BS_SkyObjectsMulti# = 32.0 Global BS_BrightnessMulti# = 0 ;128.0 Global BS_MoonTextureSize% = 512 Global BS_StarSizeMin# = 0.02 Global BS_StarSizeMax# = 0.03 Global BS_FixStarsProportion# = 0.95 Global BS_StarMinBrightness% = 64 Global BS_StarMaxBrightness% = 255 Global BS_Stars% = 1000 Global BS_SunInclination# = 45.0 Global BS_MoonPhase# = 0.0 Global BS_MoonInclination# = 60.0 Global BS_CloudSpeed# = 8.0 Global BS_CloudScale# = 4.0 Global BS_SunAngle# = 90.0 Global BS_MoonAngle# = 90.0 Global BS_HazeHeight# = 0.5 Global BS_ShowHaze% = 1 Global BS_ShowSky% = 1 Global BS_ShowStarTwinkle% = 1 Global BS_ShowBrightness% = 1 Global BS_Minheight# = -10 Ok Change BS_BrightnessMulti# = 0, But the moon is very opaque, any suggestions??, ![]() Ok conflict with Fastext points to this function: ; ----------------------------------------------------------------------------------------------- ; Updates Sun Brightness FX ; ----------------------------------------------------------------------------------------------- Function BS_UpdateBrightness() Local sx#,sy#,sz# Local mx#,my#,mz# Local brightness#,a#,x#,y# ; get sun quad position in 3D space sx=EntityX(BS_Sun1,1) sy=EntityY(BS_Sun1,1) sz=EntityZ(BS_Sun1,1) CameraProject BS_Camera,sx,sy,sz ; calculate 2D position of sun quad x=1-Abs(BS_Normalize(ProjectedX(),0,BS_Screenwidth-1,-1,1)) y=1-Abs(BS_Normalize(ProjectedY(),0,BS_Screenheight-1,-1,1)) If x<0 Then x=0 If y<0 Then y=0 ; exponential brightness brightness=(Exp(x)*Exp(y)) ; Normalize value and update sunglow quad size a=BS_Normalize(brightness,0,6,0.0,1) BS_UpdatePatch(BS_SunGlow,255,255,255,a,False,True) ScaleEntity BS_SunGlow,BS_BrightnessMulti*a,BS_BrightnessMulti*a,BS_BrightnessMulti*a ; get moon quad position in 3D space mx=EntityX(BS_Moon1,1) my=EntityY(BS_Moon1,1) mz=EntityZ(BS_Moon1,1) CameraProject BS_Camera,mx,my,mz ; calculate 2D position of sun quad x=1-Abs(BS_Normalize(ProjectedX(),0,BS_Screenwidth-1,-1,1)) y=1-Abs(BS_Normalize(ProjectedY(),0,BS_Screenheight-1,-1,1)) If x<0 Then x=0 If y<0 Then y=0 ; exponential brightness brightness=(Exp(x)*Exp(y)) ; Normalize value and update sunglow quad size a=BS_Normalize(brightness,0,6,0.25,1) ScaleEntity BS_MoonBright1,BS_BrightnessMulti*a*0.33,BS_BrightnessMulti*a*0.33,BS_BrightnessMulti*a*0.33 ScaleEntity BS_MoonBright2,BS_BrightnessMulti*a,BS_BrightnessMulti*a,BS_BrightnessMulti*a End Function suggestions?? Last edited 2010 |
| ||
When you need to run Fastext + BlitzSky, you must make the following changes in BlitzSky.bb.; Moonshines BS_MoonBright1=BS_CreateQuad(0,0,0,0,1+2+8+32) EntityParent BS_MoonBright1,BS_MoonPivot PositionEntity BS_MoonBright1,-128,0,0 EntityTexture BS_MoonBright1,BS_Texture_Sunglow2,0,1 EntityBlend BS_MoonBright1,1 BS_MoonBright2=BS_CreateQuad(0,0,0,0,1+2+8+32) EntityParent BS_MoonBright2,BS_MoonPivot PositionEntity BS_MoonBright2,-128,0,0 EntityTexture BS_MoonBright2,BS_Texture_Sunglow2,0,1 EntityBlend BS_MoonBright2,5 ;<<<<<< Here Problem. ![]() Change Code. EntityBlend BS_MoonBright2,1 ;<<<<<< Fix Problem. =) ![]() =) |
| ||
Good job Yue |
| ||
EXCELLENT job, Yue! :D |
| ||
Help, Moon x 3 Zise??? how?? ![]() |