Volumetric Clouds code

Post those lines of code you feel like sharing or find what you require for your project here; or simply use them as tutorials.
Post Reply
Saturn7_dev
Posts: 4
Joined: Sun Sep 24, 2023 5:48 am

Volumetric Clouds code

Post by Saturn7_dev »

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
CuteAlien
Admin
Posts: 9648
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Volumetric Clouds code

Post by CuteAlien »

For CopperCube questions you should probably use their forum: https://ambiera.com/forum.php
I'm not sure if we have anyone here working with it even Irrlicht and CC share a lot of heritage.

edit: Hehe, I see you posted there already as well. Ah well, let's hope someone can help :-)
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Saturn7_dev
Posts: 4
Joined: Sun Sep 24, 2023 5:48 am

Re: Volumetric Clouds code

Post by Saturn7_dev »

To be honest no one of the CopperCube forum knows anything about the engine at all expect one who either doesn't know or refuses to help.
That forum is for children mostly who have trouble adding a screen meter...
Post Reply