Google

SkyX plugin [SkyX 0.1 released! - Page 1]

A place to show off your latest screenshots and for people to comment on them. Only start a new thread here if you have some nice images to show off!

Moderators: Moderators, OGRE Team

SkyX plugin [SkyX 0.1 released! - Page 1]

Postby Xavyiy » Sun Mar 08, 2009 12:44 am

SkyX pretends to be a photorealistic, simple and fast sky simulator.

SkyX features:

  • Atmosphere manager(Atmosphere information, funtions that returns the sky colour at a especified direction, ...)
  • Sun, Moon and star field
  • Layer clouds
  • Full volumetric cloud system
  • Ground atmospheric light absorcion pass(Allows you to simulate the atmospheric light absorcion in scene objects)
  • HDR and LDR support
  • Shader Model 2.0 capable(HLSL for the moment)
  • Full integration with Hydrax 0.5.1 and code example(HydraxSkyXDemo: http://www.ogre3d.org/forums/viewtopic.php?f=11&t=52166)
  • 2 example applications: Terrain & Volumetric cloud system

Screenshots:

ImageImage
ImageImage
ImageImage

Download:
SkyX 0.1 Api+Demos sources + Api doc: http://modclub.rigsofrods.com/xavi/SkyX/SkyX-v0.1.rar - 17.4Mb
SkyX 0.1 precompiled demos http://modclub.rigsofrods.com/xavi/SkyX/SkyX-v0.1_Demos.rar - 6.4Mb

Hope you like it!

Xavier Verguín
Last edited by Xavyiy on Sun Sep 20, 2009 10:25 pm, edited 9 times in total.
Xavier Verguí­n González
-------------------------------------------
Hydrax! Ogre3d Water plugin
SkyX! Ogre3d Sky & Clouds plugin
Hydrax-SkyX demo 1.0!
Paradise Engine - Coming soon!
User avatar
Xavyiy
OGRE Expert User
OGRE Expert User
 
Posts: 540
Joined: Tue Apr 12, 2005 2:35 pm
Location: Albacete - Spain

Re: SkyX plugin [Preview]

Postby scratchyrice » Sun Mar 08, 2009 12:50 am

Looks great! May switch to this system from caelum, Depending on how it turns out. I like the "HDR support" part of it.

Keep up the good work!

Cheers

Scratchy
AMD Althon X2 6000+, Geforce 8800 GTS BFG 650MB, 2GB DDR 2 ram +
Intel I5 750 2.66Ghz per core, Geforce 280GTX 1Gb, 4Gb DDR 3 ram, 2000Gb hdd space
scratchyrice
Veteran
 
Posts: 284
Joined: Thu Apr 27, 2006 9:14 pm
Location: United Kingdom - England

Re: SkyX plugin [Preview]

Postby Nargil » Sun Mar 08, 2009 12:54 am

Lets hope it won't be such an fps killer as hydrax ;-)
Looks promising. I like the clouds. I'd like the sky to be orange at sunset. At the moment it's rather yellow.
Hardcore libertarian, hardcore programmer.
Dell M6300: T9300, 4GB, Quadro FX1600M, 17" 1920x1200p non-glare, OCZ Vertex 120 + external Seagate 120GB 7200.3
Use the power of 2 - literally. Non 2^n texture sizes may crash your graphic driver
User avatar
Nargil
Regular
 
Posts: 123
Joined: Thu Feb 15, 2007 8:47 pm

Re: SkyX plugin [Preview]

Postby scratchyrice » Sun Mar 08, 2009 12:56 am

Lets hope it won't be such an fps killes as hydrax

No offence, But that's like saying "Lets hope crysis wont be such an fps killer" - Of course it will be, But you get quality for the payment.

Cheers

Scratchy
AMD Althon X2 6000+, Geforce 8800 GTS BFG 650MB, 2GB DDR 2 ram +
Intel I5 750 2.66Ghz per core, Geforce 280GTX 1Gb, 4Gb DDR 3 ram, 2000Gb hdd space
scratchyrice
Veteran
 
Posts: 284
Joined: Thu Apr 27, 2006 9:14 pm
Location: United Kingdom - England

Re: SkyX plugin [Preview]

Postby Xavyiy » Sun Mar 08, 2009 12:58 am

@Nargil
FPS are about 115 on my 8600GT (laptot) ;)
Sunset colour depends of the atmosphere parameters(Inner radius, outer radius, camera height position, wavelenght coeficients, raileigh and mie multipliers, etc...)

Xavi
Xavier Verguí­n González
-------------------------------------------
Hydrax! Ogre3d Water plugin
SkyX! Ogre3d Sky & Clouds plugin
Hydrax-SkyX demo 1.0!
Paradise Engine - Coming soon!
User avatar
Xavyiy
OGRE Expert User
OGRE Expert User
 
Posts: 540
Joined: Tue Apr 12, 2005 2:35 pm
Location: Albacete - Spain

Re: SkyX plugin [Preview]

Postby Nargil » Sun Mar 08, 2009 1:02 am

with HDR ? Even if without HDR - still not bad, I guess.
Hardcore libertarian, hardcore programmer.
Dell M6300: T9300, 4GB, Quadro FX1600M, 17" 1920x1200p non-glare, OCZ Vertex 120 + external Seagate 120GB 7200.3
Use the power of 2 - literally. Non 2^n texture sizes may crash your graphic driver
User avatar
Nargil
Regular
 
Posts: 123
Joined: Thu Feb 15, 2007 8:47 pm

Re: SkyX plugin [Preview]

Postby Xavyiy » Sun Mar 08, 2009 1:04 am

A very basic HDR algoritm is applied to the scene: 1 - exp(-uExposure * Colour)
Xavier Verguí­n González
-------------------------------------------
Hydrax! Ogre3d Water plugin
SkyX! Ogre3d Sky & Clouds plugin
Hydrax-SkyX demo 1.0!
Paradise Engine - Coming soon!
User avatar
Xavyiy
OGRE Expert User
OGRE Expert User
 
Posts: 540
Joined: Tue Apr 12, 2005 2:35 pm
Location: Albacete - Spain

Re: SkyX plugin [Preview]

Postby Nargil » Sun Mar 08, 2009 1:11 am

Good. You've got my blessing ;)
Is also this going to be a replacement for hdrlib (SkyX integrated HDR system) or is it just the sky, and setting hdr is up to the main application ?
Hardcore libertarian, hardcore programmer.
Dell M6300: T9300, 4GB, Quadro FX1600M, 17" 1920x1200p non-glare, OCZ Vertex 120 + external Seagate 120GB 7200.3
Use the power of 2 - literally. Non 2^n texture sizes may crash your graphic driver
User avatar
Nargil
Regular
 
Posts: 123
Joined: Thu Feb 15, 2007 8:47 pm

Re: SkyX plugin [Preview]

Postby Nauk » Sun Mar 08, 2009 1:26 am

Awesome Xavy, looking forward to it - especially knowing it comes from the same hand as Hydrax :)
User avatar
Nauk
Veteran
 
Posts: 492
Joined: Thu May 11, 2006 9:12 pm
Location: Sweden

Re: SkyX plugin [Preview]

Postby Virion » Sun Mar 08, 2009 2:28 am

this is awesome! :D
User avatar
Virion
Regular
 
Posts: 78
Joined: Mon Jul 24, 2006 11:06 am
Location: Malaysia

Re: SkyX plugin [Preview]

Postby Kencho » Sun Mar 08, 2009 3:39 am

Awesome! Looks great so far :D
Image
User avatar
Kencho
OGRE Moderator
OGRE Moderator
 
Posts: 4534
Joined: Fri Sep 19, 2003 6:28 pm
Location: Burgos, Spain

Re: SkyX plugin [Preview]

Postby amigoface » Sun Mar 08, 2009 10:42 am

look fantastic as usual ... great work

are you planing to include a 3d cloud engine ?
if yes this is a nice implementation built with another lib
http://www.markmark.net/SkyWorks/

ciao :wink:
User avatar
amigoface
Newcomer
 
Posts: 12
Joined: Mon Oct 13, 2008 3:01 pm

Re: SkyX plugin [Preview]

Postby altren » Sun Mar 08, 2009 10:43 pm

I like this screenshots. Is it also possible to show some video of demo?
Earlier you used Caelum with Hydrax. Can you describe main difference between SkyX and Caelum and why you started writing your own skies.
ImageImage
User avatar
altren
Veteran
 
Posts: 279
Joined: Tue Oct 24, 2006 9:02 am
Location: Russia Moscow

Re: SkyX plugin [Preview]

Postby xadhoom » Sun Mar 08, 2009 11:43 pm

Wow, looks very good! Because you speak of the ability to look up sky pixel colours you may be interested in Sh´s: viewtopic.php?f=5&t=47393

xad
User avatar
xadhoom
Veteran
 
Posts: 966
Joined: Fri Dec 28, 2007 4:35 pm
Location: Germany

Re: SkyX plugin [Preview]

Postby Pyritie » Mon Mar 09, 2009 12:08 am

altren wrote:Earlier you used Caelum with Hydrax. Can you describe main difference between SkyX and Caelum and why you started writing your own skies.

I'm interested in knowing this too.
I use Mogre!
Image Image
I'm the Game Development Art Gallery Moderator on deviantART!
User avatar
Pyritie
Regular
 
Posts: 175
Joined: Wed Feb 25, 2009 6:15 pm

Re: SkyX plugin [Preview]

Postby Xavyiy » Mon Mar 09, 2009 12:38 am

@Nargil
As the algoritm I'm using (From GPU gems 2) is designed for HDR rendering, I've implemented a very easy and simple solution, Two options: the first one is to use the simple 1 - exp(-exposure*color) ecuation in all SkyX options, and the second one is render the SkyX materials in HDR range and then the HDR to LDR conversion is done by the main application, using they own HDR approach. You can switch between options with SkyX::setAutoHDREnable(const bool& Enable).

@Nauk, Virion, Kencho
Thanks! :)

@amigoface
At the moment I haven't planed to include a 3D cloud engine.
Anyway I think SkyX cloud system is pretty realistic(I've done today some modifications, now the fake volumetric effect is really nice!:) )

@altren
I'll record a video and upload it during this week.
The main reason to start my own sky plugin, is the fact that one of my aims for the 'Paradise codename' benchmark project is to use only code write by me(Except Ogre, of course!) and... what's better: use a built-in sky system, or write a generic plugin that anybody who want can use? ;)
Differences: (just big differences)
- Atmospheric scattering algoritm
- Pixel shader requeriments(Caelum requires SM 3.0 for some components, SkyX is SM 2.0 capable)
- The cloud system(Both uses a layered-based system, but skyx clouds have basic volumetric effects using a modified kind of parallax mapping)
- Fog: SkyX simulates light absorcion using an aditional pass in objects using the same algoritm of the sky, when Calums uses a fog approach.
- HDR support(I don't know if caelum have this feature)
- Clock system: Calum have an awesome universal clock system, SkyX just have the sunrise, sunset and current time...
- Precipitation system, skyx haven't.
- Some minor features, like getting the colour of the sky in a direction simulating the GPU programs in the CPU, SkyX has, but I'm sure that caelum have a lot of features that skyx haven't, and probably it won't have.

@xadhoom
SH lighting is very easy to implement with SkyX, I think the SkyX::AtmosphereManager::getColourAt(const Ogre::Vector3& Direction) funtion is enough to get SH working :), I will look into this and maybe add it as a SkyX-core feature!

Thanks for opinions!

Xavi
Xavier Verguí­n González
-------------------------------------------
Hydrax! Ogre3d Water plugin
SkyX! Ogre3d Sky & Clouds plugin
Hydrax-SkyX demo 1.0!
Paradise Engine - Coming soon!
User avatar
Xavyiy
OGRE Expert User
OGRE Expert User
 
Posts: 540
Joined: Tue Apr 12, 2005 2:35 pm
Location: Albacete - Spain

Re: SkyX plugin [Preview]

Postby Kencho » Mon Mar 09, 2009 1:55 am

Your plan sounds really exciting, and now I'm curious about the changes to the fake volumetric clouds :D Can't wait to watch the video :)
Image
User avatar
Kencho
OGRE Moderator
OGRE Moderator
 
Posts: 4534
Joined: Fri Sep 19, 2003 6:28 pm
Location: Burgos, Spain

Re: SkyX plugin [Preview]

Postby Kojack » Tue Mar 10, 2009 7:25 am

SH lighting is very easy to implement with SkyX, I think the SkyX::AtmosphereManager::getColourAt(const Ogre::Vector3& Direction) funtion is enough to get SH working :), I will look into this and maybe add it as a SkyX-core feature!

Yep, that should be enough for generating an SH of the sky. Does the getColourAt method take into account clouds and sun, or is it just the sky colour?
User avatar
Kojack
OGRE Moderator
OGRE Moderator
 
Posts: 3135
Joined: Sun Jan 25, 2004 7:35 am
Location: Australia

Re: SkyX plugin [Preview]

Postby Xavyiy » Tue Mar 10, 2009 10:56 am

Kojack wrote:Yep, that should be enough for generating an SH of the sky. Does the getColourAt method take into account clouds and sun, or is it just the sky colour?

At the moment it only takes into account sky and sun colour(Sun isn't billboard based, it's calculated in the sky shader), for clouds... maybe emulating the clouds gpu programs in the cpu for the needed pixel, but for the moment, only sky and sun colour :)
Xavier Verguí­n González
-------------------------------------------
Hydrax! Ogre3d Water plugin
SkyX! Ogre3d Sky & Clouds plugin
Hydrax-SkyX demo 1.0!
Paradise Engine - Coming soon!
User avatar
Xavyiy
OGRE Expert User
OGRE Expert User
 
Posts: 540
Joined: Tue Apr 12, 2005 2:35 pm
Location: Albacete - Spain

Re: SkyX plugin [Preview]

Postby yehiyaml » Tue Mar 10, 2009 2:01 pm

Nice work.
I'd be interested to see how the fake volumetric effect turns out. Volumetric clouds have always interested me...
Yehiyam Livneh
yehiyaml
Familiar face
 
Posts: 29
Joined: Wed Nov 05, 2008 8:26 am
Location: Israel

Re: SkyX plugin [Preview]

Postby DanielSefton » Tue Mar 10, 2009 8:49 pm

Oohh! Two at a time baby, yeah! :D

Well, your sun looks better for a start. :P And the clouds indeed look a little fluffier. Atmospheric scattering and HDR will be a big bonus. Promising stuff! :)

We have high expectations after your awesome Hydrax plugin. :twisted:

So will this paradise project be some kind of portfolio piece, or?
User avatar
DanielSefton
Veteran
 
Posts: 1059
Joined: Fri Oct 26, 2007 12:36 am
Location: East Yorkshire, UK

Re: SkyX plugin [Preview]

Postby Xavyiy » Wed Mar 11, 2009 1:27 am

@DanielSefton
Thanks :)
At the moment the paradise project is just an idea in my mind, but I think SkyX will be ready in some months(2/3), and the it will be a good Hydrax test :), so... I feel happy about the current state of the 'Paradise' project, my idea is to have all the little plugins I'm going to use ready until the summer, and during the summer do the paradise benchmark/demo, anyway I'm going to need a good modeller/texturer that I haven't at the moment!

----------------------------------------------------------
Here is a video of the latest SkyX build, sorry about the over-exposure, but seems that the video conversion to mp4 have change a little the luminosity!
http://modclub.rigsofrods.com/xavi/SkyX/Preview/SkyXPreviewVideo.mp4

Xavi
Xavier Verguí­n González
-------------------------------------------
Hydrax! Ogre3d Water plugin
SkyX! Ogre3d Sky & Clouds plugin
Hydrax-SkyX demo 1.0!
Paradise Engine - Coming soon!
User avatar
Xavyiy
OGRE Expert User
OGRE Expert User
 
Posts: 540
Joined: Tue Apr 12, 2005 2:35 pm
Location: Albacete - Spain

Re: SkyX plugin [Preview]

Postby xadhoom » Wed Mar 11, 2009 1:39 pm

Xavyiy wrote:Here is a video of the latest SkyX build


Wow, looks very promising! Indeed! Are the clouds just one texture (its hard to see in the video) or do you multiply different layer?
The sun with its halo looks somehow realistic :P

Do you have to update the e.g. skydome position to stay around the camera every frame? This approach leads to some synchronising issues in Caelum when your camera is hanging somewhere under some SceneNodes which update their position/orientation.

xad

EDIT: If you want a perfect platform for testing SkyX then you can use Ogitor with its neat PlugIn interface ;-)
User avatar
xadhoom
Veteran
 
Posts: 966
Joined: Fri Dec 28, 2007 4:35 pm
Location: Germany

Re: SkyX plugin [Preview, video added]

Postby AshMcConnell » Wed Mar 11, 2009 2:15 pm

Looks great Xavi! Keep up the good work :)
User avatar
AshMcConnell
Veteran
 
Posts: 264
Joined: Fri Dec 14, 2007 11:44 am
Location: Northern Ireland

Re: SkyX plugin [Preview, video added]

Postby trnrez » Wed Mar 11, 2009 3:04 pm

Looks very good! Keep up the good work.
Image Image
trnrez
Regular
 
Posts: 125
Joined: Mon Jan 19, 2009 5:34 pm
Location: Murfreesboro, TN

Next

Return to Showcase

Who is online

Users browsing this forum: beaugard and 8 guests