Loading Images
-
Topic authorAndrew
- Posts: 24
- Joined: 28.01.2007
- With us: 17 years 9 months
- Location: Isle of Wight, UK
Loading Images
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
Cheers
Andrew
- John Van Vliet
- Posts: 2944
- Joined: 28.08.2002
- With us: 22 years 2 months
Andrew,
It isn't clear what you mean by
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&
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
-
- Developer
- Posts: 1356
- Joined: 07.01.2005
- With us: 19 years 10 months
- Location: Nancy, France
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.
@+
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
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
- LordFerret
- Posts: 737
- Joined: 24.08.2006
- Age: 68
- With us: 18 years 2 months
- Location: NJ USA
-
- Developer
- Posts: 1356
- Joined: 07.01.2005
- With us: 19 years 10 months
- Location: Nancy, France
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
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
-
- Developer
- Posts: 1356
- Joined: 07.01.2005
- With us: 19 years 10 months
- Location: Nancy, France
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...
@+
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
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
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.
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