Caelum - [WARNING: Screenshot intensive]

A place for users of OGRE to discuss ideas and experiences of utilitising OGRE in their games / demos / applications.
Post Reply
User avatar
Kencho
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 4011
Joined: Fri Sep 19, 2003 6:28 pm
Location: Burgos, Spain
x 1
Contact:

Post by Kencho » Mon Oct 16, 2006 8:48 am

Seems there's a lot of issues to look at right now O_o
0 x
Image

er
Gnoblar
Posts: 17
Joined: Sun Aug 21, 2005 7:36 am
Location: Finland

Post by er » Mon Oct 16, 2006 2:30 pm

Screenshot from CaelumTest1 with opengl, but it could be driver issue.
0 x

User avatar
jacmoe
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 20570
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark
Contact:

Post by jacmoe » Mon Oct 16, 2006 6:20 pm

I just spotted this:
http://www.sundog-soft.com/

Not meant to discourage or anything!
But those gourgeous screenshots could serve as inspiration! :)

I just downloaded Caelum and will take it for spin!
Last edited by jacmoe on Mon Oct 16, 2006 6:21 pm, edited 1 time in total.
0 x
/* Less noise. More signal. */
Ogitor Scenebuilder - powered by Ogre, presented by Qt, fueled by Passion.
OgreAddons - the Ogre code suppository.

User avatar
Kencho
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 4011
Joined: Fri Sep 19, 2003 6:28 pm
Location: Burgos, Spain
x 1
Contact:

Post by Kencho » Mon Oct 16, 2006 6:21 pm

Uh, strange hole, as it's in one of the latitudinal segments, not a cap (which excludes I forgot a segment when creating the sphere :?) Try to update to the latest drivers if possible. Have you experienced this sometime else?
0 x
Image

er
Gnoblar
Posts: 17
Joined: Sun Aug 21, 2005 7:36 am
Location: Finland

Post by er » Mon Oct 16, 2006 6:43 pm

I tested little software lastnight, which modifies desktop version of drivers to work with laptops (pressed OK for reboot and covered my eyes and waited for blue smoke or black screen, but it worked :twisted: ) so I'm running latest drivers now.

Those holes appears randomly anywhere when look around. But it works just fine with DX, and that's enought for me.

No-one else tested with ATI yet?

Edit: they appear just in skydome not nowhere else
Last edited by er on Mon Oct 16, 2006 7:01 pm, edited 1 time in total.
0 x

User avatar
Kencho
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 4011
Joined: Fri Sep 19, 2003 6:28 pm
Location: Burgos, Spain
x 1
Contact:

Post by Kencho » Mon Oct 16, 2006 6:47 pm

jacmoe wrote:I just spotted this:
http://www.sundog-soft.com/

Not meant to discourage or anything!
But those gourgeous screenshots could serve as inspiration! :)
No worries, I was aware of it already, but don't have the time to work on it for now :(
0 x
Image

User avatar
gerds
Goblin
Posts: 260
Joined: Mon Sep 01, 2003 3:59 am
Location: London, United Kingdom

Post by gerds » Fri Oct 20, 2006 7:17 am

Just letting you know I got caelum working with DirectX9 by setting *both* the PS and VS requirements to 2.0.

ie:

fp->setParameter ("profiles", "ps_2_0 arbfp1");

vp->setParameter ("profiles", "vs_2_0 arbvp1");

It looks great :)
Looking forward to seeing a new build with clouds :)
0 x

User avatar
AekMuldoon
Halfling
Posts: 74
Joined: Mon Sep 25, 2006 3:44 am
Location: Perth, Australia
Contact:

Post by AekMuldoon » Fri Oct 20, 2006 7:22 am

very cool!! great work!
0 x

User avatar
Kencho
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 4011
Joined: Fri Sep 19, 2003 6:28 pm
Location: Burgos, Spain
x 1
Contact:

Post by Kencho » Fri Oct 20, 2006 10:10 am

Thanks a lot guys :) I'm dying to get some time to work on it again :roll:
0 x
Image

er
Gnoblar
Posts: 17
Joined: Sun Aug 21, 2005 7:36 am
Location: Finland

Post by er » Fri Oct 20, 2006 4:24 pm

Little addition to caelum.

klik

I'll send diffs to you Kencho.

Edit: forgot to apply rotations, now moon is facing in right direction
0 x

User avatar
Kencho
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 4011
Joined: Fri Sep 19, 2003 6:28 pm
Location: Burgos, Spain
x 1
Contact:

Post by Kencho » Sun Oct 22, 2006 4:04 pm

New version available!
http://es.geocities.com/kenchoweb/Caelum-2006-10-22.zip

I've done some changes blindly (can't test them in Linux, and can't use Windows right now :() so I would thank any spotted issue I've accidentally created today.
By the way, the clouds might work. You can play with them as much as you want. The aim of this release is to add some other features and bugfixes, so clouds aren't that important. Hope you like it (and everything runs fine) :)

PS: Don't hesitate to play with some of the new features as using the CaelumListener (you have an example in the clouds updater in the sample) or using a nice space skybox for the starfields throught Ogre's SkyBox. They have lots of chances in my honest opinion :)
0 x
Image

er
Gnoblar
Posts: 17
Joined: Sun Aug 21, 2005 7:36 am
Location: Finland

Post by er » Sun Oct 22, 2006 8:07 pm

LayeredCloudFP is trying to use invalid temporary register (r12), prints error for 24 times. :(

I'll try to find out why, but don't count on my shader skills. Time start learning something about them.

Looking forward to see it in action.

Edit: OpenGL works (with holes)
Last edited by er on Sun Oct 22, 2006 8:32 pm, edited 1 time in total.
0 x

User avatar
Alexander
Gremlin
Posts: 175
Joined: Sat Aug 05, 2006 3:55 am

Post by Alexander » Sun Oct 22, 2006 8:12 pm

This is certainly an exciting project, Kencho. I'm downloading the new version now, so keep up the great work!
0 x

User avatar
Kencho
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 4011
Joined: Fri Sep 19, 2003 6:28 pm
Location: Burgos, Spain
x 1
Contact:

Post by Kencho » Sun Oct 22, 2006 9:05 pm

Hmm... the shader does 12 calls to Tex2D, so that might have some relation... In any case, I just found today that didn't lost the cloud shader I was working on, so I expected some kind of error. My suggestion is to simply disable the cloud layer meanwhile, and test the "final" version of the Caelum library itself...

Thanks for testing and supporting :)
0 x
Image

User avatar
johnhpus
Platinum Sponsor
Platinum Sponsor
Posts: 1186
Joined: Sat Apr 17, 2004 2:49 am

Post by johnhpus » Tue Oct 24, 2006 5:03 pm

I don't know how I missed this topic before. Maybe I was too busy pressing 'F5' in my own topic. =) Anyway, very nice work Kencho. The next project I'm involved with that has a visible sky will definitely include this.
0 x

User avatar
Paulov
Greenskin
Posts: 126
Joined: Tue Apr 04, 2006 5:18 pm
Location: San Sebastian / Europe
Contact:

Post by Paulov » Tue Oct 24, 2006 7:54 pm

eih, really cool

Ite remembers me the A-10 cuba sky, wich was simple, but very realistic at the same time.

I woudl like just to make a proposal to have the availability of placing a directional light where the sun is, and make its target the point you specify byt giving the coordinates (real world coordinates I mean) something like UTM coords.

I thinks that with max comes something similar, but haven´t tried yet.

In my opinion this would be nice for using it in architectural visualizations, so that the real impact of the shadows over the enviroment can be analized for the differente hours of the day or even the part of the year.

Dont know if this is extremely difficult or easy, just a proposal.

bye_ _ _
0 x

User avatar
Kencho
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 4011
Joined: Fri Sep 19, 2003 6:28 pm
Location: Burgos, Spain
x 1
Contact:

Post by Kencho » Tue Oct 24, 2006 10:35 pm

@johnpus: Thanks, glad you like it :)

@paulov: Yes, real sun position is on my to-do list already ;)
0 x
Image

User avatar
Azatoth
Gnome
Posts: 327
Joined: Sat Jul 10, 2004 6:46 pm
Location: Sweden
Contact:

Post by Azatoth » Wed Oct 25, 2006 9:52 pm

Kencho:

In order for it to compile as it should in linux line 8 in CaelumPrerequisites.h needs to be changed to:

Code: Select all

#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
Also, in order to get Dagon compatability line 13 of StoredImageSkycolourModel.cpp should read:

Code: Select all

		#if OGRE_VERSION <  ((1 << 16) | (3 << 8) | 0)
0 x
Ember, GPL virtual world client.
Development blog

User avatar
Kencho
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 4011
Joined: Fri Sep 19, 2003 6:28 pm
Location: Burgos, Spain
x 1
Contact:

Post by Kencho » Wed Oct 25, 2006 10:38 pm

Have you had any problems with the source as is? About the first one, I applied a bugfix MWeb told me about, and it worked fine according to what he told.
About the second: 1<<16 = 0x100; 3<<8 = 0x30; so 1<<16|3<<8 = 0x130 ;)
0 x
Image

oldfox
Halfling
Posts: 57
Joined: Mon Apr 18, 2005 5:46 pm

Post by oldfox » Thu Oct 26, 2006 12:27 am

I'm currently working on the sun movement so if you want to try mine ;) Really hard to find right formulas and datas about that on the web, but my sun seems to be at the right position.


Hope I'll be able to understand and use your superb atmospheric effect...
0 x

User avatar
Kencho
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 4011
Joined: Fri Sep 19, 2003 6:28 pm
Location: Burgos, Spain
x 1
Contact:

Post by Kencho » Thu Oct 26, 2006 12:38 am

Well, as I'm considering doing changes in the way Caelum works, I will investigate more about the sun position, so will probably interested on it :)
0 x
Image

oldfox
Halfling
Posts: 57
Joined: Mon Apr 18, 2005 5:46 pm

Post by oldfox » Thu Oct 26, 2006 8:05 am

Here is my class. Still work in progress so the sources are maybe a little weird :) But sun position (azimuth and altitude) should be pretty ok in relation with date, hour, and latitude longitude.

http://davy.sg.free.fr/SunRise.zip

Result in Ogre http://davy.sg.free.fr/JourNuit.avi

If you find some infos on the web about how to calculate the sun position I'm interested as I'd like to verify thos calculus...
0 x

User avatar
Kencho
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 4011
Joined: Fri Sep 19, 2003 6:28 pm
Location: Burgos, Spain
x 1
Contact:

Post by Kencho » Thu Oct 26, 2006 9:09 am

It seems to give the right results :) Will take a look to the source next week :) Thanks
0 x
Image

User avatar
Azatoth
Gnome
Posts: 327
Joined: Sat Jul 10, 2004 6:46 pm
Location: Sweden
Contact:

Post by Azatoth » Thu Oct 26, 2006 10:07 am

Kencho wrote:Have you had any problems with the source as is? About the first one, I applied a bugfix MWeb told me about, and it worked fine according to what he told.
About the second: 1<<16 = 0x100; 3<<8 = 0x30; so 1<<16|3<<8 = 0x130 ;)
MWeb must then never have tested it; it doesn't compile as is on linux. :)
Check http://www.ogre3d.org/index.php?option= ... &Itemid=91 . OGRE_PLATFORM_WIN32 will always be defined, it's only OGRE_PLATFORM that will differ on different platforms.

About the second: 1<<16 = 0x10000; 3<<8 = 0x300 . So you would need to check for 0x10300.
0 x
Ember, GPL virtual world client.
Development blog

MWeb
Halfling
Posts: 45
Joined: Fri Sep 24, 2004 10:04 am
Location: Luzern, Switzerland
Contact:

Post by MWeb » Thu Oct 26, 2006 1:46 pm

It did compile on linux with my own change, since i just removed the definition for windows and I didn't try the new version.
0 x

Post Reply