[Bf-committers] Shader Conversion tool

Dalai Felinto dfelinto at gmail.com
Wed Feb 2 21:09:42 CET 2011


you should use the datatoc. It's a python script available
on release\datafiles
"Usage: datatoc <data_file>" this will spit out the .c file. You can't
change the filename after because the name is used to name the bytebuffer
(you can edit it inside the file if you want to rename it after the
conversion).

Dalai

2011/2/2 Ρυακιωτάκης Αντώνης <kalast at gmail.com>

> Hi
>
> Thanks, I've figured as much.
> The shader exists as both byte buffer and string but I think that in the c
> files, only the buffer is referenced(this is what a quick search shows
> anyway).
> But since I was thinking of adding a couple of functions on my own I must
> convert from the string format to the byte array(I'm not THAT much
> obsessive-compulsive to start writing in ascii :) )
>
> My question is if there already is such a converter but I think I will
> implement my own little utility to do that anyway, it's no big deal.
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers
>


More information about the Bf-committers mailing list