PDA

View Full Version : how to rotate alpha image in custom angles



uzer
05-25-03, 09:06 AM
there are FLH FLV and ROT, can we set the image of alpha to an angle like 15 or 30 degrees, etc.

TIA.
-pop

The Namek
05-25-03, 09:25 AM
Ok this might not be the shortest way ...

Draw a black plane with flat color on the canvas. Go in edit mode , drop it with texturemaster , Select single layer brush and draw rectangle stroke. Draw the wanted alpha on the plane in white color and pick with texturemaster.
Now select rotate and rotate the plane , ofcource the alpha on it will rotate with it.
Select the MRZRGB grabber and grap the canvas if the alpha is on the right angle.
Go to the texture panel and select the correct texture , use makealpha there...

After writing this I realized there MUST be a shorter way :^p

uzer
05-25-03, 01:37 PM
i ws expecting a zsc to handle the dirty job :P

anyway, thx for the input although not likely working this way :/

Frenchy Pilou
05-25-03, 04:16 PM
hi uzer
Another solution
I have made a little tut for this sort of thing :)
on the bottom page :) (http://www.pixolator.com/zbc-bin/ultimatebb.cgi?ubb=get_topic&f=1&t=011019)
have happy Zbrushing :cool:
Pilou

aurick
05-25-03, 08:05 PM
Your wish is granted. :)

Here is a script to rotate the currently selected alpha to any angle between 0 and 360 degrees.

When the script finishes, the currently selected alpha will be the new rotation, your material and tool will be left exactly as they were before you ran the script, and the canvas will remain unchanged.

Enjoy!

RotateAlpha.zip (http://www2.zbrushcentral.com/uploaded_from_zbc/200305/user_file-1053918308ouz.zip)

If anyone would like to see the original source or to modify it for personal use, the .txt file can be downloaded here (http://www2.zbrushcentral.com/uploaded_from_zbc/200305/user_file-1053938158nvi.txt). I originally uploaded the .zsc format because it requires fewer ZBrush resources.

Frenchy Pilou
05-26-03, 12:29 AM
Bravo Aurick !
A another indispensable Zscript to inclose in native Zbrush !
Uzer is a lucky Zbrusher :D
Pilou
Ps I have try it, but that seems don't work with the Demo version !
Message "Programm failed - Action no conform"(in french :)
All works fine till "Menu /Edit palette"
Is that normal ?

enter
05-26-03, 03:10 PM
Hi Aurick,

The script keeps crashing my ZB everytime I run it :confused: I use Win XP, 512 Ram. Hopefully there is away to work around.

Enter

Gary Komar
05-26-03, 03:49 PM
think this should work for ya one command [iconfig. 155] fixed it here.rotate alpha.txt (http://www2.zbrushcentral.com/uploaded_from_zbc/200305/user_file-1053989259fcp.txt)

aurick
05-26-03, 03:53 PM
Thanks, Gary! That did indeed fix the error.

Frenchy Pilou
05-27-03, 01:12 AM
Hi Gary & Aurick
Gary you are a genius :)
All works fine now for the demo users :cool: http://www2.zbrushcentral.com/uploaded_from_zbc/200305/user_image-1054023128ggb.gif
Pilou
One of the most important Zscript to add !

Gary Komar
05-27-03, 04:11 AM
thanks frenchy but auricks the genious,great utility!

cameyo
05-27-03, 06:33 AM
Hi all,
the utility is very fine, but...there is a problem.
Example:
Select Alpha Brush 33 and type 15 on rotate slider.
Now press rotate
Press rotate again
Press rotate again.
You will see the alpha is clipped :mad:
The problem arise because the AutoCrop is ON when grab the canvas.
I'm working to solve this, but... i have another problem:
The IKeyPress statement don't work with CanvasClick :mad:
Ex. [IKeyPress, SHIFT, [Canvasclick,0,0,1,1,,640,480],320,240]]
Can someone explain where i'm wrong ?

Good news: the MRGBZGrabber can now grab with perfect square...Press SHIFT when you grab :tu: :tu: :tu:

cameyo

Frenchy Pilou
05-27-03, 07:10 AM
Hi Cameyo
If your trick of the Mrgbgrabber + Shift = a square selection works fine ! AND It'S WORKS FINE :cool: :cool: :cool:
(you can press and de-press Shift during the selection)
You win the Trick of the Day :tu: :tu: :tu:
Pilou
http://www2.zbrushcentral.com/uploaded_from_zbc/200305/user_image-1054045540aof.jpg
Absolutly no problem with Brush 33 and 15° ! and Default parameters :)
Have you take the last version of Gary ?
Just reselect the first and enter 99° :)

http://www2.zbrushcentral.com/uploaded_from_zbc/200305/user_image-1054050246vin.jpg
The Only problem with the repetitive rotation is the deformation at the bottom of Alpha !
So you must make just one rotation with the wished ° :)

cameyo
05-27-03, 11:03 AM
Pilou, your problem is the same as mine...maybe English is not our native language...
Good idea and Zscript anyway.
Thank You Aurick and Gary.

cameyo

uzer
05-27-03, 11:11 AM
big thanks for all your input :)
-pop

aurick
05-27-03, 11:20 AM
AutoCrop is turned on to keep the important part of the alpha as large as possible and minimize the black space surrounding it.

If you rotate a rotated alpha, you can get clipping -- such as your experience of rotating 15 degrees and then rotating the rotated alpha 15 degrees more. However, if you select the original alpha and rotate it 30 degrees, there will be no clipping. In short, use the script on the original rather than on rotated versions of it.

juandel
05-27-03, 11:21 AM
excellent script, Matthew! :tu: :tu: :tu:

an add on to Nameks way: to achieve 3d-rotated alphas it isnt necessary to use texturemaster/single layer brush: alpha>make texture + apply it with flat material onto a plane which then can be rotated in 3d> mrgbz-grab at any point> texture make alpha, voila.

- juandel

Frenchy Pilou
05-27-03, 01:38 PM
Sorry Cameyo
I have forget to read one line (clipped/cropped) :(
I have always thinking that a little drawing show more than words :)
You see : Aurick takes same advice : just one rotation with the good angle :)
And you right : English is not my native language :D
Have happy Zbrushing or Zcodding :cool:
Pilou