Current stable version: 0.1.1

16bit grayscale PNG as texture

Project:YafaRay
Version:0.1.1
Component:Code
Category:feature request
Priority:normal
Assigned:DarkTide
Status:ready to commit
Description

Hi,

I would like to use a 16bit grayscale PNG image, that I generate and export in MATLAB as texture (see the 8 and 16 bit version of the texture file in the attachment patternfile16bit.png, and patternfile_8bit.png).  In Blender it is working nice. The 8bit grayscale PNG image works also nice in yafaray (yafaray_8bit.png). The 16bit grayscale texture looks very strange in yafaray(yafaray_16bit.png) , it looks like some kind of  Moire pattern, or interference pattern. I also tried to use the exr  ouput format of yafaray, but it looked the same. I guess there must be some problem with the png import function where the 16 bit images gets processed in yafaray. Is there any way to use 16bit grayscale or 48bit color images of any format as textures in yafaray?

My system: is 64bit Ubuntu 9.10 Karmic Koala

Kernel: 2.6.31-19-generic

yafaray version: 0.1.1

Thanks, best regards,

Zoltan

AttachmentSize
patternfile16bit.png114.79 KB
patternfile_8bit.png20.26 KB
yafaray_8bit.png39.08 KB
yafaray_16bit.png389.82 KB

Comments

#1

Category:bug report» feature request
Assigned to:Anonymous» DarkTide
Status:active» needs work

I'm finishing a full refactor of texture handling for yafaray that includes 16Bit gray scale and 48Bit color image support

Just Vampires Playing To Be Mortals...
[color=#004000][b]---------{--<[/b][/color][color=#FF0000][b]@[/b][/color]

#2

Status:needs work» ready to commit

It's done :D

Just Vampires Playing To Be Mortals...
[color=#004000][b]---------{--<[/b][/color][color=#FF0000][b]@[/b][/color]