POV-Ray : Newsgroups : povray.binaries.images : Transparant shadow? Server Time
11 May 2024 15:08:25 EDT (-0400)
  Transparant shadow? (Message 1 to 10 of 21)  
Goto Latest 10 Messages Next 10 Messages >>>
From: Thomas de Groot
Subject: Transparant shadow?
Date: 11 Nov 2009 10:23:22
Message: <4afad6ea@news.povray.org>
OK. I should know this, but somehow I am baffled now.

- png image_map (on a mesh2)
- uv_mapped
- with alpha channel (for serrated borders)
- floating above a table
---> casts *straight* shadows!

Rendered in 3.7 beta 34.

I forget something, but what?

Thanks for your help!!!


-- 
All the best,

Thomas


Post a reply to this message


Attachments:
Download 'TT.jpg' (95 KB)

Preview of image 'TT.jpg'
TT.jpg


 

From: Stephen
Subject: Re: Transparant shadow?
Date: 11 Nov 2009 11:32:39
Message: <4afae727$1@news.povray.org>
Thomas de Groot wrote:
> OK. I should know this, but somehow I am baffled now.
> 
> - png image_map (on a mesh2)
> - uv_mapped
> - with alpha channel (for serrated borders)
> - floating above a table
> ---> casts *straight* shadows!
> 
> Rendered in 3.7 beta 34.
> 
> I forget something, but what?
> 
> Thanks for your help!!!
> 
> 
> 







-- 

Best Regards,
	Stephen


Post a reply to this message

From: clipka
Subject: Re: Transparant shadow?
Date: 11 Nov 2009 12:45:07
Message: <4afaf823$1@news.povray.org>
Thomas de Groot schrieb:

> Rendered in 3.7 beta 34.
> 
> I forget something, but what?

A bug I'd say.


Post a reply to this message

From: clipka
Subject: Re: Transparant shadow?
Date: 11 Nov 2009 12:47:33
Message: <4afaf8b5@news.povray.org>
clipka schrieb:
> Thomas de Groot schrieb:
> 
>> Rendered in 3.7 beta 34.
>>
>> I forget something, but what?
> 
> A bug I'd say.

(That is, yes, I can confirm this behavior, and no, it's not how it 
should work...)


Post a reply to this message

From: clipka
Subject: Re: Transparant shadow?
Date: 11 Nov 2009 12:54:07
Message: <4afafa3f$1@news.povray.org>
clipka schrieb:
> clipka schrieb:
>> Thomas de Groot schrieb:
>>
>>> Rendered in 3.7 beta 34.
>>>
>>> I forget something, but what?
>>
>> A bug I'd say.
> 
> (That is, yes, I can confirm this behavior, and no, it's not how it 
> should work...)

... and no, much to my surprise POV-Ray 3.6.2 ain't doin' it right either.

How come it has taken so long for this one to surface? You'd think it 
was some trivial everyday case. And how the **** come I've done renders 
with ample such partially-transparent objects casting /proper/ shadows?


Post a reply to this message

From: Jaime Vives Piqueres
Subject: Re: Transparant shadow?
Date: 11 Nov 2009 13:09:31
Message: <4afafddb$1@news.povray.org>

> clipka schrieb:
>
> ... and no, much to my surprise POV-Ray 3.6.2 ain't doin' it right
> either.
>
> How come it has taken so long for this one to surface? You'd think it was
> some trivial everyday case. And how the **** come I've done renders with
> ample such partially-transparent objects casting /proper/ shadows?


   I don't know... but this happened sometimes to me with certain PNG files,
and not with others. For example, all the trasnparent PNG files I export
from Chief Architect seem to behave this way, but the ones from TORCS I used
on my last post here and other scenes, work perfectly... except if I use
filtering media or fog, of course.

-- 
Jaime Vives Piqueres

http://www.ignorancia.org


Post a reply to this message

From: clipka
Subject: Re: Transparant shadow?
Date: 11 Nov 2009 13:40:54
Message: <4afb0536$1@news.povray.org>
Jaime Vives Piqueres schrieb:

>> clipka schrieb:
>>
>> ... and no, much to my surprise POV-Ray 3.6.2 ain't doin' it right
>> either.
>>
>> How come it has taken so long for this one to surface? You'd think it was
>> some trivial everyday case. And how the **** come I've done renders with
>> ample such partially-transparent objects casting /proper/ shadows?
> 
> 
>   I don't know... but this happened sometimes to me with certain PNG files,
> and not with others. For example, all the trasnparent PNG files I export
> from Chief Architect seem to behave this way, but the ones from TORCS I 
> used
> on my last post here and other scenes, work perfectly... except if I use
> filtering media or fog, of course.


I guess I got it.

The following construct works properly:

     texture { uv_mapping pigment { image_map { ... } }

This one doesn't:

     texture { pigment { uv_mapping image_map { ... } }

Note the placement of the uv_mapping statement.

I'll file an error report if nobody has done yet.


Post a reply to this message

From: Stephen
Subject: Re: Transparant shadow?
Date: 11 Nov 2009 14:06:29
Message: <4afb0b35@news.povray.org>
Stephen wrote:

>>
> 

> 

> 

Since it is a bug why not use a transparency map in the meantime?

-- 

Best Regards,
	Stephen


Post a reply to this message


Attachments:
Download 'card01.jpg' (76 KB)

Preview of image 'card01.jpg'
card01.jpg


 

From: Jaime Vives Piqueres
Subject: Re: Transparant shadow?
Date: 11 Nov 2009 14:18:07
Message: <4afb0def@news.povray.org>

> I guess I got it.
>
> The following construct works properly:
>
> texture { uv_mapping pigment { image_map { ... } }
>
> This one doesn't:
>
> texture { pigment { uv_mapping image_map { ... } }
>
> Note the placement of the uv_mapping statement.
>
> I'll file an error report if nobody has done yet.

   Didn't test it, but looking at my own scenes now, I can confirm this
finding: the ones I exported from Chief Architect where exported with
Poseray, which puts the uv_mapping inside the pigment, indeed... you're
fast, man!


-- 
Jaime Vives Piqueres

http://www.ignorancia.org


Post a reply to this message

From: clipka
Subject: Re: Transparant shadow?
Date: 11 Nov 2009 14:46:47
Message: <4afb14a7@news.povray.org>
Jaime Vives Piqueres schrieb:

>   Didn't test it, but looking at my own scenes now, I can confirm this
> finding: the ones I exported from Chief Architect where exported with
> Poseray, which puts the uv_mapping inside the pigment, indeed... you're
> fast, man!

Yeah, I guess I am - as a matter of fact, I even finished a fix some 
minutes ago, ready to be submitted to the codebase.

Wasn't such a big deal actually. Throwing out the dozen lines of code 
that handled the case that's working already, in favor of five lines of 
code someplace else to handle both cases in one go did the job.


Post a reply to this message

Goto Latest 10 Messages Next 10 Messages >>>

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