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 2
Contact:

Post by Kencho »

Seems there's a lot of issues to look at right now O_o
Image
er
Gnoblar
Posts: 17
Joined: Sun Aug 21, 2005 7:36 am
Location: Finland

Post by er »

Screenshot from CaelumTest1 with opengl, but it could be driver issue.
User avatar
jacmoe
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 20570
Joined: Thu Jan 22, 2004 10:13 am
Location: Denmark
x 179
Contact:

Post by jacmoe »

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.
/* 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 2
Contact:

Post by Kencho »

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?
Image
er
Gnoblar
Posts: 17
Joined: Sun Aug 21, 2005 7:36 am
Location: Finland

Post by er »

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.
User avatar
Kencho
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 4011
Joined: Fri Sep 19, 2003 6:28 pm
Location: Burgos, Spain
x 2
Contact:

Post by Kencho »

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 :(
Image
User avatar
gerds
Goblin
Posts: 260
Joined: Mon Sep 01, 2003 3:59 am
Location: London, United Kingdom
x 1

Post by gerds »

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 :)
User avatar
AekMuldoon
Halfling
Posts: 74
Joined: Mon Sep 25, 2006 3:44 am
Location: Perth, Australia
Contact:

Post by AekMuldoon »

very cool!! great work!
User avatar
Kencho
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 4011
Joined: Fri Sep 19, 2003 6:28 pm
Location: Burgos, Spain
x 2
Contact:

Post by Kencho »

Thanks a lot guys :) I'm dying to get some time to work on it again :roll:
Image
er
Gnoblar
Posts: 17
Joined: Sun Aug 21, 2005 7:36 am
Location: Finland

Post by er »

Little addition to caelum.

klik

I'll send diffs to you Kencho.

Edit: forgot to apply rotations, now moon is facing in right direction
User avatar
Kencho
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 4011
Joined: Fri Sep 19, 2003 6:28 pm
Location: Burgos, Spain
x 2
Contact:

Post by Kencho »

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 :)
Image
er
Gnoblar
Posts: 17
Joined: Sun Aug 21, 2005 7:36 am
Location: Finland

Post by er »

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.
User avatar
Alexander
Gremlin
Posts: 175
Joined: Sat Aug 05, 2006 3:55 am

Post by Alexander »

This is certainly an exciting project, Kencho. I'm downloading the new version now, so keep up the great work!
User avatar
Kencho
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 4011
Joined: Fri Sep 19, 2003 6:28 pm
Location: Burgos, Spain
x 2
Contact:

Post by Kencho »

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 :)
Image
User avatar
johnhpus
Platinum Sponsor
Platinum Sponsor
Posts: 1186
Joined: Sat Apr 17, 2004 2:49 am
x 3

Post by johnhpus »

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.
User avatar
Paulov
Greenskin
Posts: 126
Joined: Tue Apr 04, 2006 5:18 pm
Location: San Sebastian / Europe
Contact:

Post by Paulov »

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_ _ _
User avatar
Kencho
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 4011
Joined: Fri Sep 19, 2003 6:28 pm
Location: Burgos, Spain
x 2
Contact:

Post by Kencho »

@johnpus: Thanks, glad you like it :)

@paulov: Yes, real sun position is on my to-do list already ;)
Image
User avatar
Azatoth
Gnome
Posts: 327
Joined: Sat Jul 10, 2004 6:46 pm
Location: Sweden
x 4
Contact:

Post by Azatoth »

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)
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 2
Contact:

Post by Kencho »

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 ;)
Image
oldfox
Halfling
Posts: 57
Joined: Mon Apr 18, 2005 5:46 pm

Post by oldfox »

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...
User avatar
Kencho
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 4011
Joined: Fri Sep 19, 2003 6:28 pm
Location: Burgos, Spain
x 2
Contact:

Post by Kencho »

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 :)
Image
oldfox
Halfling
Posts: 57
Joined: Mon Apr 18, 2005 5:46 pm

Post by oldfox »

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...
User avatar
Kencho
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 4011
Joined: Fri Sep 19, 2003 6:28 pm
Location: Burgos, Spain
x 2
Contact:

Post by Kencho »

It seems to give the right results :) Will take a look to the source next week :) Thanks
Image
User avatar
Azatoth
Gnome
Posts: 327
Joined: Sat Jul 10, 2004 6:46 pm
Location: Sweden
x 4
Contact:

Post by Azatoth »

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.
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 »

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.
Post Reply