stig-atle / io_scene_pbrt

Exporter for blender that exports the scene into pbrt's ascii file format.
59 stars 16 forks source link

Some times materials has to be removed fully, then re-apply to make it export #19

Closed stig-atle closed 4 years ago

stig-atle commented 4 years ago

Some times materials has to be removed fully, then re-apply to make it export again, this happens some times when switching the material from one type to another, for example matte to glass. Not entirely sure why it happens, needs to be fixed.

stig-atle commented 4 years ago

I have found the issue with this, the export code for materials will be refractored and improved. I'll rewrite the whole thing, I discovered the issue while working on getting 'mix' material exported. The way the export is written now is 'wrong' but it works (with the exception of this bug mentioned here). I'll focus on this the next days, fix this issue - and also add the 'mix' material.

The way It'll work now is that I'll find the 'output' node in the material, get the intput material assigned there, then export, to do this I need to rewrite a lot, but I got a lot of it done tonight,

stig-atle commented 4 years ago

Fixed.