Volumetric Clouds code
Posted: Thu Oct 05, 2023 10:50 am
I'm trying to incorporate some C++ code into the CopperCube source code but I am having an issue with the final run on every frame part.
I have taken the code out of the existing namespace 'smoothly' and placed the sub class 'cloud' into CC source in the scene manager (CSceneManager.h, CSceneManager.cpp).
Everything seems to be ok except for the on frame running once the constructor initializes the volumetric cloud setup.
I cant seem to get the correct syntax to get it to run on every frame.
Original instructions was this:
## Instructions
smoothly::cloud C(driver,scene);
Then call C.renderSky() at each frame
But I have changed it to initialize with: CSceneManager::cloud C(Driver,this);
and on every frame with: C.renderSky();
Can anyone help me getting this to run ???
source data and all files: https://easyupload.io/cnzp93
I have taken the code out of the existing namespace 'smoothly' and placed the sub class 'cloud' into CC source in the scene manager (CSceneManager.h, CSceneManager.cpp).
Everything seems to be ok except for the on frame running once the constructor initializes the volumetric cloud setup.
I cant seem to get the correct syntax to get it to run on every frame.
Original instructions was this:
## Instructions
smoothly::cloud C(driver,scene);
Then call C.renderSky() at each frame
But I have changed it to initialize with: CSceneManager::cloud C(Driver,this);
and on every frame with: C.renderSky();
Can anyone help me getting this to run ???
source data and all files: https://easyupload.io/cnzp93