Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

mapping a texture for a dimpled sphere surface

Lear Cale
wordy bugger
Join date: 22 Aug 2007
Posts: 3,569
12-04-2008 06:44
I'm trying to make a Christmas tree, using several layers of dimpled sphere (each one looking like an inverted, flattened ice cream cone, and using the conical surface, the rest being transparent).

My images are pictures of my fake xmas tree, from above, so they're radial.

How can I map this image into one that works on the conical surface? Basically, I need to cut the image vertically from center to the top, and then distort this so that the two newly cut edges are opposite edges of a rectangle.

The top of the new rectangle would be the old center point, stretched out.
The old 4 edges would become the new bottom edge (the top edge being split in the middle and winding up on the outer parts of the bottom edge).

I use GIMP, and I don't know any 3d modelling tools (is that what I need?)

I'll make this xmas tree a freebie, and if anyone could do these images as a favor, I'd be happy to pay in products or some custom scripting. I'll need at least 3 images for different heights, but might need 4 or 5.

Thanks!
Abu Nasu
Code Monkey
Join date: 17 Jun 2006
Posts: 476
12-04-2008 07:40
My first instinct is, for Photoshop, Filter > Distort > Polar Coordinates.
Polar to Rectangular.

I think...

I'm on the verge of going nuts.
Bath time.
Lear Cale
wordy bugger
Join date: 22 Aug 2007
Posts: 3,569
12-04-2008 12:11
Abu, you da av!

/me puts Abu on his xmas list.
Abu Nasu
Code Monkey
Join date: 17 Jun 2006
Posts: 476
12-05-2008 04:23
Seriously, Lear, you put a smile on my face. Kudos.

Don't be surprised if I holla at you in-world one of these days about a scripting thing. Hehehe.
Jeredin Denimore
Romani Ite Domum
Join date: 5 Jul 2008
Posts: 95
12-05-2008 10:44
I'm guessing here, but couldn't you also have used planar mapping instead of default mapping?
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
12-05-2008 12:00
Nope, not on a prim with a curved surface.
Jeredin Denimore
Romani Ite Domum
Join date: 5 Jul 2008
Posts: 95
12-05-2008 12:43
From: Rolig Loon
Nope, not on a prim with a curved surface.


If you take a picture of a cone from directly above it looking down, the resulting image will have the deformation already built into it. Planar mapped it will result in stretching back out to appear normal. Of course this doesn't always produce the best results but then, neither does polar-rectangular manipulation. I've used planar mapping to solve the exact problem asked and also polar-rectangular manipulation as well... heck trying both will often lead to using a different solution each case.