ZBrushCentral

Zscript: Make 3D Object from Alpha Image (Updated 11-6-03)

EDIT: Version for DEMO users: CubicMeshDEMO.zip

EDIT: New version Download (9-6-03):CubicMesh.zip
Add Alpha Keyboard movements.
Add GreyScale Palette
Restyle interface
Remove some bugs
Add new bugs :slight_smile:
New Interface:

This version allow to create new alphas very fast.

Hi all,
this zscript helps to build 3D objects from alpha images.
This is a WIP (i hope in your hints too…)
Next functions: Gray Scale Control, Help, ??

Zscript Interface:

Examples:
Alpha Image

3D Object

Download ZScript:
CubicMesh.zip
Download Alpha Images:
AllAlpha.ZIP

Ask for any question !

Happy ZBrushing

cameyo

Hi all,
here is an update…
CubicMesh.zip
Download:
Hey, please …don’t post so much replies … i can’t read it all :wink: :wink:

cameyo

LOL cameyo! Thanks again for another script to make my life easier! Off to try it now!

Hi Cameyo
Don’t desesperate !
There is always somebody interest for this sort of Utility
Go ahead Cameyo !
Pilou

thats another cool script, cameyo - i still need to figure out a few things but here is the result of my first experiment:

using this script generated tool
…

i created a Z-seal - like all seals it went for some water :D:

  • juandel

Thanks Cameyo! I’ll give it a try. :+1: :+1:

Thanks Cameyo, I too can see where it can be helpful to create hard edged stuff on the fly! Nice work but the interface looks like a workshop. I got a little scared at first but I think I get all the buttons. :slight_smile:
:+1:

Thankyou! :wink: :+1:

Thank you all.
If anyone had problem with this script…ask me … i never post the answer :smiley: :smiley: :smiley:
Ok. Now the serious part:
i have strange result sometimes…the Cubic Mesh created is not as the alpha…some part have different dimension and some part are not perfect cubic. You can see the problem in the first Juandel’s image: the cubes who form the Z are not precise…but this can be a Juandel decision :wink:

Thank you for trying

cameyo

Tnx for sharing zfirend !!! :smiley: :+1:

:+1:

Juandel, how was the water scene done? Great job. :+1:

right on, cameyo - i noticed it but decided to go on :slight_smile: i just have tried to create a similar one using the 3d-cube with sh and sv and zadd all off on a filled canvas, snapshotting/moving the cubes and always having an eye at transformations>info>rotation to have exact control - the result was better, but one of the z-cubes and the upper bar showed similar irregularities as the ones created via simple brush :confused:

Jay: the water effect was done this way: the gridtexture was applied to the alphaskintool via tool>texture>uvs, 2 h + v repeats, with texture transparent on. the background was done on a separate layer with simple brush dragrectangle strokes with the gridtexture - the materials colorize diffuse settings made it look blue. the pic looked like this:

i made an mrbz-grab of the best rendered image and filled a layer with the new texture (and made the other layers invisible). i selected 3d-sphere-tool and decreased its rgb value to 4 (thus enabling the defraction slider in the draw menu) and z-intensity to about 50. i think i set defraction to 40something. i then applied deformation>noise to the sphere and rotated it so that the pole/part where polys get dense sits at the upper end - another best render with adjustments, a little blur and hilighter brush postwork - voila :smiley:

  • juandel

Hi Juandel
Very good bodge-up! :cool:
Pilou

lol cameyo… awesome utility as always… looks like juandel already mastered it for us… thanks again.

Updated script (see first post to download).

cameyo

Hi Cameyo
RelativeM On, RelativeS On, Perform Snapshot Enable
Gray Scale light(255)
Step 40

I draw an Alpha in Center of Canvas
Snapshot
Move it Right with [6]
Choose an another gray Scale
-The Alpha goto 0,0 ???- Is it Normal ?
Where I am wrong ?
I have wished relative move and new color grey scale for the alpha of course :slight_smile:
Pilou

Hi Pilou,
i known…the interface is not good :frowning:
Anyway, the button L,U,D,R have keyboard shortcut: 8 for Up, 4 for Left, 6 for Right and 2 for Down.
The move and scale section are not used with keyboard move, only the _Snapshot checkbox.
Try this:
Load ZScript
Press Setup
Press Alpha Stamp
Press _SnapShot checkbox
Set Step = 30
Press Up
Now change the color with grey palette.
It works for me…but i have created the script and can’t do errors :stuck_out_tongue:

cameyo

p.s. fell free to ask and report error. Thank you for trying

Hi Cameyo
Another Zscript with infinite Conception Possibilities :cool:
With your help that’s seems work very more fine :slight_smile: I had just forbidden “Set Up” :smiley:
Quicky tests above :slight_smile:

Little bug (for demo users) you use the function “resize” = don’t permit :rolleyes:
but the script is following :cool:
General :qu: During the script process I have made Ctrl + N (erase canvas)
because I was not sastisfy.
In this case what is the better way ? Restart with “set up” ?
(that I do because nothing was appear on the Canvas )
Have you another solution ?
Have happy coding :cool:
Pilou
Ps Suggestion just for refine design :smiley:
Can you organize your Script’s Button in a width of less 650 pixels ?
Because for the poor demo users they are some impractical uses :rolleyes:
Page setting is automaticaly building by the Prog !
(example the move Buttons are two on the left side, two on the right side :slight_smile: In any case I use the “Short Cuts” :slight_smile:
But it’s minor desagreement and don’t obstruct the good walk of the Script :slight_smile:

[img]http://www2.zbrushcentral.com/uploaded_from_zbc/200306/user_image-1055175471ojc.jpg[/img]

He he Cameyo
Your Script is :eek: BiCephalous :eek: :slight_smile:
Alphas Or Objects facility !

With the objects3D it’s a disconcerting facility to make tilling pattern ! :cool:
(the test example above shows just a sphere :rolleyes: )
But you can take any object3D at any moment
and move it with the keyboard !!! :cool: :cool: :cool:
About the objects why not “marked” it for produce at the end some Polymesh ?
(of course user can make it handy during the tilling)
With your Script and the Jay Script a world of fascinating possibilities is open !
Go ahead Cameyo !
Pilou


Bug or not bug ? :rolleyes:
Hi Cameyo
When I draw the Sphere A, it seems that the Zdata and rotation of Sphere B is not relative of A (constant step)
but at the pixol under B at X,Y of A :slight_smile: Confuse isn’t it, but I think that you understand what I mean :smiley:
All become normal in C when there is no pixol under the sphere !
(except maybe pixol of the previous sphere it-self) :slight_smile:
Can you keep the Zdata of sphere A constant?
Pilou
Ps Another thing, It seems that Select Move and select Scale are not efficient !
Is it Normal?