Real 3D impressions with celestia (updated)

The place to discuss creating, porting and modifying Celestia's source code.
Topic author
neTear
Posts: 7
Joined: 07.06.2009
With us: 15 years 5 months

Real 3D impressions with celestia (updated)

Post #1by neTear » 10.06.2009, 14:20

See the updated attached source.
celestia_4741_anaglyph.zip

I've developed and tested that with Linux and don't expect problems on the other supported platforms, maybe there are.
I'm pleased to get further reports and feedback.

Note: The source will work with the current trunc version 4741 (1.6.0).
Let me know if you want a (simple) version for 1.5.1 (or an x86_64 Linux binary)

Thus, if you are interested in real 3d impressions with celestia, just try to compile with celestiacore.cpp
from the zip archive instead of the trunc version

Short description of what the patch will do:
* SHIFT F2 or F3 switches between anaglyph modes and normal mode

There are 8 anaglyph modes available now. They are using different anaglyph building techniques.
Modes 1 (the previous) up to 5 (except 4) work pretty good for flying around the stars and milkyways with high speed
I prefer modes 4 6 7 8 for single individual scenes and for screenshots.
Just check them out and have fun.

You could always play around with
* SHIFT F5 increases apparent "Depth Level"
* SHIFT F6 decreases apparent "Depth Level"

*(Splitting views will disable anaglyph mode because it's not reasonable yet)

Tips & Hints for anaglyph mode:
The aiming on object I had described here before, doesn't work anymore, but I think that doesn't greatly matter until there is a screenpointer with Z value available.
If you see "ghost" objects or disturbing shadows, calibrate your monitor or tinker with its colour temperature settings for better results.

Why red-cyan and not red-blue red-green?
In the matter of colour distortion, red-cyan gives us the best capability.
You'll also get a 3D impression with the other glasses but with much more colour distortion.
Last but not least anaglyph rendering brings out the cheapest way to have a real 3D impression, and as far I'm concerned,
it's just a must have for celestia, isn't it? ;-)

Screenshot with mode 8, try to touch the parabolic reflector 8)
mode8demo.jpg



--------------------------------------------------------------------------------------
A bug fix: (?)
ogg video capturing was broken (at least for Linux) by changing oggtheoracapture.cpp

< std::srand(std::time(NULL));
---
> #ifdef _WIN32
> std::srand(std::time(NULL));
> #else
> std::srand(time(NULL));
> #endif

Should'nt it be " std::srand(std::time(NULL));" for all platforms?
Update: With trunc rev 4741 ogg capturing works as expected again, with or without this determination.
I don't know the reason for the determination so I keep this information here for now.
-------------------------------------------------

regards
neTear

A. Einstein said, if we knew what ( it was ) we were doing, it wouldn't be (called) research, would it?
Last edited by neTear on 26.06.2009, 19:54, edited 4 times in total.

Neil
Posts: 1
Joined: 11.06.2009
With us: 15 years 5 months

Re: Real 3D impressions with celestia + bug fix for 1.6.0

Post #2by Neil » 11.06.2009, 10:23

I can confirm that this works very well in mac os x (10.5.7 intel) - had trouble getting the shift-f2 key to work but commenting out the other f2 command in the source solved that problem.

Many thanks!

Topic author
neTear
Posts: 7
Joined: 07.06.2009
With us: 15 years 5 months

Re: Real 3D impressions with celestia + bug fix for 1.6.0

Post #3by neTear » 11.06.2009, 22:45

Maybe "modifier" (keys) does not work with MacOS as expected, at least any other "normal"
key could be taken for toggling and setting within a main development tree.
Is "Shift F5/F6" working for you?

BTW, there are two lines of debug code I've forgot to remove.
Just search for "fprintf(stderr" and remove these both lines.
Not sure, but I think especially windows compilers will stumble on this.

regards, and thank you for the information
neTear

stetie
Posts: 1
Joined: 13.06.2009
With us: 15 years 5 months

Re: Real 3D impressions with celestia + bug fix for 1.6.0

Post #4by stetie » 15.06.2009, 08:17

I can confirm that this patch works on Windows XP, using the VC++ 2008 compiler. I've got no problems with the modifier keys.

Avatar
piellepi M
Posts: 124
Joined: 25.09.2003
Age: 69
With us: 21 years 2 months
Location: Rome, Italy

Re: Real 3D impressions with celestia + bug fix for 1.6.0

Post #5by piellepi » 15.06.2009, 16:16

Hi friends!
Is it possible to have a compiled version for windows (as for Celestia pre-releases!!), so I can try it on Vista?
I have not the compiler :oops:
Thanks a lot!
Ciao
Pierluigi

duds26
Posts: 328
Joined: 05.02.2007
Age: 34
With us: 17 years 9 months
Location: Europe

Re: Real 3D impressions with celestia + bug fix for 1.6.0

Post #6by duds26 » 16.06.2009, 11:54

Could you add some screen shots please.
It will be really illustrative of the improvements you are doing.
Thanks

Topic author
neTear
Posts: 7
Joined: 07.06.2009
With us: 15 years 5 months

Re: Real 3D impressions with celestia + bug fix for 1.6.0

Post #7by neTear » 16.06.2009, 22:54

Take a look at viewtopic.php?f=4&t=13904

Do not forget to attach your red-cyan glasses.

regards
neTear

Avatar
jogad
Posts: 458
Joined: 17.09.2008
With us: 16 years 2 months
Location: Paris France

Re: Real 3D impressions with celestia + bug fix for 1.6.0

Post #8by jogad » 20.06.2009, 08:49

Hello,

It is an exciting idea but that doesn’t work as expected for me. I don’t see actual relief.
Here is an example:

I hoped to get something like that 8)
satellites3D.jpg

But instead, I get this: :(
satellites2D.jpg

The red and cyan canals seem to be taken from the same point of view. The resulting image is just behind the plane of the screen but remains flat.

I watched your video (very aggressive web site) and indeed I had a sensation of relief. But if I pause it, the relief disappears! I feel a similar relief perception even with standard visualization when I move rapidly in a field of stars.

Reagards

Topic author
neTear
Posts: 7
Joined: 07.06.2009
With us: 15 years 5 months

Re: Real 3D impressions with celestia + bug fix for 1.6.0

Post #9by neTear » 21.06.2009, 12:42

Hi jogad,

the different "channels" aren't taken from the same point of view actually, so that flying through universe works by now.
It also works with relief for most individual single scenes (at least for me). (Have you played around with shift F5/6, Focus, Object rotation, object placement?)
What you expect is the same what I tried to describe with:
it's possible to have closer visible objects seemingly coming out of the monitor instead of let them all hanging behind it..
This is a question of the (virtual) dimensions, and is much more trickier to implement because it requires to be dynamic.
I'm having a clue how to implement this and already tried, but didn't succeed yet.
I'll keep busy with this issue (will take some time, have to do other things at the moment...).

"very aggressive web site"=better don't use it?

Edit: Hm, what about this one? Source with more anaglyphic modes will follow next weekend.
gemini_crazy.jpg

regards


Return to “Development”