[Bf-committers] Patch for Spherical UV mapping
Ton Roosendaal
bf-committers@blender.org
Wed, 28 May 2003 11:12:30 +0200
Hi,
The 'sphere mapping' routine uses the current view to detect how to
map, just as an extra 'control' for the user to define how mapping
works. Not an issue, but a feature! :)
The biggest problem with this routine, was that it doesn't take care of
creating a correct cycle. In the back you could notice an ugly seam,
where the UV coords wrap around 360 degrees. I saw that someone (in the
NaN days) wrote extra code to correct it. Did you test that?
I don't know why the menu option was removed... I'm fine with putting
it back, but then I expect you to give it a good test and report on
correct behaviour! :)
-Ton-
On Wednesday, May 28, 2003, at 09:40 Europe/Amsterdam, Michael
Velikanje wrote:
> Hi,
> I've added (re-enabled the menu selection) and tested spherical UV
> mapping (the code was present for, but there was no menu selection for
> spherical mapping). There are some issues with the spherical mapping
> but it doesn't seem to be in the code for the mapping, but in the way
> blender assigns the UV coordinates when a sphere is added to a scene,
> you get different results depending on which window the sphere is
> added in, the best results being when the sphere is added in the top
> view.
> I submitted a patch file at blender.org, but am going to do so here,
> again. This file only adds one line to
> blender/source/blender/src/editface.c , that being this
> "MENUSTRING("Sphere", UV_SPHERE_MAPPING) "|" "
>
> This is the full patch_editface.txt file.
>
> Index: blender/source/blender/src/editface.c
> ===================================================================
> RCS file: /cvsroot/bf-blender/blender/source/blender/src/editface.c,v
> retrieving revision 1.6
> diff -u -r1.6 editface.c
> --- blender/source/blender/src/editface.c 3 May 2003 16:06:30 -0000 1.6
> +++ blender/source/blender/src/editface.c 28 May 2003 07:05:57 -0000
> @@ -633,6 +633,7 @@
> mode= pupmenu(MENUTITLE("UV Calculation")
> MENUSTRING("Cube", UV_CUBE_MAPPING) "|"
> MENUSTRING("Cylinder", UV_CYL_MAPPING) "|"
> + MENUSTRING("Sphere", UV_SPHERE_MAPPING)
> "|"
> MENUSTRING("Bounds to 1/8", UV_BOUNDS8_MAPPING) "|"
> MENUSTRING("Bounds to 1/4", UV_BOUNDS4_MAPPING) "|"
> MENUSTRING("Bounds to 1/2", UV_BOUNDS2_MAPPING) "|"
>
>
> Is there any reason that this couldn't/shouldn't be added to the
> source?
>
> Michael Velikanje
> AKA: VelikM
>
> _______________________________________________
> Bf-committers mailing list
> Bf-committers@blender.org
> http://www.blender.org/mailman/listinfo/bf-committers
>
>
------------------------------------------------------------------------
--
Ton Roosendaal Blender Foundation ton@blender.org