Insimenator.org

Sims 2 Community Downloads => Misc. Mods and Careers => Topic started by: albmont on October 22, 2006, 12:25:39 pm



Title: sims2_bodypainter.r
Post by: albmont on October 22, 2006, 12:25:39 pm
I wrote a tool that can be used to generate "body paints", or those clothes that don't use any special mesh, but are just an alpha and a texture, glued over the body.

I posted the tool in the adult site, because it's trivial to use it to create adult clothes. But maybe I could post it here - unless there's some objection.

Today (2006-10-22) the tool can generate two types of bottom (a bikini-like and a gym-shorts-like), three types of top (a sleeveless shirt, a soutien-like top and a "tomara-que-caia"-like top (this is the Portuguese name, meaning "I-hope-it-falls"; it's a cylindrical top like a belt), and paint stars all over the body.

I placed it in the adult site because there's no restriction in the tool to suppress parts of the clothing, to make it transparent, to make it "miss" some critical places of the underlying body - but anyone with experience with BodyShop can do it too.

The tool runs in the R-language, a programming language and environment fitted to statistical analysis and graphics. But it's free (meaning free beer and free speech) and available for most OSes, and it's quite simple to use:

  R Development Core Team (2006). R: A language and environment for
  statistical computing. R Foundation for Statistical Computing,
  Vienna, Austria. ISBN 3-900051-07-0, URL http://www.R-project.org.

Let me hear if I can post it here without the risk of being banned :-)

[2006-10-24] - Ok, the source code (written in R) is here:


Title: sims2_bodypainter.r
Post by: alkaloid on October 23, 2006, 07:10:23 pm
Oh, wow. I've been dying to do something like this. Does it layer under clothes, or over them? (And if it layers under them, could I make you a freckle set to pack with it?)

By the way, which site did you post to? I checked the one that split from modthesims2, and I couldn't find it.


Title: sims2_bodypainter.r
Post by: albmont on October 23, 2006, 07:59:31 pm
It is a bodypaint, meaning that it covers exactly the body, like a tattoo. I think most underwear and swimwear clothes work like this.

I posted it in the adult mirror of Insimenator, with some (not so adult) examples. Maybe I can post one example here...

This is an almost standard bikini (the model is teen), generated with the commands:

  colorscheme <- list(col="green", border.col="darkgreen")
  bodypainter(panties = colorscheme, soutien.top = colorscheme)

This is just one of the zillion equivalent ways to generate it. Another way is, for example:

  x <- NULL
  x$col <- "green"
  x$border.col <- "darkgreen"
  bodypainter(panties = x, soutien.top = x)

The first key point is the call to bodypainter, passing as parameters the things you want to paint, with details of how these things are constructed.

The second key point is copying the alpha0.png and texture0.png to the alpha and texture bmp maps inside Bodyshop. See the texture0.png file below. The alpha0.png is just the same image, but totally white.


Title: sims2_bodypainter.r
Post by: kathy on October 23, 2006, 10:44:49 pm
I would think it is fine to post it.


Title: sims2_bodypainter.r
Post by: bigbette on June 25, 2008, 12:28:09 am
Cool, thanks so much for sharing.


Title: sims2_bodypainter.r
Post by: albmont on June 28, 2008, 06:10:44 am
Quote from: bigbette;1285591
Cool, thanks so much for sharing.


Did you use the script?


SimplePortal 2.1.1