help with blended materials? trying to do smoke. SOLVED

General questions about Indigo, the scene format, rendering etc...
User avatar
Vampyre
Posts: 55
Joined: Sun Jan 06, 2008 12:38 am

help with blended materials? trying to do smoke. SOLVED

Post by Vampyre » Tue Feb 12, 2008 6:48 pm

i'm trying to do a scene with a ciggarette. I figure the best way to do the smoke (the only way i could think of) was to draw the smoke on a bitmap, adn use it as a blend mask between a diffuse and a null material. but its behaving strangely. the colors are clipping really early.

to illustrate the problem, i made a bitmap that is nothing but a blend from black to white. i then made a blend material using a null and a white diffuse, and mapped the blend with this bitmap. here is the result.

the origonal blend .png is the top rectangle. the resulting blend mapped material is the bottom rectangle. notice how indigo starts to convert very dark grey colors to a solid color very quickly?

i've tried compressing my smoke picture down into this range, so that its very dark, but it still looks really clipped. does anyone have any suggestions? i'm open to starting from scratch and going about this another way if i can get convincing cigarette smoke another way.

I'm also posting an image of the problem image in question
Attachments
blendm.jpg
a linear blend map to illustrate the problem
blendm.jpg (16.63 KiB) Viewed 14686 times
problem.jpg
my file, not doing what i expect
problem.jpg (26.71 KiB) Viewed 14686 times
Last edited by Vampyre on Wed Feb 13, 2008 10:06 am, edited 1 time in total.

User avatar
Kram1032
Posts: 6649
Joined: Tue Jan 23, 2007 3:55 am
Location: Austria near Vienna

Post by Kram1032 » Tue Feb 12, 2008 11:22 pm

What are your A B C values for the blend map?
Did you also try this under more normal light conditions? (That blue background looks really strange to me...)
Did you try to tweak settings like BiDir? - Maybe, it's a problem with that, again...

Vanessa07
Posts: 312
Joined: Mon Sep 24, 2007 11:17 pm
Location: Suisse

Post by Vanessa07 » Wed Feb 13, 2008 12:47 am

Can yous share your .blend are show us the .igs

User avatar
fishbowl
Posts: 20
Joined: Fri Oct 05, 2007 6:49 pm

Post by fishbowl » Wed Feb 13, 2008 4:57 am

The ultimate help I could give, is use Kerkythea for clip map based renders. It's much more forgiving regarding convenient things like that & there's less geometrical/lighting jerking about involved.

User avatar
Vampyre
Posts: 55
Joined: Sun Jan 06, 2008 12:38 am

more info

Post by Vampyre » Wed Feb 13, 2008 9:26 am

The A B and C values are the blendigo default, 0,1,0. bidir is set to on.
I first noticed the problem when trying to blend the smoke into a real scene, im posting an image of the smoke from that scene, as well as the test rig blend file for you guys to have a look at. its packed, u may have to unpack it to get it to render. thanks alot for all teh input.

I hadn't heard of Kerkythea, i'll look into it.
Attachments
blendtest.zip
.blend file of my test rig
(117.14 KiB) Downloaded 226 times
test_rig.jpg
using a black background to really show the difference
test_rig.jpg (21.39 KiB) Viewed 14540 times
in_scene.jpg
the problem in the 'real scene'
in_scene.jpg (20.23 KiB) Viewed 14540 times

User avatar
Vampyre
Posts: 55
Joined: Sun Jan 06, 2008 12:38 am

i found the fix it button

Post by Vampyre » Wed Feb 13, 2008 10:05 am

I figured it out, i'm elated. :D i increased the gamma setting for the blend map, simple as that. as u can see it looks much better now, i thought i'd post the results incase anyone else has this problem
Attachments
fixed.jpg
new result
fixed.jpg (19.19 KiB) Viewed 14533 times
settings.png
setting i changed to fix the problem
settings.png (9.12 KiB) Viewed 14533 times

User avatar
Kram1032
Posts: 6649
Joined: Tue Jan 23, 2007 3:55 am
Location: Austria near Vienna

Post by Kram1032 » Wed Feb 13, 2008 11:02 am

oh, interesting...
actually, that gamma should be at 1 for such a map, but seemingly, 2.2 is the default, even for such a kind of a map...

Roger
Posts: 94
Joined: Sat Sep 16, 2006 4:56 am
Location: The Netherlands
Contact:

Post by Roger » Fri Feb 15, 2008 2:21 am

Great! Now let's see a smoking render!
Sander "Roger" Wit
The Netherlands

Woodie
Posts: 188
Joined: Thu Oct 11, 2007 2:25 am

Post by Woodie » Fri Feb 15, 2008 3:26 am

Make sure that your object is using UV to apply texture. By default blender is using object.

User avatar
Vampyre
Posts: 55
Joined: Sun Jan 06, 2008 12:38 am

the render is comin

Post by Vampyre » Fri Feb 15, 2008 11:20 am

the render is comin, it'll be here... eventually. i'm at 28 hours now, looks like it'll take another 40 or so. and yeah ,they are uv mapped.

i think i know what caused the strange behavior. indigo expects a color blend map, so when i feed it a RGB image with grey values, it adds red green and blue together. so if thats the case, the proper way to fix it, is to set gamma to 3, instead of 2.2

User avatar
Kram1032
Posts: 6649
Joined: Tue Jan 23, 2007 3:55 am
Location: Austria near Vienna

Post by Kram1032 » Fri Feb 15, 2008 11:32 am

no, I actually thought about it:
2.2 is fine, except using a mac-screen, where you need 1.8.
It's because the blend only looks smooth at 2.2. 'cause your screen looks like that.
at 1, it wouldn't.
(simply make a standard smooth gradient and then set it's gamma to 0.454545454545454545..... (doesn't need that accuracy^^), to see, what Indigo saw :) )

User avatar
Vampyre
Posts: 55
Joined: Sun Jan 06, 2008 12:38 am

hmm, maybe you could explain that again

Post by Vampyre » Fri Feb 15, 2008 5:22 pm

i'm curious now. I don't really have any idea what you mean .could you please elaborate?

Im not sure what my screen has to do with how indigo reads the bitmap. Im sure your right, im just not following along. is indigo programmed to compensate for screen brightness and thats whats causing the result?

User avatar
Kram1032
Posts: 6649
Joined: Tue Jan 23, 2007 3:55 am
Location: Austria near Vienna

Post by Kram1032 » Fri Feb 15, 2008 9:37 pm

not directly your screen, but all the programs, you may use to get a gradient.
They're usually all set to Gamma 2.2.
In Photoshop, you can change the way, Gray is projected or understood to 1.0 or 1.8 etc. but most programs simply assume, you're using a screen with gamma 2.2 ;)

User avatar
Vampyre
Posts: 55
Joined: Sun Jan 06, 2008 12:38 am

im not sure thats it

Post by Vampyre » Sat Feb 16, 2008 11:17 am

when i made the test rig, using the blend in the gimp, i set the left color to 0,0,0 and the right color to 255,255,255.. wouldn't that create a linear blend no matter what screen i have?

User avatar
Kram1032
Posts: 6649
Joined: Tue Jan 23, 2007 3:55 am
Location: Austria near Vienna

Post by Kram1032 » Mon Feb 18, 2008 12:48 am

well, yes....
A linear blend, when you look at it with gamma 2.2 ;)
gamma moves the grey-point, so if your screen was set to gamma 1.0 and gimp would create a blend for 2.2, it would look (I think) brighter in the middle, while if the gimp would create a gamma 1.0 blend while your screen is 2.2 (which it should be), you'd get a too dark blend. ;)

Post Reply
22 posts

Who is online

Users browsing this forum: No registered users and 24 guests