Welcome to WSL!

New to the forum? Please read this and this.

Projection Tool from 2D Texture to 3D Sphere

User avatar
tida
Fusioneer
Posts: 184
Joined: Mon Jan 27, 2020 4:37 am
Answers: 1
Real name: none
Been thanked: 20 times

Projection Tool from 2D Texture to 3D Sphere

#1

Post by tida »

Is there a Fusion tool available, which will carry out a projection or distortion from a 2D texture image into a 3D sphere? That means that it makes sure, that the poles appear not compressed.

The math behind that should be something like a reverse mapping of a Mercator projection from Sphere to a Cylinder as described here:
http://paulbourke.net/geometry/transfor ... rojection/

User avatar
Millolab
Fusionista
Posts: 761
Joined: Wed Oct 24, 2018 6:26 am
Answers: 4
Been thanked: 19 times
Contact:

Re: Projection Tool from 2D Texture to 3D Sphere

#2

Post by Millolab »

I'm not aware of one, would be cool to have it!

User avatar
Chad
Fusionator
Posts: 1565
Joined: Fri Aug 08, 2014 1:11 pm
Been thanked: 1 time

Re: Projection Tool from 2D Texture to 3D Sphere

#3

Post by Chad »

CT or 3CuS would be able to do that pretty easily.

User avatar
tida
Fusioneer
Posts: 184
Joined: Mon Jan 27, 2020 4:37 am
Answers: 1
Real name: none
Been thanked: 20 times

Re: Projection Tool from 2D Texture to 3D Sphere

#4

Post by tida »

@Millolab Thanks for your feedback. @Chad impressive, you offer nice pretty very well-thought tools.

User avatar
tida
Fusioneer
Posts: 184
Joined: Mon Jan 27, 2020 4:37 am
Answers: 1
Real name: none
Been thanked: 20 times

Re: Projection Tool from 2D Texture to 3D Sphere

#5

Post by tida »

This is the first attempt, to distort the 2D texture, that it will be projected onto a 3D sphere to get a nearly seamless behavior at the tip of the poles. First, you need to attach the Seamless Texture Fuse, to get rid of longitudinal issues that typically occur with a 2D texture on a sphere.
If you connect in addition the Sphere Distort Fuse, you should mostly abandon the compression at the tip of the poles.
SeamlessTexture.fuse
SphereDistort.fuse
You do not have the required permissions to view the files attached to this post.

User avatar
tida
Fusioneer
Posts: 184
Joined: Mon Jan 27, 2020 4:37 am
Answers: 1
Real name: none
Been thanked: 20 times

Re: DCTL Sphere Distortion Fuse

#6

Post by tida »

This describes the math behind it, which I found after the release of the fuse:
http://paulbourke.net/geometry/tiling/ (Texture map correction for spherical mapping)
https://www.thebest3d.com/dogwaffle/lua ... index.html
It's relatively simple as you just consider the diameter of the latitude dependant on the longitude. The described version would only work when you mirror it as the left and right borders will bleed out.
https://www.thebest3d.com/dogwaffle/lua ... rid800.jpg


The DCTL Sphere Distortion Fuse shows exactly the same distortion shaping - but I decided to bleed it into the midsection. This assures a seamless appearance without mirroring and it's the reason, why you will find a blend functionality in the fuse.

User avatar
danell
Fusioneer
Posts: 224
Joined: Mon Dec 12, 2016 6:32 am
Been thanked: 12 times

Re: Projection Tool from 2D Texture to 3D Sphere

#7

Post by danell »

wow, awesome work @tida!
Love to see this up on reactor soon :)

User avatar
TerryPXM
Fusioneer
Posts: 76
Joined: Mon Oct 30, 2017 3:53 am

Re: Projection Tool from 2D Texture to 3D Sphere

#8

Post by TerryPXM »

This is amazing @tida thanks you very much for putting this together.