White Balance Issue- RAW turn Warm when applying Filmsim preset

I am working with the latest nightly build vkdt-rawler-1.0.99-200-g188c6fa2-win64

I attached three screenshots one as a reference RAW when imported which you can see is more or less neutral. Other is the one when I tried applying D65 preset and the last is the one what you see when I apply filmsim preset to any photo.
I made no changes just the preset and it always turns this way for some reason and is never neutral.
DSCF5895.RAF (55.8 MB)

here is the RAF @hanatos if it helps!

I am not even sure how to white balance it because tune filter even when cranked all the way up won’t fix it and I don’t think I should be touching the color module? assuming it applies the D65 preset when I apply the filmsim preset.

what’s the on-set illuminant here? inside barn/tungsten?

the film sim is not trying to be neutral in a way that camera wb would. film doesn’t white balance. if you want a neutral image, you’ll have to light it accordingly during printing/when exposing the paper using the enlarger. this is done with a light source and filters in front. in vkdt, the parameters are called filter c filter y filter m and there is the tune * equivalent for fine tuning so i can hide the filter * from the ui. there is an optimiser run on D50 white input data to make sure the filters for given film and paper combination result in neutral output, and this determines the default values of the filters.

i suppose if you want a camera wb neutral render you could tweak the camera wb before handing it to the filmsim module. applying the filmsim preset will set the camera wb to D65 (because that’s the internal white too, so no chromatic adaptation performed). this is kinda the most analog experience.

Yes so far I concluded the same but didn’t understand the technical know how so I was tweaking the camera wb before handing it to the filmsim module.
What I “feel” like is that I am not getting the “neutral” output I am supposed to get from the combination of these filters aka I need to manually push yellow and magenta filters a bit to get to something that doesn’t cast a yellow tint on the image. could you maybe process this RAF in what you consider an ideal workflow with no user errors and show what the module would create ?
So far I assumed this is part of the process that’s why for several weeks I have been debating on posting this because I worked around it to get the creative intent across but if it is indeed something wrong with the windows nightly then maybe you can confirm!

These as well as the one I shared were all shot without any artificial light source so I assume it should render it warm for the golden hour light instead of how digital tools usually try to balance it out (which I do prefer but this feels too aggressive sometimes making me question) so Please if you find time it would be very helpful at least for me to understand parts of the process.

If you have ANY suggestions or tips then it will be great! I just didn’t wanna do something that affects how filmsim works ideally because I thought setting the camera wb to d65 is the way it should be and me tweaking it will be destructive. While I cannot conveniently play with filters myself (and I think they do more than just wb adjustments I don’t even want to) so I am left confused due to lack of understanding.

It looks like a white balance override or a color matrix conflict when stacking presets in this nightly build. Maybe the ‘colour’ module isn’t correctly reading the camera metadata once the filmsim is applied.

@hanatos maybe The dev can have a look :slight_smile:

I am replying to the both of you yet for some reason I keep getting blank posts?

as i pointed out above, the filmsim disables camera white balance because that’s not what would happen in an analog camera (and all the rest i already wrote above). see here:

$ cat presets/filmsim.pst 
# put spectral analog film simulation into the default pipeline
# instead of filmcurve and local contrast.
# see the [filmsim module](../../../src/pipe/modules/filmsim/readme.md).
module:filmsim:01
module:i-lut:filmsim
module:i-lut:spectem
param:i-lut:filmsim:filename:data/filmsim.lut
param:i-lut:spectem:filename:data/spectra-em.lut
connect:colour:01:output:filmsim:01:input
connect:filmsim:01:output:display:main:input
connect:filmsim:01:output:hist:01:input
connect:i-lut:filmsim:output:filmsim:01:filmsim
connect:i-lut:spectem:output:filmsim:01:spectra
connect:-1:-1:-1:filmcurv:01:input
# vvvvvvvvvvvvvvvvvvvvvvvvvvv
param:colour:01:white:1:1:1:1
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^

it’s very easy to create another preset if that suits you better. or just stack the whitebalance-camera.pst on top, it’ll revert to cam wb.

i could imagine that for some specific camera model the matrix + wb coeffs are intermingled in weird ways that they shouldn’t… but that’s hard to judge from just a tungsten shot, ideally @Yogansh_Bhatt would supply one more RAF with close to D65 illumination (or D50 that should look neutral in filmsim).

as to editing the RAF in the OP: i’d probably leave it red, i’m not a huge fan of neutralising everything. i can imagine that’s what it looked like irl.

(beautiful horse photos btw! I think the colour casts do them good :slight_smile: ).

1 Like

I love them as well! those are from a friend’s project https://sohailinvideo.pixieset.com/horses/

I can share other RAFs if it helps @hanatos and I can share some neutral DNGs from my pissel as well because those are almost always wonky which might be because of the matrix issue. I just hate how this colorimetry works. everything wrong happens in that xyz rgb and what not transition.
DSCF5918.RAF (55.8 MB)
DSCF6160.RAF (55.8 MB)
P9P_20260125_075326975.RAW-02.ORIGINAL.dng (42.6 MB)
P9P_20260110_122400120.RAW-02.ORIGINAL.dng (43.0 MB)
PXL_20250822_123651629.RAW-02.ORIGINAL.dng (57.3 MB)
IMG_260125_132009.dng (6.9 MB)

I hope these will be helpful to some extent at least.
(I feel like I have sinned by uploaded so many RAW files…maybe should’ve used drive?)

@hanatos There might actually be something wrong going on!


when I apply the pick preset it automatically resets the wb preset to d65 (I had already applied the filmsim preset) and when I change it back to camerWB then it ofcourse makes it a lot more cooler. Now I may have no clue how this works but from what I saw it seems to be applying the preset twice? because if NOW I select d65 preset it looks absolutely fine

here you can clearly see that.

What’s more interesting is this

I bet this cannot be healthy bit of warm with kodak ektar100 and kodak endura premiere as film and print .

Oh and that bug of edit history stack going behind has been there ever since I started using VKDT and I was unbothered with it so if it is a bug you may have a look!

If you need anything that I can manage to provide then I would be more than happy to.

sorry i can’t follow you jumping through here. maybe post .cfg files for each one of the steps? in particular if you do spot wb it depends where in the graph you pick the colour, and certainly it replaces the D65 white balance (since these both will set parameters in your colour module), so applying that on top makes no sense to me.