Maxwell Render

Maxwell Render Information Repository
It is currently Sat May 25, 2013 3:15 pm

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 11 posts ] 
Author Message
PostPosted: Fri Jan 16, 2009 12:43 pm 

Joined: Wed Mar 07, 2007 4:32 pm
Posts: 186
Location: UK, West Sussex
It may well be a photoshop thing.. I started with a Tif file with alpha channel. Can someone explain how I use the alpha channel to create the 255,255,255 white background that I believe is required?

Thanks

Image


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 16, 2009 1:21 pm 

Joined: Wed Mar 07, 2007 4:32 pm
Posts: 186
Location: UK, West Sussex
So I created a simple text file in photoshop and saved as PNG.

I presume I am getting the white because it is a bmp, so if you zoom in i see gray round each letter? How do I get round this?

Image

Image


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 16, 2009 2:01 pm 

Joined: Fri Dec 31, 2004 9:00 pm
Posts: 538
hello richard,

i think you should use 2 image: one similar to the above "time" for alpha, and one entirely black, so that the "bleeding" that you see white in the render will be black.

If you transpose to the tree, it will be: your black and white alpha with the tree silouhette, and a color image for the clipmap content. The color image should not be on a white background, but black/green/yellow: the color of the inner pixel in the tree color map (don't know if that's clear?).

You can also contract the tree selection of a few pixel, so that you don't see the soft transition to the white background.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 16, 2009 2:08 pm 
User avatar

Joined: Wed Apr 13, 2005 4:58 pm
Posts: 3016
Location: Madrid
Use two mapped layers: one ghost (Nd=1 and white transmittance) and one your material; use your alpha map for one layer and the same but inverted for the other one. Maybe you should play with remove matte options in photoshop for the alpha map.

If you still want to use only one layer you should transform the alpha image to black and white (not RGB or greyscale) and then back to RGB so it loses the greys. Maybe you could also play with levels to do so...

_________________
http://www.ftella.com


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 16, 2009 2:21 pm 

Joined: Wed Mar 07, 2007 4:32 pm
Posts: 186
Location: UK, West Sussex
Thank you both. I dont really understand your answers.
All I understand from both replies is the contract/expand command in photoshop to mask the gray area around the tree.

Thanks

Rich


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 16, 2009 4:14 pm 
User avatar

Joined: Wed Jan 26, 2005 8:30 pm
Posts: 7385
Location: Uzbjeckiazutjenikitzistan
You are getting the white borders around the clipmapped geometry because there are greyscale values in the clipmap. So if it's not 100% white, it will be fully opaque in the render when you use this map in the transmittance channel.

To expand what the others suggested, you could instead make a 2 bsdf material and instead of using this map in the transmittance channel, you use it as a weightmap for each bsdf. This way you can get variable transparency and this border will be far less visible.

So in the first bsdf, set transmittance to fully white, ND 1. Apply this map as a weightmap for the bsdf.

The second bsdf, place your color map in the refl0 slot, and apply this map also as a weightmap for the bsdf but invert it (white areas in the map mean these areas will be visible).

Ofcourse you can also make this material as 1 bsdf and use this map in the transmittance channel but then use the Threshold or Contrast commands in Photoshop to make sure there are nothing but 100% black or white pixels in the map. But for finer, smaller objects such as this text it's better to use 2 bsdfs method.

_________________
Next Limit Team
Merchant of happiness


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 16, 2009 7:00 pm 

Joined: Wed Mar 07, 2007 4:32 pm
Posts: 186
Location: UK, West Sussex
Thanks for your explaination Mihai.

So my material looks like this? Have I got al the correct settings? Im crap with materials in Maxwell...

Image


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 16, 2009 10:14 pm 
User avatar

Joined: Wed Jan 26, 2005 8:30 pm
Posts: 7385
Location: Uzbjeckiazutjenikitzistan
Yes, it looks ok. The weightmap for the first bsdf should be inverted, I can't see that from the screenshot. So white values in the weightmap means that part of the material will be visible.

_________________
Next Limit Team
Merchant of happiness


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 17, 2009 7:12 pm 

Joined: Mon Jan 16, 2006 1:44 am
Posts: 1033
Location: Zürich
it should work like this. the weightmap is inverted, the window on the right still shows the texture from the other layer which is a bit confusing in the rhino plugin.
if the result is still weird: set the roughness of your first bsdf to 0. I never now if this matters, but I always put 0 there.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 17, 2009 11:40 pm 
User avatar

Joined: Mon Jan 10, 2005 11:53 am
Posts: 7610
I think the mask image is slightly larger than the color image, that's the problem.

_________________
Next Limit Team


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 18, 2009 12:27 am 
User avatar

Joined: Thu Jul 03, 2008 3:06 pm
Posts: 547
Location: Hamburg, Germany
In Photoshop there is a pretty useful feature for these kinda things:

filter>other>maximum
filter>other>minimum

These are for expanding and contracting B/W Images.

otherwise you can always use

select>modify>Expand
select>modify>Contract

to work on a selection instead of a mask


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC + 1 hour [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group