POV-Ray : Newsgroups : povray.binaries.images : Christmas tree wip, glows show thru objects Server Time
14 Nov 2024 20:29:15 EST (-0500)
  Christmas tree wip, glows show thru objects (Message 1 to 4 of 4)  
From: [GDS|Entropy]
Subject: Christmas tree wip, glows show thru objects
Date: 25 Jan 2009 10:52:33
Message: <497c8ac1@news.povray.org>
Hello,

This relates to a query in p.g., and scene file in p.t.s-f.

I'm messing around with making a fake christmas tree macro, using glows as 
the lights positioned on the ends of component cylinders, but the glows seem 
to show through other objects..
I have a separate macro for making more realistic fake branches (heh..), 
which is the second image below.

This probably won't work, because I've never used triangles, and using my 
current method its very easy to suck up 2gb of ram, but I'm having fun with 
it...so whatever...
Maybe someone has a nice small file using triangles that I might look at and 
learn from.

Basic tree using test branches and no bifurcation: (blueStalk7.jpg is 
closeup blueStalk7_3.jpg is distance)
Final branch structure: (blueStalk5.jpg) (allows you to specify twig 
diameter and total height, not posted in p.t.s-f)
Bifurcation macro: (blueTree2k9_5.jpg) (a modified version of what 
"quickfur" wrote on 2/5/07 for the shortcode contest, found in p.t.s-f)

Eventually I'll add a little bifurcation to the branches, with the branch 
shown in blueStalk5 replacing the simple ones shown in blueStalk7 to more 
accurately represent a fake tree.
I probably won't be able to render it with the glows on though. Heh.

When I'm done I'll use the same positioning macros that I'm using now, along 
with a simple recursive tree macro (blueTree2k9_5.jpg) with low iteration to 
create the bifurcated branches (consisting of the blueStalk5 object) 
resulting in the final tree.

Again, nothing spectacular, just something to occupy my time out of work 
with pneumonia.
Let me know if it sucks or anything! :-p

ian


Post a reply to this message


Attachments:
Download 'blueStalk7.jpg' (63 KB) Download 'blueStalk7_3.jpg' (30 KB) Download 'blueStalk5.jpg' (27 KB) Download 'blueTree2k9_5.jpg' (61 KB)

Preview of image 'blueStalk7.jpg'
blueStalk7.jpg

Preview of image 'blueStalk7_3.jpg'
blueStalk7_3.jpg

Preview of image 'blueStalk5.jpg'
blueStalk5.jpg

Preview of image 'blueTree2k9_5.jpg'
blueTree2k9_5.jpg


 

From: clipka
Subject: Re: Christmas tree wip, glows show thru objects
Date: 25 Jan 2009 12:50:01
Message: <web.497ca5eab941bb443c6235530@news.povray.org>
"[GDS|Entropy]" <gds### [at] hotmailcom> wrote:
> This probably won't work, because I've never used triangles, and using my
> current method its very easy to suck up 2gb of ram, but I'm having fun with
> it...so whatever...

Maybe you want to use a mesh object instead of individual triangles; that should
avoid a good deal of memory-consuming overhead.

(Note that triangles don't have to form a contiguous shape to be combined in a
mesh. Basically, a mesh is just an efficient triangle and smooth_triangle
container.)


Post a reply to this message

From: [GDS|Entropy]
Subject: Re: Christmas tree wip, glows show thru objects
Date: 25 Jan 2009 15:42:09
Message: <497ccea1$1@news.povray.org>
Well I haven't tried triangles or mesh yet, its just the default sdl 
cylinder...
Would it work to export a cyl from a mesh modeller and use that?

ian

"clipka" <nomail@nomail> wrote in message 
news:web.497ca5eab941bb443c6235530@news.povray.org...
> "[GDS|Entropy]" <gds### [at] hotmailcom> wrote:
>> This probably won't work, because I've never used triangles, and using my
>> current method its very easy to suck up 2gb of ram, but I'm having fun 
>> with
>> it...so whatever...
>
> Maybe you want to use a mesh object instead of individual triangles; that 
> should
> avoid a good deal of memory-consuming overhead.
>
> (Note that triangles don't have to form a contiguous shape to be combined 
> in a
> mesh. Basically, a mesh is just an efficient triangle and smooth_triangle
> container.)
>
>
>


Post a reply to this message

From: clipka
Subject: Re: Christmas tree wip, glows show thru objects
Date: 25 Jan 2009 19:15:00
Message: <web.497d003eb941bb4463cb5da50@news.povray.org>
"[GDS|Entropy]" <gds### [at] hotmailcom> wrote:
> Well I haven't tried triangles or mesh yet, its just the default sdl
> cylinder...
> Would it work to export a cyl from a mesh modeller and use that?

Sorry, misunderstanding - looks like I didn't read your post carefully. Ignore
my comment.


Post a reply to this message

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