POV-Ray : Newsgroups : povray.general : Tent object Server Time
27 Nov 2024 18:37:13 EST (-0500)
  Tent object (Message 1 to 8 of 8)  
From: Cerambycideh
Subject: Tent object
Date: 23 Mar 2008 18:40:01
Message: <web.47e6e96dfe4726f18ace12d10@news.povray.org>
Anyone know where I can find Povray code for a tent object - a large event tent
with or without embellishments. Alternatively, any quick and simple ideas for
code to make one would be helpful. I could do the basic shapes easily enough,
but I'm looking for a ready object because I'd prefer to have something with
folds in the canvas etc., so that it is a bit more realistic. I would spend
some time doing this myself, but deadline is looming and I spent a long time
making some building renders for the same project (thank you Pov-stairs!).
Thanks.


Post a reply to this message

From: Chris B
Subject: Re: Tent object
Date: 25 Mar 2008 10:12:52
Message: <47e91674$1@news.povray.org>
"Cerambycideh" <nomail@nomail> wrote in message 
news:web.47e6e96dfe4726f18ace12d10@news.povray.org...
> Anyone know where I can find Povray code for a tent object - a large event 
> tent
> with or without embellishments. Alternatively, any quick and simple ideas 
> for
> code to make one would be helpful. I could do the basic shapes easily 
> enough,
> but I'm looking for a ready object because I'd prefer to have something 
> with
> folds in the canvas etc., so that it is a bit more realistic. I would 
> spend
> some time doing this myself, but deadline is looming and I spent a long 
> time
> making some building renders for the same project (thank you Pov-stairs!).
> Thanks.
>

I don't recall ever having seen anything quite resembling a POV-Ray event 
tent. How realistic do you need it to be?

When you say 'folds in the canvas', do you mean the rounded edges where it 
folds around the tent poles, some sort of grid of folds from where it was 
previously folded up, or the loose folds of cloth around the openings?

Is there a google image you could point to that illustrates what you mean?

Although it's not designed for this, the Labeller macros at 
http://lib.povray.org/ include a polyhedron shape with rounded edges. This 
generates a thin CSG object that you can easily punch holes in. I did a 
quick and simple test with one 4 sided polyhedron for the roof, one for the 
rim around the edge of the roof and a third for the main sides of the tent 
and it looked sort of ok (not brilliant, but ok).

How good/quick do you need it to be?

Regards,
Chris B.


Post a reply to this message

From: Cerambycideh
Subject: Re: Tent object
Date: 25 Mar 2008 10:55:00
Message: <web.47e91f44496570ec800e16f70@news.povray.org>
Thanks for the reply, Chris. I don't need the event tent to be too realistic,
but would like it to be better than a stacked cube and pyramid.  I don't need
folds around the openings, I'll just difference out a doorway. The folds I was
thinking of are just the 'waves' in the canvas near the bottom of tents.  I'll
have a look at the tool you mention to see if it can generate this.  I figured
somone must have seen or used a large-tent object before.  If I can't find
anything and end up creating this from scratch I'll be sure to post it for
future users.
   Thanks.


Post a reply to this message

From: Stephen
Subject: Re: Tent object
Date: 25 Mar 2008 11:30:50
Message: <44aiu31dkn8dj4lb0mmk16vs02qge2lobu@4ax.com>
On Tue, 25 Mar 2008 10:52:29 EST, "Cerambycideh" <nomail@nomail>
wrote:

>Thanks for the reply, Chris. I don't need the event tent to be too realistic,
>but would like it to be better than a stacked cube and pyramid.  I don't need
>folds around the openings, I'll just difference out a doorway. The folds I was
>thinking of are just the 'waves' in the canvas near the bottom of tents.  I'll
>have a look at the tool you mention to see if it can generate this.  I figured
>somone must have seen or used a large-tent object before.  If I can't find
>anything and end up creating this from scratch I'll be sure to post it for
>future users.
>   Thanks.
>

If that is all you want then "normals" in the texture might be a quick
and easy way for you to do it. In the docs look at the phase,
tutorial. It is for an animation but the principle can be applied to
stills. 
-- 

Regards
     Stephen


Post a reply to this message

From: Chris B
Subject: Re: Tent object
Date: 25 Mar 2008 11:55:20
Message: <47e92e78$1@news.povray.org>
"Stephen" <mcavoysAT@aolDOTcom> wrote in message 
news:44aiu31dkn8dj4lb0mmk16vs02qge2lobu@4ax.com...
> On Tue, 25 Mar 2008 10:52:29 EST, "Cerambycideh" <nomail@nomail>
> wrote:
>
>>Thanks for the reply, Chris. I don't need the event tent to be too 
>>realistic,

Glad you said that :-)

>>but would like it to be better than a stacked cube and pyramid.  I don't 
>>need
>>folds around the openings, I'll just difference out a doorway. The folds I 
>>was
>>thinking of are just the 'waves' in the canvas near the bottom of tents. 
>>I'll
>>have a look at the tool you mention to see if it can generate this.

I've posted a couple of images that I did by quickly playing around with the 
Labeller macro on povray.binaries.images (See 'Event' Tent Ideas). If they 
come anywhere close to what you want I can post the settings and the design 
file so you can play about with them (you'll also need the Labeller download 
I mentioned before).

>> I figured
>>somone must have seen or used a large-tent object before.  If I can't find
>>anything and end up creating this from scratch I'll be sure to post it for
>>future users.
>>   Thanks.
>>
>
> If that is all you want then "normals" in the texture might be a quick
> and easy way for you to do it. In the docs look at the phase,
> tutorial. It is for an animation but the principle can be applied to
> stills.
> -- 
>
> Regards
>     Stephen

The images I posted use a simple 'wrinkles' normal, but, as Stephen says, 
you should be able to adjust that to achieve the sort of folds you're after.

Regards,
Chris B.


Post a reply to this message

From: Cerambycideh
Subject: Re: Tent object
Date: 25 Mar 2008 12:45:01
Message: <web.47e938cf496570ec800e16f70@news.povray.org>
Thanks Chris and Steven,
   These are good ideas.  Chris, the tents you posted look great and I could
definitely use this!  The reason I thought the waving canvas effect would be
more complicated than I wanted to tackle was that this would occur at the
bottom while the canvas at the top would be taught. So the waves would dampen
with height.  In any case, the event tents images you posted look like what I'm
looking for.  Thanks to both of you for your help!
  - Cerambycideh


Post a reply to this message

From: Chris B
Subject: Re: Tent object
Date: 25 Mar 2008 13:21:56
Message: <47e942c4@news.povray.org>
"Cerambycideh" <nomail@nomail> wrote in message 
news:web.47e938cf496570ec800e16f70@news.povray.org...
> Thanks Chris and Steven,
>   These are good ideas.  Chris, the tents you posted look great and I 
> could
> definitely use this!  The reason I thought the waving canvas effect would 
> be
> more complicated than I wanted to tackle was that this would occur at the
> bottom while the canvas at the top would be taught. So the waves would 
> dampen
> with height.  In any case, the event tents images you posted look like 
> what I'm
> looking for.  Thanks to both of you for your help!
>  - Cerambycideh
>

I've posted a scene file and the corresponding 'design' file on 
povray.binaries.scene-files.
The 'design' file contains the pattern embossed on the different surfaces. 
You could simplify this down to a single colour if you want. If you want a 
different pattern on each of the 3 polyhedrons you can use 3 copies of the 
file and include the appropriate file before each 'Labeller' call. You can 
apply a different normal to each of the 3 objects too. To get waves that 
dampen with height you may want to define a normal_map for the sides of the 
tent.

To use this object in a scene you're likely to have to scale it up a fair 
bit. At the moment the object goes from y=0 to y=0.023, with a base centred 
at the origin. I'd guess you'll probably have to scale it by about 140 if 
you're working to a scale of 1 unit = 1 metre.

Regards,
Chris B.


Post a reply to this message

From: Cerambycideh
Subject: Re: Tent object
Date: 25 Mar 2008 22:25:01
Message: <web.47e9c153496570ec8ace12d10@news.povray.org>
"Chris B" <nom### [at] nomailcom> wrote:

> I've posted a scene file and the corresponding 'design' file on
> povray.binaries.scene-files.
> The 'design' file contains the pattern embossed on the different surfaces.
> You could simplify this down to a single colour if you want. If you want a
> different pattern on each of the 3 polyhedrons you can use 3 copies of the
> file and include the appropriate file before each 'Labeller' call. You can
> apply a different normal to each of the 3 objects too. To get waves that
> dampen with height you may want to define a normal_map for the sides of the
> tent.
>
> To use this object in a scene you're likely to have to scale it up a fair
> bit. At the moment the object goes from y=0 to y=0.023, with a base centred
> at the origin. I'd guess you'll probably have to scale it by about 140 if
> you're working to a scale of 1 unit = 1 metre.
>
> Regards,
> Chris B.

Chris,
   That macro of yours is very impressive! I tweaked your code a bit by playing
with the size of the rendered event tent and fiddled with the wrinkles in the
canvas. I came out really well. :) Thanks very much for you help. I'm in awe of
how quickly and elegantly you wrote that code!
   - Cerambycideh


Post a reply to this message

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