Forum: Poser Python Scripting


Subject: not sure what to call this script :)

anxcon opened this issue on Feb 13, 2005 ยท 10 posts


anxcon posted Sun, 13 February 2005 at 3:42 PM

k a script idea first the limitsa modeller would need to stick to in order for script to work right all vertices must stick to an X,Y grid with 0.1 increments 0.5, 0.4, 0.3, 0.2, 0.1, 0.0, -0.1, -0.2, -0.3, -0.4 etc X,Y be to a max of +/- 50.0 so center and 500 each way the file from script would be 1001x1001 pixel so 501x501 is 0.0 then Z coords of a vertex can be 0.00000000 to 1.00000000 (think model files goto 8 points right of demical?) any increment k script works like load vertex (X, Y, Z) pixel (501 - (X * 10)),(501 - (Y * 10)) = roundnearest(255 * Z) //R G B are same value, output above makes a greyscale map //which shows Z coords "depth" 0-255 pic loop till no vertices left save image exit script ignores edges/faces/etc, only looks at vertices would require limits on modeling, but i can work with that want to try mr ockham?:)


anxcon posted Sun, 13 February 2005 at 3:54 PM

and before looking at model, creates a "starting" pic named "empty.bmp" unless one already exists (incase of deletion or something perhaps? be a one time thing tho) with all pixels set to 0R/0B/0G the script opens that, then the pixels with no vertex have a default "0" value to start with


ockham posted Sun, 13 February 2005 at 4:01 PM

Seems possible, but I'm curious about the highly specific formula. What's the main purpose?

My python page
My ShareCG freebies


anxcon posted Sun, 13 February 2005 at 4:03 PM

mmm........nothing :)


underdog posted Sun, 13 February 2005 at 6:40 PM

[DrMcCoyVoice]My god! I think he's building a tesseract, Jim![/DrMcCoyVoice]

[MrSpockVoice]Fascinating![/MrSpockVoice]

:-P


anxcon posted Tue, 15 February 2005 at 10:52 AM

ockham dont want to make -.^ im hurt


underdog posted Tue, 15 February 2005 at 9:40 PM

Can't really blame him without some kind of clue as to the usefulness. What does it do?


anxcon posted Tue, 15 February 2005 at 11:18 PM

ah fine fine i make a flat square in a modelling program, say blender the square is whatever vertices wide and high then i move them along Z scale to make a shape lets see how smart you are :) whats a greyscale map do that is showing "depth" info? if you said displacement maps, you get it right now this is only part of it the image produced is often just 1 part of the model has to be made piece by piece then pasted over the UV template for the end figure thus the end result is an easy way to create accurate and high detail dis maps with perfect shape now doesnt need to be in poser, can be its own program just needs to read obj files and output the bmp file its also good for trans maps


anxcon posted Thu, 17 February 2005 at 1:45 AM

booo...


an0malaus posted Fri, 18 February 2005 at 8:14 AM

Are you making a pin-map? Regular grid of planar vertices displaced in Z by topology of whatever's behind the grid... BTW, I'd love to see a folded tesseract [assuming I could survive the experience] ;-)



My ShareCG Stuff

Verbosity: Profusely promulgating Graham's number epics of complete and utter verbiage by the metric monkey barrel.