Accretion disk (and magnetic field) technique

Post requests, images, descriptions and reports about work in progress here.
Avatar
Topic author
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 21 years 2 months
Location: Montreal

Accretion disk (and magnetic field) technique

Post #1by Cham » 07.12.2006, 00:21

I'm experimenting a new technique for nice fully 3D accretion disks, without any sharp edges (for all viewing angles !). It really looks like a volumetric blurry disk, from the outside :

Image

I'm using 72 tilted planes with a 5 degrees increment step for their EquatorAscendingNode. The SSC code looks like this :

Code: Select all

"Accretion disk 1" "PSR J0142+61"
{
   Mesh "planar1.3ds"
   Radius 1.8E6
   Emissive true

   EllipticalOrbit {
      Period               1
      SemiMajorAxis        1E-10
      Eccentricity         0
      Inclination          1
   }

   Obliquity      5
   RotationPeriod       9
   EquatorAscendingNode   0
   Albedo               0.01
}

"Accretion disk 2" "PSR J0142+61"
{
   Mesh "planar1.3ds"
   Radius 1.8E6
   Emissive true

   EllipticalOrbit {
      Period               1
      SemiMajorAxis        1E-10
      Eccentricity         0
      Inclination          1
   }

   Obliquity      5
   RotationPeriod       9
   RotationOffset      45
   EquatorAscendingNode   5
   Albedo               0.01
}

... etc ...



The result is very good as seen from the exterior (no sharp edges visible). However, there are lots of clipping plane problems from the inside.

I'm not sure this experiment will gives something really usefull, since it makes the video card working extremelly hard (I could hear the computer's fan getting very loud). The frame rate was about 15 FPS only :-(

Of course, I already tried with less planes, but the result was much less convincing...
Last edited by Cham on 09.12.2006, 00:32, edited 1 time in total.
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"

buggs_moran
Posts: 835
Joined: 27.09.2004
With us: 20 years 6 months
Location: Massachusetts, USA

Post #2by buggs_moran » 07.12.2006, 03:03

Very nice Cham, look forward to your further experimentation. Have you tried randomizing their rotation speeds for gradual changes?
Homebrew:
WinXP Pro SP2
Asus A7N8X-E Deluxe
AMD Athlon XP 3000/333 2.16 GHz
1 GB Crucial RAM
80 GB WD SATA drive
ATI AIW 9600XT 128M

Avatar
Topic author
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 21 years 2 months
Location: Montreal

Post #3by Cham » 07.12.2006, 03:16

Differential velocity was my next step, to simulate a real fluid. But I'll abandon this experiment : it's too heavy on the video card ! :-(

I'm trying to find another solution right now.
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"

Johaen
Posts: 341
Joined: 14.01.2006
With us: 19 years 2 months
Location: IL, USA

Post #4by Johaen » 07.12.2006, 03:49

Cham wrote:it's too heavy on the video card ! :-(


I'm curious. What video card are you using? I'd be curious to try this out on my machine (the one in my sig), because nothing in Celestia has really taxed my video card at all. Celestia seems to be mostly limited by my CPU.
AMD Athlon X2 4400+; 2GB OCZ Platinum RAM; 320GB SATA HDD; NVidia EVGA GeForce 7900GT KO, PCI-e, 512MB, ForceWare ver. 163.71; Razer Barracuda AC-1 7.1 Gaming Soundcard; Abit AN8 32X motherboard; 600 watt Kingwin Mach1 PSU; Windows XP Media Center SP2;

Avatar
Topic author
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 21 years 2 months
Location: Montreal

Post #5by Cham » 07.12.2006, 03:53

I'm using an ATI Radeon x850 XT video card, with 256 MB of video ram. My machine is a dual G5 2 GHz, with 4 GB ram.

Frame rate is low, because there are 72 planes with a 1024 X 1024 PNG texture applied to each of them.
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"

Avatar
Topic author
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 21 years 2 months
Location: Montreal

Post #6by Cham » 07.12.2006, 04:52

Here's my PSR J0142+61 model, with its accretion disk and strong magnetic field :

Image

Image

Image
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"

chris
Site Admin
Posts: 4211
Joined: 28.01.2002
With us: 23 years 2 months
Location: Seattle, Washington, USA

Post #7by chris » 07.12.2006, 04:55

It would be nice to add some basic volume rendering to Celestia--a ray marching algorithm with volume textures is a much more efficient technique for doing these sorts of effects.

--Chris

Avatar
Topic author
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 21 years 2 months
Location: Montreal

Post #8by Cham » 07.12.2006, 04:59

If only we could have fuzzy models (fuzzy spheres, planes and cones). For example : a plane with a fuzzy thickness.
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"

buggs_moran
Posts: 835
Joined: 27.09.2004
With us: 20 years 6 months
Location: Massachusetts, USA

Post #9by buggs_moran » 07.12.2006, 10:59

chris wrote:It would be nice to add some basic volume rendering to Celestia--a ray marching algorithm with volume textures is a much more efficient technique for doing these sorts of effects.

--Chris


Oh yes, please think on that Chris... The uses for this are too numerous to count. I would put my vote in for the ability to volumetrically fill a cmod if that's possible, therefore allowing us limitless shapes. (I am of course personally thinking of matter transfer streams). When I saw that atmosphere hugging an asteroid some time back I got excited about that possibility. Would there be serious depth sorting issues with a volumetric fill around, in front of or behind other cmods?
Homebrew:

WinXP Pro SP2

Asus A7N8X-E Deluxe

AMD Athlon XP 3000/333 2.16 GHz

1 GB Crucial RAM

80 GB WD SATA drive

ATI AIW 9600XT 128M

ANDREA
Posts: 1543
Joined: 01.06.2002
With us: 22 years 10 months
Location: Rome, ITALY

Post #10by ANDREA » 07.12.2006, 14:23

Cham wrote:Here's my PSR J0142+61 model, with its accretion disk and strong magnetic field :

Cham, your new accretion disk improvement is very very nice and credible. 8)
Just a little suggestion: I think that the cones are too much sharp and luminous, so for my shows I have notably reduced their luminosity, contrast and sharpness, and IMHO this way they look more "real". :wink:
Bye

Andrea :D
"Something is always better than nothing!"
HP Omen 15-DC1040nl- Intel® Core i7 9750H, 2.6/4.5 GHz- 1TB PCIe NVMe M.2 SSD+ 1TB SATA 6 SSD- 32GB SDRAM DDR4 2666 MHz- Nvidia GeForce GTX 1660 Ti 6 GB-WIN 11 PRO

Avatar
Topic author
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 21 years 2 months
Location: Montreal

Post #11by Cham » 07.12.2006, 17:07

Andrea,

you may be right : the jets are too sharp. I'll test with more transparency textures.
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"

Avatar
Topic author
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 21 years 2 months
Location: Montreal

Post #12by Cham » 08.12.2006, 19:19

Here's a test release of the pulsar PSR J0142+61 (updated).

http://nho.ohn.free.fr/celestia/Cham/PSR_J0142.zip (4.8 MB zip file)

Take note that the pulsar itself is a part of Selden's pulsars addon, so if you already have it, it will probably conflict with this release (you'll have the same pulsar rendered twice, but mine is set at a different distance from Sol). Just disactivate temporarily Selden's addon to test the above addon.
Last edited by Cham on 09.12.2006, 01:10, edited 1 time in total.
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"

Avatar
Topic author
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 21 years 2 months
Location: Montreal

Post #13by Cham » 08.12.2006, 22:44

I'm now experimenting another idea for the magnetic field representation. Using Mathematica, I created the magnetic "enveloppes" around the pulsar, that match perfectly the lines. I'll try some color variations, from vivid red inside to weak green outside :

Image

It's pretty, in wireframe mode :
Image
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"

Avatar
Topic author
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 21 years 2 months
Location: Montreal

Post #14by Cham » 08.12.2006, 23:24

Ooo, this is a pure mathematical beauty. I must do a CMOD version of the wireframe mode :

Image

Image
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"

Avatar
Topic author
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 21 years 2 months
Location: Montreal

Post #15by Cham » 08.12.2006, 23:30

... and I would love to show the radiation pattern. Hmmm, that's a project for the far away future I guess ... :wink:
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"

Avatar
Topic author
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 21 years 2 months
Location: Montreal

Post #16by Cham » 09.12.2006, 00:32

Here's a variation of the same dipolar field, without emissivity and without the field lines :

Image
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"

Avatar
Topic author
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 21 years 2 months
Location: Montreal

Post #17by Cham » 09.12.2006, 01:10

I've updated the download link to include the magnetic "layers" :

http://nho.ohn.free.fr/celestia/Cham/PSR_J0142.zip (4.8 MB zip file)

Feedback would be appreciated.
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"

Johaen
Posts: 341
Joined: 14.01.2006
With us: 19 years 2 months
Location: IL, USA

Post #18by Johaen » 09.12.2006, 02:00

Cham wrote:I've updated the download link to include the magnetic "layers" :

http://nho.ohn.free.fr/celestia/Cham/PSR_J0142.zip (4.8 MB zip file)

Feedback would be appreciated.


After seeing the pictures I wasn't sure if I'd like the "magnetic layers" as you put it. But seeing it in Celestia is amazing. They add just a hint of a shell, and I think it looks really nice. I don't know how accurate it is, but it sure looks good. :)
AMD Athlon X2 4400+; 2GB OCZ Platinum RAM; 320GB SATA HDD; NVidia EVGA GeForce 7900GT KO, PCI-e, 512MB, ForceWare ver. 163.71; Razer Barracuda AC-1 7.1 Gaming Soundcard; Abit AN8 32X motherboard; 600 watt Kingwin Mach1 PSU; Windows XP Media Center SP2;

Avatar
Topic author
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 21 years 2 months
Location: Montreal

Post #19by Cham » 09.12.2006, 04:15

I'm now experimenting some distorded magnetic field lines. I finally found a way to do it properly. The pure dipolar field from the pulsar (below, a dummy sphere for testing purposes) is distorded by the plasma located in the accretion disk. The hot plasma is a conductor, and its rotation around the pulsar builds up a large electric current which adds its own magnetic field. Physically, this problem is highly non-linear since the plasma is also in interaction with the pulsar's dipolar field, so it's a non-trivial matter to find the real TOTAL magnetic field. I will not attempt to solve the full Maxwell-Magneto-hydrodynamical equations. I'll make a simple crude representation only.

Image

Here's a QT movie showing the field lines of a realistic model, made on a supercomputer (sorry, I lost the reference !).

http://nho.ohn.free.fr/celestia/Cham/Divers/t300.mov (2.5 QT movie)
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"


Return to “Add-on development”