Loading Images

General discussion about Celestia that doesn't fit into other forums.
Topic author
Andrew
Posts: 24
Joined: 28.01.2007
With us: 17 years 9 months
Location: Isle of Wight, UK

Loading Images

Post #1by Andrew » 05.02.2007, 21:10

Hey, I am planning on using Celestia to make shows for work but I need to be able to display images other than the Planets etc, ie over the top of the "main screen". I am using v5 is this possible ?

Cheers
Andrew

Avatar
John Van Vliet
Posts: 2944
Joined: 28.08.2002
With us: 22 years 2 months

re

Post #2by John Van Vliet » 05.02.2007, 21:44

i take it you are running a windows box, and dont want to run in non-full screan and just open a new window.

a screen shot on my linux box

Image

Avatar
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 2 months
Location: NY, USA

Post #3by selden » 05.02.2007, 21:52

Andrew,

It isn't clear what you mean by
display images other than the Planets ... over the top of the "main screen"


However, the "Lua Edu" package seems like it ought to be able to do what you want. Unfortunately, there isn't much documentation for how to use it :(

See http://www.celestiaproject.net/forum/viewtopic.php?t=10406&
Selden

Topic author
Andrew
Posts: 24
Joined: 28.01.2007
With us: 17 years 9 months
Location: Isle of Wight, UK

Post #4by Andrew » 05.02.2007, 21:58

ahh sorry people.

What I want to do is have say a logo appear in celestia.

I have got the lua edu thing I will have a play and see what I can come up with :)

Vincent
Developer
Posts: 1356
Joined: 07.01.2005
With us: 19 years 10 months
Location: Nancy, France

Post #5by Vincent » 05.02.2007, 22:14

selden wrote:However, the "Lua Edu" package seems like it ought to be able to do what you want. Unfortunately, there isn't much documentation for how to use it :(

Selden,

Information about how to display your own information text/image can be found in the readme.txt file.
As for the other features, the only thing you have to do is clicking on the right button... :wink:
Of course, I would be really happy to help if someone pointed out a precise example where information is needed/lacking.
@+
Vincent

Celestia Qt4 SVN / Celestia 1.6.1 + Lua Edu Tools v1.2
GeForce 8600 GT 1024MB / AMD Athlon 64 Dual Core / 4Go DDR2 / XP SP3

Avatar
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 2 months
Location: NY, USA

Post #6by selden » 05.02.2007, 22:21

Vincent,

As you know, I am in general unhappy with the overall lack of information about how and when to use the lua edu package, although I've also been recommending it to people :)
Selden

Topic author
Andrew
Posts: 24
Joined: 28.01.2007
With us: 17 years 9 months
Location: Isle of Wight, UK

Post #7by Andrew » 05.02.2007, 22:41

hey Vincent can you help me!!!

I want to display an image from a custom script, is this possible using your lua edu pack.

much appreciated
Andrew

Avatar
LordFerret M
Posts: 737
Joined: 24.08.2006
Age: 68
With us: 18 years 2 months
Location: NJ USA

Post #8by LordFerret » 06.02.2007, 02:12

I would think your logo could be loaded just as any of the 2D addons are... sorta like giant billboard out in space (Eat At Joes). :wink:

Topic author
Andrew
Posts: 24
Joined: 28.01.2007
With us: 17 years 9 months
Location: Isle of Wight, UK

Post #9by Andrew » 06.02.2007, 08:41

Yeah I was thinking that but can I call it up at any time during a script? :)

bh
Posts: 1547
Joined: 17.12.2002
With us: 21 years 11 months
Location: Oxford, England

Post #10by bh » 06.02.2007, 10:45

Andrew is this a typo?
'This man-mad Universe is produced by a central projector ...'

Hehe.
regards...bh.

Topic author
Andrew
Posts: 24
Joined: 28.01.2007
With us: 17 years 9 months
Location: Isle of Wight, UK

Post #11by Andrew » 06.02.2007, 17:44

youve lost me now?!

bh
Posts: 1547
Joined: 17.12.2002
With us: 21 years 11 months
Location: Oxford, England

Post #12by bh » 06.02.2007, 18:00

It's on your front page!
regards...bh.

Topic author
Andrew
Posts: 24
Joined: 28.01.2007
With us: 17 years 9 months
Location: Isle of Wight, UK

Post #13by Andrew » 06.02.2007, 18:05

Ah! well it is a typo put it is about right for our place lol, thanks for spoting that!! :) :roll:

Vincent
Developer
Posts: 1356
Joined: 07.01.2005
With us: 19 years 10 months
Location: Nancy, France

Post #14by Vincent » 06.02.2007, 19:00

Andrew wrote:hey Vincent can you help me!!!

I want to display an image from a custom script, is this possible using your lua edu pack.

much appreciated
Andrew

Hi Andrew,

Displaying an image during a script would require to make some adjustments in the current source code. Hank has already implemented all the needed OpenGL functions to do that, but this was supposed to be used during navigation with the Lua Tools, not during a script. I will work on adding the possibility to display an image during a script as soon as version 1.0 of the Lua Tools is released.

In the meantime, you still have 2 alternatives :
- You can use "Celestia patch" to display an image during a script. However, this "hacked" version is based on Celestia 1.4.1. You'll find a link to this version in my signature.
- Using the Lua Tools, activating/unactivating the display of an image could be done easily by clicking on an active button or using a shortkey. Please let me know if you're interested in that option...

All that may sound a little bit complex, but please don't forget that displaying an image within Celestia is a fresh new feature which I'm still working on since many users seems to be interested in it...
Last edited by Vincent on 06.02.2007, 19:31, edited 1 time in total.
@+
Vincent

Celestia Qt4 SVN / Celestia 1.6.1 + Lua Edu Tools v1.2
GeForce 8600 GT 1024MB / AMD Athlon 64 Dual Core / 4Go DDR2 / XP SP3

Topic author
Andrew
Posts: 24
Joined: 28.01.2007
With us: 17 years 9 months
Location: Isle of Wight, UK

Post #15by Andrew » 06.02.2007, 19:09

cool thnx I will give the patch a try I did look at it before but thought I would have to compile myself didnt realise it was already done, great work btw from what I have seen :)

Cheers
Andrew

Topic author
Andrew
Posts: 24
Joined: 28.01.2007
With us: 17 years 9 months
Location: Isle of Wight, UK

Post #16by Andrew » 07.02.2007, 18:28

Hey Vincent that patch does just what I was after great work :) I can start work on my shows now!!!

Cheers for all the help.

Andrew 8O

Vincent
Developer
Posts: 1356
Joined: 07.01.2005
With us: 19 years 10 months
Location: Nancy, France

Post #17by Vincent » 07.02.2007, 22:26

Andrew wrote:Hey Vincent that patch does just what I was after great work :) I can start work on my shows now!!!

Cheers for all the help.

Andrew 8O

You're welcome Andrew.

I agree that having the possibility to display images from a script is a very useful feature from an educational point of view. I'm currently trying to have the same results with Celestia 1.5 using some of the OpenGL commands that have been implemented for the Lua Tools.
I'll let you know when I have some conclusive results...
@+
Vincent

Celestia Qt4 SVN / Celestia 1.6.1 + Lua Edu Tools v1.2
GeForce 8600 GT 1024MB / AMD Athlon 64 Dual Core / 4Go DDR2 / XP SP3

Topic author
Andrew
Posts: 24
Joined: 28.01.2007
With us: 17 years 9 months
Location: Isle of Wight, UK

Post #18by Andrew » 07.02.2007, 22:44

ohh that would be brilliant thankyou :)

Andrew

Topic author
Andrew
Posts: 24
Joined: 28.01.2007
With us: 17 years 9 months
Location: Isle of Wight, UK

Post #19by Andrew » 08.02.2007, 19:14

just a quick question any reason why the size of the images has to be in powers of 2?

Avatar
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 2 months
Location: NY, USA

Post #20by selden » 08.02.2007, 20:46

That restriction is built into all but the most recent graphics hardware. Realtime 3D programs that don't enforce that restriction have to resize all surface texture images so that they are a power of two on a side when they are to be loaded into the graphics card. This resizing both slows things down and damages the quality of the resulting image, just as happens when you use any program to resize any image.

Modern graphics cards, like Nvidia's 6000 series and later, can use surface texture images that are not a power of two on a side. Celestia v1.5.0 will allow non-power-of-two images on those cards, and will resize images for older cards. Designers of Addons will have to take this into account. Surface texture images look better if they're designed for the appropriate size than they look after they're resized.
Selden


Return to “Celestia Users”