Page 1 of 2
Loading Images
Posted: 05.02.2007, 21:10
by Andrew
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
re
Posted: 05.02.2007, 21:44
by John Van Vliet
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
Posted: 05.02.2007, 21:52
by selden
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&
Posted: 05.02.2007, 21:58
by Andrew
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
Posted: 05.02.2007, 22:14
by Vincent
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...
Of course, I would be really happy to help if someone pointed out a precise example where information is needed/lacking.
Posted: 05.02.2007, 22:21
by selden
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
Posted: 05.02.2007, 22:41
by Andrew
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
Posted: 06.02.2007, 02:12
by LordFerret
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).
Posted: 06.02.2007, 08:41
by Andrew
Yeah I was thinking that but can I call it up at any time during a script?
Posted: 06.02.2007, 10:45
by bh
Andrew is this a typo?
'This man-mad Universe is produced by a central projector ...'
Hehe.
Posted: 06.02.2007, 17:44
by Andrew
youve lost me now?!
Posted: 06.02.2007, 18:00
by bh
It's on your front page!
Posted: 06.02.2007, 18:05
by Andrew
Ah! well it is a typo put it is about right for our place lol, thanks for spoting that!!
Posted: 06.02.2007, 19:00
by Vincent
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...
Posted: 06.02.2007, 19:09
by Andrew
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
Posted: 07.02.2007, 18:28
by Andrew
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
Posted: 07.02.2007, 22:26
by Vincent
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
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...
Posted: 07.02.2007, 22:44
by Andrew
ohh that would be brilliant thankyou
Andrew
Posted: 08.02.2007, 19:14
by Andrew
just a quick question any reason why the size of the images has to be in powers of 2?
Posted: 08.02.2007, 20:46
by selden
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.