PDA

View Full Version : Sky Tutorial - Need help



Stargo
11-14-01, 03:16 PM
Hi to all,
the script below should show you the way I did the sky in my 3D landscape image, but after I did the image and ran it again it didn't work correctly. :( :(

http://www2.zbrushcentral.com/zbc_uploads/user_image-1005779535swb.jpg

Please - Could you test the script whether it runs ok at your system ?

The finished script should show you the image
above.

Sky.txt (http://www2.zbrushcentral.com/zbc_uploads/user_file-1005779707ksd.txt)


_______

Stargo

Kruzr
11-14-01, 03:43 PM
Hi Stargo . . . :)

I downloaded your Script & played it on my system: PIII 500 / 512 Ram / TNT2 - 32 mgs video ram / Windows 98SE, everything seemed to work fine during the script play. But my final image wasn't the same as your image posted above. There were several times that during the running of the script, the image looked great & I wouldn't have changed the settings from that point on. :rolleyes:

I liked your version of creating the cloud effects, I'm going to have to give it a try soon. ;)

Have a good one . . . :cool: Mark.

ZBC Moderator
11-14-01, 03:44 PM
Hi Stargo,

Your image did appear like the above image at points while the script was running. Is it possible that the above image was saved, then you went on adjusting the image before you stopped recording the ZScript?

If you want a ZScript that shows the making of the above image, you can play your ZScript while recording a new ZScript. When you are happy with the way you image is, hit 'ESC' to stop the running ZScript, then stop and save the ZScript that you were recording.

-ZuZu :)

Stargo
11-17-01, 10:03 AM
Thank you very much ZuZu and Kruzr for your
interest to help me with my ZScript problems.
I'm very sad that none of the other ZBrush Central members with more experience show
an interest for my problems

http://www2.zbrushcentral.com/zbc_uploads/user_image-1006018614mov.jpg

To the picture: I didn't saved the picture until I have finished the script !!!!

ZuZu: I followed your advice and played the script again, then I've stopped it during the playing with escape and saved the part of
the script.
After a restart of ZBrush I played the part
again, but it didn't work correct :(
I did some Zscripts during the last days,
but none of them worked correct.
I often get such error messages like in the
image below:


http://www2.zbrushcentral.com/zbc_uploads/user_image-1006019623yza.jpg

I use the following system configuration:

Dual Pentium II 400 Mhz
512 MB Ram
Leadtek Gforce II Card
Windows 2000

I hope someone have an idea to solve my problems.

_______

Stargo

aurick
11-17-01, 10:56 AM
Hello Stargo,

Without knowing more about the problems that you were having with the playback of the first script, it's impossible for me to try and figure out what's going wrong. It seemed to run fine for me, as well.

In the second case, it looks like you've run into an unpleasant trap that can occur when you splice scripts together. Basically, every time you use the MRGBZGrabber during a ZBrush session (as opposed to during a recording), it creates a brand new texture and alpha, each numbered sequentially.

In this case, the script is asking for your 10th Alpha grab. That's fine when you're making the recordings -- but depending upon where you splice things together you can end up in a situation where playback doesn't grab as many times as you had during your initial session. You see, as long as your original session is running, every one of your grabs remains in ZBrush's memory. But the moment you close ZBrush, they are gone. Now if you restart ZBrush and run your script, it has to create each of those grabs all over again. In the case of a spliced script, the spliced section can end up numbering differently from your original session, and therefore ask for a grab that was oringinally recorded before splicing. I hope this is making sense, because it's not easy to explain. :(

It may not be possible to repair this after the fact. If it IS possible, what you need to do is play your script up to the point of the error. When you get the error, look at your Alpha palette to see what the highest numbered alpha grab is -- this will be the last one that the script recorded, and is probably the one that you're asking for with the script. Once you know the new value to use, you can open your recording with a text editor and find the place where it says

[IPress,ALPHA: DepthGrab10] (space inserted by me to prevent getting a smiley face)

Change the DepthGrab number to the new value, and it should be good to go -- at least, up to the point where you use another grabbed alpha or texture.

In the future, when you are going to record a splice it is very important to restart ZBrush before you run the recording up to the point that you will splice. You need to do this, actually, every single time you restart the script. Otherwise, the second time that you run the script, ZBrush will keep right on creating and numbering brand new grabs -- let's say that the recording had 5 grabs. If you play it twice in one session, you'll now have 10 grabs in your palette! But those extra grabs will vanish when you restart ZBrush and play the script (which is the same as if a new person runs it). By always restarting ZBrush before you play a script that you are working on (whether editing or preparing to splice), you ensure that you won't run into this problem again.

My own technique is to record my script, then restart ZBrush. When I play the script back, if I see a place that I wish to stop the script and continue fresh from, I then open the script in a text editor and find that stop place. By entering a [Note,"Stop Here"], I can restart ZBrush, load the script, and play it up to the note. I then hit escape at the note to stop the recording session exactly where I wanted to, and start a brand new recording from that place -- I DO NOT reinitialize ZBrush for this second recording. When I'm done with the new recording, I save it with a name like "temp" and close ZBrush again. I now open both scripts, delete out everything in the first script from the stop note on, and then paste into it all the actions from the temp script. I now save this script with a new name in order to leave the original version intact if I don't like what I've done. Now, when I restart ZBrush the new script will play seamlessly across the splice, without calling for anything that doesn't exist.

I hope that helps! If not, please email me and I will try to work with you to get you up and running.

Muvlo
11-17-01, 11:34 AM
I hope you get your script working fully. :) The images you have posted in this thread are really pretty. :tu:

P.S. Aurick: When doing ZScript posts and you don't want a smily to show, you can turn on "Disable smilies in this post" right beneath where it asks in a post window to "Show signature". :)

Stargo
11-17-01, 03:12 PM
First,thank you very much for your fast reaction to find a solution for my ZScript problems, Aurick :) :)
I have problems with all Zscripts I want to do, not only the spliced ones :(
I always do a restart of Zbrush when I want to record a script and I also do a restart when I replay a script.
The first script above should show you exactly the same image I've posted,but
the result of my Zscript is this image :(

http://www2.zbrushcentral.com/zbc_uploads/user_image-1006038201fcp.jpg

The picture below show you a very simple picture I've recorded without splices,but after I played the Zscript again it didn't work correct.

http://www2.zbrushcentral.com/zbc_uploads/user_image-1006038264fzh.jpg

The script to the image: test3.txt (http://www2.zbrushcentral.com/zbc_uploads/user_file-1006038302bzm.txt)

The error message:

http://www2.zbrushcentral.com/zbc_uploads/user_image-1006038580hva.jpg

I hope we can find a solution for my problems,together.


________

Stargo


P.S.: Sorry for my English :( , I hope you can understand all I've written to you

Pixolator
11-17-01, 04:25 PM
Hi :)
Stargo: Here is one more item to add to the excellent information above...
When you are recording a ZScript (especially if you intend to publish it) make sure that you are indeed using the default ZBrush configuration and preferences.

For example… While recording, Do you have PREFERENCES ::MOUSE AVG value set to 1? (which is the default value) or do you have it set to higher values?

Please try the following…

If you have a file named “ZCfg123.cfg” in your ZBrush folder, rename it “UnusedZCfg123.cfg” in order to temporarily disable your preferences and allow ZBrush to restart in a default state.
After renaming the file, launch ZBrush and record a short ZScript sequence. Replay the recorded sequence and verify that it is running properly.

Let me know if this helps, or if you are still encountering difficulties while recording ZScripts.
-Pixolator

aurick
11-17-01, 10:17 PM
I'm afraid that I haven't been able to figure out what's happening, yet. Reading the script, it looks like it SHOULD work. But it's not. aargh! I'll keep digging, but wanted to let you know what the progress is.

Please do try Pixolator's suggestion and let us know if that was the culprit.

Stargo
11-18-01, 06:34 AM
Thank you very much for your help,Pixolator and Aurick :) :)

Pixolator:

Your advice with the "ZCfg123.cfg" file is only a solution for the modeling part of my scripts :) :(

The modeling part works fine now :) , but the light adjustments I did during the recording didn't work correct during the replaying of the script :(

The pictures below show you the original image I did during the recording session of my latest script and the result after I've replayed the script.

http://www2.zbrushcentral.com/zbc_uploads/user_image-1006093818sgn.jpg

The script: test8.txt (http://www2.zbrushcentral.com/zbc_uploads/user_file-1006093893spr.txt)

After I did the script, I also saved my Zbrush scene file and if you want, I will send you the file to make a compare with the replayed one.

Thank you very much for your help again. :)

Have a nice day :)

_______

Stargo

juandel
11-18-01, 06:52 AM
script-problems put aside: these are wonderful vistas, Stargo! great technique! kudos :tu: :tu: :tu:

- juandel