POV-Ray : Newsgroups : povray.general : taking off a bathingsuit Server Time
29 Nov 2024 19:40:58 EST (-0500)
  taking off a bathingsuit (Message 1 to 6 of 6)  
From: Barehunter
Subject: taking off a bathingsuit
Date: 29 Jun 2005 20:35:01
Message: <web.42c33d424ea3ce38f76c6a30@news.povray.org>
Hello all. I am working on a modell of a character that can be either naked
or wear a bathingsuit. The coding for the suit is in three separate
sections ( Torso, LeftLeg, and RightLeg) do to the limbs being movable.

Now to remove the bathingsuit I have been remarking out the sections ( I.E.
/*   */ ) but this is becoming rather tedius. Is there a way to code a
switch that can have those sections bypassed, say, depending on the value
of a variable I #declare at the top of the INC file?
(like #declare removebathingsuit = 1;)


Post a reply to this message

From: Alain
Subject: Re: taking off a bathingsuit
Date: 29 Jun 2005 21:03:32
Message: <42c344e4$1@news.povray.org>
Barehunter nous apporta ses lumieres en ce 2005-06-29 20:30:
> Hello all. I am working on a modell of a character that can be either naked
> or wear a bathingsuit. The coding for the suit is in three separate
> sections ( Torso, LeftLeg, and RightLeg) do to the limbs being movable.
> 
> Now to remove the bathingsuit I have been remarking out the sections ( I.E.
> /*   */ ) but this is becoming rather tedius. Is there a way to code a
> switch that can have those sections bypassed, say, depending on the value
> of a variable I #declare at the top of the INC file?
> (like #declare removebathingsuit = 1;)
> 
> 
> 
> 
You are on the right track. You can have #declare putbathingsuit = 1; in the main
scene where it's 
usualy more accessible. Put the swimsuit in an #if(putbathingsuit )...#end block. One
such block per 
places where the swuimsuit get used.

Alain


Post a reply to this message

From: Barehunter
Subject: Re: taking off a bathingsuit
Date: 29 Jun 2005 21:20:00
Message: <web.42c34827dc145126f76c6a30@news.povray.org>
Alain <ele### [at] netscapenet> wrote:

> You are on the right track. You can have #declare putbathingsuit = 1; in the main
scene where it's
> usualy more accessible. Put the swimsuit in an #if(putbathingsuit )...#end block.
One such block per
> places where the swuimsuit get used.
>
> Alain

ok 2 questions so I understand this better.

1: In this case the only possible answers for the variable is 1 or 0?
2: and this would be typed as..

 #if(putbathingsuit)

 // my coding here//

#end block

is that right?
btw the reason I would keep it in the INc file as my current project is a
commision in which I am converting a certain webartist's webcomic into 3D
episode by episode. each character is in it's own INC to better control
them. all characters are fully movable and in some cases have separate
emotions visible on ther faces.


Post a reply to this message

From: Barehunter
Subject: Re: taking off a bathingsuit
Date: 30 Jun 2005 00:25:00
Message: <web.42c37382dc145126f76c6a30@news.povray.org>
"Barehunter" <nomail@nomail> wrote:
> ok 2 questions so I understand this better.
>
> 1: In this case the only possible answers for the variable is 1 or 0?
> 2: and this would be typed as..
>
>  #if(putbathingsuit)
>
>  // my coding here//
>
> #end block
>
> is that right?
>

ok I tried it and figured out not to include the word "block" other then
that yes that's how it works. I love learning new things about this
software.


Post a reply to this message

From: Alain
Subject: Re: taking off a bathingsuit
Date: 30 Jun 2005 06:45:20
Message: <42c3cd40$1@news.povray.org>
Barehunter nous apporta ses lumieres en ce 2005-06-30 00:22:
> "Barehunter" <nomail@nomail> wrote:
> 
>>ok 2 questions so I understand this better.
>>
>>1: In this case the only possible answers for the variable is 1 or 0?
>>2: and this would be typed as..
>>
>> #if(putbathingsuit)
>>
>> // my coding here//
>>
>>#end block
>>
>>is that right?
>>
> 
> 
> ok I tried it and figured out not to include the word "block" other then
> that yes that's how it works. I love learning new things about this
> software.
> 
> 
When usonf an #if, 0=don't use what follows. NOT 0 = execute the folloing.
If you want to be able to use several values, you should use the
#switch(variable)
	#case(value 1)[code]#breack
	#case(value 2)[code]#breack
.
.
.
	#case(value x)[code]#breack
#end
  structure. In your case, you can have a veriety of suits changed by a single
variable.

Alain


Post a reply to this message

From: Nicolas Alvarez
Subject: Re: taking off a bathingsuit
Date: 21 Jul 2005 22:19:02
Message: <42e05796@news.povray.org>

news:42c3cd40$1@news.povray.org...
> When usonf an #if, 0=don't use what follows. NOT 0 = execute the folloing.
> If you want to be able to use several values, you should use the
> #switch(variable)
> #case(value 1)[code]#breack
> #case(value 2)[code]#breack
> .
> .
> .
> #case(value x)[code]#breack
> #end
>  structure. In your case, you can have a veriety of suits changed by a 
> single variable.
>
> Alain

It is #break, not #breack. :)

My usual mistake is to write finnaly instead of finally (I never remember 
which letter is doubled) and to write #declaer when I write it too fast.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.