Fun with Noise..
Helper last edited by
On 27/06/2014 at 03:42, xxxxxxxx wrote:
Cinema 4D Version: R14
Platform: Windows ;
Language(s) : C++ ;
I`m allocating some noise shaders inside my generator plugin and have got this working as follows:
//// NOISE BLEND //// BaseShader *noiseBlend = BaseShader::Alloc(Xnoise); BaseContainer *noiseData_BLEND = noiseBlend->GetDataInstance(); noiseData_BLEND->SetLong(SLA_NOISE_NOISE, 2007); //DISPLACED_TURBULENCE noiseData_BLEND->SetLong(SLA_NOISE_SEED, 724); op->InsertShader(noiseBlend, NULL);
However, there seem to be some noise types missing from the available list. Above i have used ID 2007 to create Displaced Turbulence - i got this ID from the resource xslanoise.h but the list there doesn`t include all of the noise types available - for example Fire, Electric etc..
After trawling through the MAZE of different references to noise in the c4d resource folders etc i`m stuck as to how to get these noise types ( i really need the type Fire )..
Any help or suggestions appreciated!
Here`s the enum list as it appears in xslanoise.h:
SLA_NOISE_NOISE = 1001, // long //SLA_NOISE_NOISE_BOX_NOISE = 2001, //SLA_NOISE_NOISE_BLIST_TURB = 2002, //SLA_NOISE_NOISE_BUYA = 2003, //SLA_NOISE_NOISE_CELL_NOISE = 2004, //SLA_NOISE_NOISE_CRANAL = 2005, //SLA_NOISE_NOISE_DENTS = 2006, //SLA_NOISE_NOISE_DISPL_TURB = 2007, //SLA_NOISE_NOISE_FBM = 2008, //SLA_NOISE_NOISE_HAMA = 2009, //SLA_NOISE_NOISE_LUKA = 2010, //SLA_NOISE_NOISE_MOD_NOISE = 2011, //SLA_NOISE_NOISE_NAKI = 2012, //SLA_NOISE_NOISE_NOISE = 2013, //SLA_NOISE_NOISE_NUTOUS = 2014, //SLA_NOISE_NOISE_OBER = 2015, //SLA_NOISE_NOISE_PEZO = 2016, //SLA_NOISE_NOISE_POXO = 2017, //SLA_NOISE_NOISE_RANDOM = 2018, //SLA_NOISE_NOISE_SEMA = 2019, //SLA_NOISE_NOISE_STUPL = 2020, //SLA_NOISE_NOISE_TURBULENCE = 2021, //SLA_NOISE_NOISE_VL_NOISE = 2022, //SLA_NOISE_NOISE_WAVY_TURB = 2023, //SLA_NOISE_NOISE_SEPARATOR = 3000, //SLA_NOISE_NOISE_CELL_VORONOI = 2024, //SLA_NOISE_NOISE_DISPL_VORONOI = 2025, //SLA_NOISE_NOISE_SPARSE_CONV = 2026, //SLA_NOISE_NOISE_VORONOI_1 = 2027, //SLA_NOISE_NOISE_VORONOI_2 = 2028, //SLA_NOISE_NOISE_VORONOI_3 = 2029, //SLA_NOISE_NOISE_ZADA = 2030,
Helper last edited by
On 27/06/2014 at 03:47, xxxxxxxx wrote:
..and almost immediately i answer my own question:
Noise type Fire is ID 2031 and obviously hasn`t been added on to the list yet.. Assuming the other unavailable noise types are there also..
I really wish the docs and available references for these things were more transparent. It seems like with every little step working with the C4D api i have to spend hours going around in circles trying to second-guess how things work due to lack of proper documentation..
Things could be SO MUCH quicker and easier, it`s not rocket-science..