[tuhopuu-devel] UV calculation improvment?

BjornMose tuhopuu-devel@blender.org
Sun, 11 Jan 2004 01:00:28 +0100


This is a multi-part message in MIME format.

------=_NextPart_000_0049_01C3D7DE.4DE264E0
Content-Type: text/plain;
	charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

UV calculation improvment?

please revise the attached files.
i did  tag with /*+++ BM*/ /*--- BM*/
butspace.h / c
buttons_editing.c
editface.c
hope this works
http://mitglied.lycos.de/mosebjorn/transfer/

umm... well... seems to me the developer who did the old (... to 2.28) =
code simply gave up and left a WIP.
i was revising UV (auto) calulation code to get my new buttons panel =
working for all cases.

details:
did a test with blender 2.28 (U_key in face_select_mode of the 3D_view)
and found that=20

1.CUBE mapping=20
just rumbles into BOUNDS code. so this option does not work at all in =
2.28 or later.
i did try to fix it (by inseting a "break;") but the results do not make =
very much sense.

2.FROM WINDOW mapping=20
uses the current view to determine the projections direction.
had to recode this for buttons.=20

so i made some changes to the attached files to get it working the way =
i'd like it.

some double code now for you to see the difference. (i'd like to remove)

go to  =
[url]http://mitglied.lycos.de/mosebjorn/uvmapping/goon1.html[/url] to =
see my plan=20
(my be not in sync with my new posted code).
or visit:
[url]http://www.elysiun.com/forum/viewtopic.php?t=3D18945[/url]
[url]http://www.elysiun.com/forum/viewtopic.php?t=3D18871[/url]
[url]http://www.blender.org/modules.php?op=3Dmodload&name=3DphpBB2&file=3D=
viewtopic&t=3D2529[/url]
to get a deeper view in this.


------=_NextPart_000_0049_01C3D7DE.4DE264E0
Content-Type: text/html;
	charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dwindows-1252">
<META content=3D"MSHTML 5.50.4522.1800" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2>UV calculation improvment?</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>please revise the attached files.<BR>i =
did&nbsp;=20
tag with /*+++ BM*/ /*--- BM*/<BR>butspace.h /=20
c<BR>buttons_editing.c<BR>editface.c</FONT></DIV>
<DIV>hope this works</DIV>
<DIV><A=20
href=3D"http://mitglied.lycos.de/mosebjorn/transfer/">http://mitglied.lyc=
os.de/mosebjorn/transfer/</A></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>umm... well... seems to me the =
developer who did=20
the old (... to 2.28) code simply gave up and left a WIP.<BR>i was =
revising UV=20
(auto) calulation code to get my new buttons panel working for all=20
cases.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>details:<BR>did a test with blender =
2.28 (U_key in=20
face_select_mode of the 3D_view)<BR>and found that </FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>1.CUBE mapping <BR>just rumbles into =
BOUNDS code.=20
so this option does not work at all in 2.28 or later.<BR>i did try to =
fix it (by=20
inseting a "break;") but the results do not make very much =
sense.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>2.FROM WINDOW mapping <BR>uses the =
current view to=20
determine the projections direction.<BR>had to recode this for buttons.=20
</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>so i made some changes to the attached =
files to get=20
it working the way i'd like it.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>some double code now for you to see the =
difference.=20
(i'd like to remove)</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>go to&nbsp;=20
[url]http://mitglied.lycos.de/mosebjorn/uvmapping/goon1.html[/url] to =
see my=20
plan <BR>(my be not in sync with my new posted code).<BR>or=20
visit:<BR>[url]http://www.elysiun.com/forum/viewtopic.php?t=3D18945[/url]=
<BR>[url]http://www.elysiun.com/forum/viewtopic.php?t=3D18871[/url]<BR>[u=
rl]http://www.blender.org/modules.php?op=3Dmodload&amp;name=3DphpBB2&amp;=
file=3Dviewtopic&amp;t=3D2529[/url]<BR>to=20
get a deeper view in=20
this.<BR></FONT></DIV></FONT></DIV></FONT></DIV></FONT></DIV></BODY></HTM=
L>

------=_NextPart_000_0049_01C3D7DE.4DE264E0--