Page 1 of 1

Sun

Posted: Sat Aug 05, 2023 9:53 am
by coco2
Unfortunately I can't search for sun in the forum because it is a 3 letter word, so I will make a post.

Does anyone know how to get the sun working with the Sun() function? I tried and whatever values I put in nothing shows. Is it supposed to make an object appear in the sky that looks like a sun?

Re: Sun

Posted: Sat Aug 05, 2023 10:37 am
by Demivec
You can search for 3 letter words by adding an asterisk, i.e. sun*. I did a search though and didn't find anything.

To make an educated guess, i think it just specifies the color and position of a sun-like light source. I'm not sure if that means it is a directional light source that emits parallel light rays as if from a distant sun or if it is a point light source. I would guess either type may be selected. It you wanted a light source to have a particular appearance you would probably create a sphere or a billboard with the desired appearance of your sun and link it somehow to a node or child node with the position of the sun. This is purely a guess as i have not used to OGRE engine at all.

The Sun() command is found in the Engine3D library.

Re: Sun

Posted: Sun Aug 06, 2023 6:51 pm
by DK_PETER
The sun command affect CreateWater() nothing else.

As Demivec wrote, you have to do it the other way.

Take a look at "StaticGeometry.pb" in the PB's examples folder for reference.