View Full Version : Zscript: Make 3D Object from Alpha Image (Updated 11-6-03)
EDIT: Version for DEMO users: CubicMeshDEMO.zip (http://www2.zbrushcentral.com/uploaded_from_zbc/200307/user_file-1055311547bvk.zip)
EDIT: New version Download (9-6-03):CubicMesh.zip (http://www2.zbrushcentral.com/uploaded_from_zbc/200307/user_file-1055139777jde.zip)
Add Alpha Keyboard movements.
Add GreyScale Palette
Restyle interface
Remove some bugs
Add new bugs :)
New Interface:
http://www2.zbrushcentral.com/uploaded_from_zbc/200306/user_image-1055139652mbl.jpg
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
http://www2.zbrushcentral.com/uploaded_from_zbc/200306/user_image-1054477141jcz.jpg
3D Object
http://www2.zbrushcentral.com/uploaded_from_zbc/200306/user_image-1054477257haw.jpg
Download ZScript:
CubicMesh.zip (http://www2.zbrushcentral.com/uploaded_from_zbc/200307/user_file-1054477458mza.zip)
Download Alpha Images:
AllAlpha.ZIP (http://www2.zbrushcentral.com/uploaded_from_zbc/200307/user_file-1054477505eyd.zip)
Ask for any question !
Happy ZBrushing
cameyo
Hi all,
here is an update...
CubicMesh.zip (http://www2.zbrushcentral.com/uploaded_from_zbc/200307/user_file-1054561684uin.zip)
Download:
Hey, please ...don't post so much replies ... i can't read it all ;) ;)
cameyo
LOL cameyo! Thanks again for another script to make my life easier! Off to try it now!
Frenchy Pilou
06-02-03, 10:48 AM
Hi Cameyo
Don't desesperate !
There is always somebody interest for this sort of Utility
Go ahead Cameyo !
Pilou
juandel
06-02-03, 12:17 PM
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
http://www2.zbrushcentral.com/uploaded_from_zbc/200306/user_image-1054581304nck.jpg ...
i created a Z-seal - like all seals it went for some water :D:
http://www2.zbrushcentral.com/uploaded_from_zbc/200306/user_image-1054581384edw.jpg
- juandel
Belleski
06-02-03, 09:08 PM
Thanks Cameyo! I'll give it a try. :tu: :tu:
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. :)
:tu:
ztevie-rae
06-02-03, 11:24 PM
Thankyou! ;) :tu:
Thank you all.
If anyone had problem with this script...ask me ... i never post the answer :D :D :D
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 ;)
Thank you for trying
cameyo
MrBraun
06-03-03, 07:06 AM
Tnx for sharing zfirend !!! :D :tu:
Jaycephus
06-03-03, 07:15 AM
:tu:
Juandel, how was the water scene done? Great job. :tu:
juandel
06-03-03, 08:18 AM
right on, cameyo - i noticed it but decided to go on :) 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:
http://www2.zbrushcentral.com/uploaded_from_zbc/200306/user_image-1054653011jsb.jpg
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 :D
- juandel
Frenchy Pilou
06-03-03, 08:41 AM
Hi Juandel
Very good bodge-up! :cool:
Pilou
drjjwow
06-03-03, 05:34 PM
lol cameyo.. awesome utility as always.. looks like juandel already mastered it for us... thanks again.
Updated script (see first post to download).
cameyo
Frenchy Pilou
06-09-03, 02:43 AM
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 :)
Pilou
Hi Pilou,
i known...the interface is not good :(
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 :p
cameyo
p.s. fell free to ask and report error. Thank you for trying
Frenchy Pilou
06-09-03, 06:10 AM
http://www2.zbrushcentral.com/uploaded_from_zbc/200306/user_image-1055163787wxe.jpg http://www2.zbrushcentral.com/uploaded_from_zbc/200306/user_image-1055167653maj.gif
Hi Cameyo
Another Zscript with infinite Conception Possibilities :cool:
With your help that's seems work very more fine :) I had just forbidden "Set Up" :D
Quicky tests above :)
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 :D
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 :) In any case I use the "Short Cuts" :)
But it's minor desagreement and don't obstruct the good walk of the Script :)
http://www2.zbrushcentral.com/uploaded_from_zbc/200306/user_image-1055175471ojc.jpg
Frenchy Pilou
06-09-03, 01:09 PM
He he Cameyo
Your Script is :eek: BiCephalous :eek: :)
Alphas Or Objects facility ! http://www2.zbrushcentral.com/uploaded_from_zbc/200306/user_image-1055189172jdl.jpg
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
Frenchy Pilou
06-09-03, 02:49 PM
http://www2.zbrushcentral.com/uploaded_from_zbc/200306/user_image-1055194922mgk.jpg
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 :) Confuse isn't it, but I think that you understand what I mean :D
All become normal in C when there is no pixol under the sphere !
(except maybe pixol of the previous sphere it-self) :)
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?
Rafael Hernandez
06-09-03, 03:59 PM
Thanks for the script cameyo. This will come very handy.
Hi frenchy,
you push my script in unknown land :p
Well, now the answers:
1) i will rewrite my script to fit on your monitor ;) and remove the Resize statement for demo users.
2) The best method to restart is to press "SetUp".
3) Maybe a mark checkbox will be inserted...it don't works for alpha :(
4) If you use a 3D tool the orientation depends from the pixols already in the canvas...the script was built with Alpha in mind...not 3D object... ;) But i can (i hope) keep the orientation a costant.
5) What you mean for not efficient (SelectMove and Select Scale)?? Yes the LUDR buttons are more fast.
Hint: In scale mode set the alpha to 2 and step to 4 now press Q to leave the scale mode...now pressing the LUDR buttons you can drive your point as the old LOGO language...pen up if with _snapshot is off.
It's a pleasure write zscripts for people like you.
cameyo
p.s. have you seen the movie in "3D terrain" thread ?
Frenchy Pilou
06-10-03, 12:42 AM
Hi Cameyo
Unfortunatly, I can't see the Movie Terrain 3D because the new system of Avi needs a codec
who is not support by my antic machine :(
Your Script is terrific of simplicity !
I shall try your Scale and Move :)
I believe that was a function for resize the object :D
Maybe it's not a good idea to add a "marked" function
because as I said primitivly User can make this with own choice "handy" for each object that he want !
Let keep simplicity :)
I think that the constant Zdata should be a good thing :)
Have happy coding :rolleyes:
Pilou
Ps I shall make some images with some complixity for show the power of your crazzy script :cool:
Pss The update script is always on the first post ?
Hi Frenchy,
the new version will be on zforum (on first page) tomorrow...i hope.
cameyo
Frenchy Pilou
06-10-03, 01:44 AM
Hi Cameyo
I am not hurried :D
Pilou
Frenchy Pilou
06-10-03, 03:28 AM
http://www2.zbrushcentral.com/uploaded_from_zbc/200306/user_image-1055241121jlh.jpg http://www2.zbrushcentral.com/uploaded_from_zbc/200306/user_image-1055241159ozk.jpg http://www2.zbrushcentral.com/uploaded_from_zbc/200306/user_image-1055241230eey.gif
http://www2.zbrushcentral.com/uploaded_from_zbc/200306/user_image-1055256806wok.gif
Some quicky doodles :)
Have fun cubiking :cool:
Pilou
Frenchy Pilou
06-10-03, 12:59 PM
Hi Cameyo
For the anecdocte about Logo language :)
I have seen some young prodigy program with it complet system of bank Card cash distributor ! :eek:
For the Scale, Move, I have not yet find something (nothing is passed ) :rolleyes:
I must be have a mental block :D but I continue to explore, and I am sure that the Fiat Lux will be arrive :)
Training is the best for all thing : Confucius ;)
Pilou
Ps I was optimist ! Select Scale and Select Move resist to my trying :confused: Maybe I use it without to know !)
Pss Suggestion : Automatic Cyclic colors after each Snapshot
(building the level of grey or colors for crazzy gradient)
Key [5] for enable/disable this cyclic function :)
Hi Pilou Frnchy, (reverse the order ;) )
i have added the zscript for demo users of Z in the first post.
I have rewrite the interface to fit on your monitor ;)
Well, i try to explain the SelectMove and SelectScale:
1) Load Zscript
2) Press "Setup" and then "Alpha Stamp"
3) Press SelectMove and SelectM checkbox, SelectScale and SelectS Checkbox and _Snapshot checkbox
4) MoveX slider = 20, MoveY slider = -20
5) ScaleX slider = 6, ScaleY slider = -2
6) Press "Do Transform" or the shortcut 'A'
Basically when you press "Do Transform" the current alpha will be moved and/or scaled with the values of the relative sliders; if RelativeM and/or RelativeS is OFF the alpha will be moved and/or scaled with absolute values.
To tell you the truth, the Move and Scale routine were written by Digit...and must works (unless i add some bugs) !!
Hope this helps.
cameyo
p.s. Maybe i'll write a new script with your hints ;)
Frenchy Pilou
06-11-03, 12:01 AM
He he Cameyo
That was the Boutton "Do transform" :D
I had never press it !!! :rolleyes:
Some buttons to press like a space shuttle :)
For my hint I make a little correction :)
"Marked" should be wished but Enable/disable :)
Go ahead Cameyo (constant Zdata(enable/ disable) should be the most important)+ "marked"
and great thx for your customized Script :cool:
Pilou
Ps Not yet try the new script, but the Scale+Smove yes !!!
All works fine : that's is very powerful for increase or decrease form ! Bravo again :cool:
With the automatic color change that will be perfect :D
Frenchy Pilou
06-11-03, 08:37 AM
Hi Cameyo
I just understand than your script is imagined just for Alpha(for Making 3D Objects)
and not for manipulating 3D objects :D :D :D :rolleyes: (slow minding)
I was made some manipulations with object3D (move with the keys who work very good))
so it's normal that I can't return normaly on my foot :D
But if you want make the same for Objects3D, that will be great :cool:
Pilou
Frenchy Pilou
06-11-03, 10:42 AM
http://www2.zbrushcentral.com/uploaded_from_zbc/200306/user_image-1055353305wel.gif
Hijacking of the Cameyo Script :)
10 second realized !
Pilou
Powered by vBulletin® Version 4.1.11 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.