export to OpenSceneGraph?

The place to discuss creating, porting and modifying Celestia's source code.
Topic author
chrisgnicholas
Posts: 3
Joined: 06.07.2005
With us: 19 years 4 months
Location: Alameda, CA

export to OpenSceneGraph?

Post #1by chrisgnicholas » 06.07.2005, 19:55

Greetings - I am a complete newbie to Celestia, but it seems *totally* cool, from a hardcore group of dedicated people based on real data.

Looking briefly at the sources, I see things are generally based on octrees and OpenGL. I was just wondering if it is at all conceivable to "export the universe", as it were, to OpenSceneGraph (http://www.openscenegraph.org) format, and leverage that whole wunderworld.

The general concept is to be able to start adding level of detail info to the surface of planets, whereby someone might actually start putting in crater info for the Moon, Mars, etc, and facilitate "landing" on a planet. Past a certain level, people might start paging in more detailed URL-referenced info (perhaps hosted by shatters.net..?)

just a psycho thought..
Chris

scratt
Posts: 36
Joined: 05.12.2005
With us: 18 years 11 months
Location: Thailand

Post #2by scratt » 07.12.2005, 11:43

I am currently looking at just this possibility...
Extreme Sports Cafe - Remember, measure life by the moments that take your breath away, not by how many breaths you take...

Topic author
chrisgnicholas
Posts: 3
Joined: 06.07.2005
With us: 19 years 4 months
Location: Alameda, CA

Post #3by chrisgnicholas » 07.12.2005, 13:58

Excellent!

No doubt this will open a Pandora's box's of hyperlinking, but keep me posted on how it is going.

We want to be sure it fits well with what we are doing, so we can get there seamlessly from bags-o-geometry being assembled about the Home planet.. ;-)

Chris

scratt
Posts: 36
Joined: 05.12.2005
With us: 18 years 11 months
Location: Thailand

Post #4by scratt » 09.12.2005, 10:28

Can I ask what your project is?
Extreme Sports Cafe - Remember, measure life by the moments that take your breath away, not by how many breaths you take...

Topic author
chrisgnicholas
Posts: 3
Joined: 06.07.2005
With us: 19 years 4 months
Location: Alameda, CA

Post #5by chrisgnicholas » 09.12.2005, 13:52

OSG planet, as per: http://www.ossim.org/tiki-read_article.php?articleId=3 ,
although we probably have a lot to learn from the astro community about generalized coordinate systems.

scratt
Posts: 36
Joined: 05.12.2005
With us: 18 years 11 months
Location: Thailand

Post #6by scratt » 09.12.2005, 14:17

Interesting. I have been working with VTerrain and Open Scene Graph for some time...
Extreme Sports Cafe - Remember, measure life by the moments that take your breath away, not by how many breaths you take...

hank
Developer
Posts: 645
Joined: 03.02.2002
With us: 22 years 9 months
Location: Seattle, WA USA

Re: export to OpenSceneGraph?

Post #7by hank » 09.12.2005, 20:57

chrisgnicholas wrote:Looking briefly at the sources, I see things are generally based on octrees and OpenGL. I was just wondering if it is at all conceivable to "export the universe", as it were, to OpenSceneGraph (http://www.openscenegraph.org) format, and leverage that whole wunderworld.

It might be simpler to embed OSG in Celestia, perhaps using this approach.

- Hank

scratt
Posts: 36
Joined: 05.12.2005
With us: 18 years 11 months
Location: Thailand

Post #8by scratt » 09.12.2005, 21:40

Thanks for the input....

Could you be a bit more specific with the link though..

That just points to a lot of FAQs..

Cheers,
scratt
Extreme Sports Cafe - Remember, measure life by the moments that take your breath away, not by how many breaths you take...

hank
Developer
Posts: 645
Joined: 03.02.2002
With us: 22 years 9 months
Location: Seattle, WA USA

Post #9by hank » 10.12.2005, 03:29

scratt wrote:Thanks for the input....

Could you be a bit more specific with the link though..

That just points to a lot of FAQs..

Cheers,
scratt


I'm not sure why the link doesn't work. It should point to "faq_34", but immediately reloads to the top of the page. You'll have to look for this question:

Q: Can I use OSG within an existing renderer?

in the list of FAQs.

- Hank

scratt
Posts: 36
Joined: 05.12.2005
With us: 18 years 11 months
Location: Thailand

Post #10by scratt » 10.12.2005, 07:04

Ooops my bad!

My web browser stalled about 1 byte from the end of the file so it did not jump down to the FAQ you were referring to. It did it a couple of times and I am afraid I did not read the URL properly.

My bad. Sorry! :oops:

EDIT: Although if you just click that link I think the OSG site resets it's frame preference and then reloads at the top of the page. Well that's on OS X Safari, anyway! So that explains my confusion - At least to me!
Extreme Sports Cafe - Remember, measure life by the moments that take your breath away, not by how many breaths you take...

scratt
Posts: 36
Joined: 05.12.2005
With us: 18 years 11 months
Location: Thailand

Celstia and Open Scene Graph integration

Post #11by scratt » 09.01.2006, 03:24

If anyone is interested I have now integrated OSG into Celestia for my own use. I have done it in a few different ways and have some feedback that may be usefull..

Thanks to Hank for the pointer to the OSG faq as that is pretty much the basis I used... Although it has to be said there are some really funky OpenGL depth problems that need to be addressed before you get predictable results!

I am also going to look at using OSG to draw the entire Celestia experience at some point, but that is an ongoing project and won't be ready for some time...
Extreme Sports Cafe - Remember, measure life by the moments that take your breath away, not by how many breaths you take...


Return to “Development”