Sun

Everything related to 3D programming
coco2
Enthusiast
Enthusiast
Posts: 461
Joined: Mon Nov 25, 2013 5:38 am
Location: Australia

Sun

Post 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?
User avatar
Demivec
Addict
Addict
Posts: 4267
Joined: Mon Jul 25, 2005 3:51 pm
Location: Utah, USA

Re: Sun

Post 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.
User avatar
DK_PETER
Addict
Addict
Posts: 904
Joined: Sat Feb 19, 2011 10:06 am
Location: Denmark
Contact:

Re: Sun

Post 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.
Current configurations:
Ubuntu 20.04/64 bit - Window 10 64 bit
Intel 6800K, GeForce Gtx 1060, 32 gb ram.
Amd Ryzen 9 5950X, GeForce 3070, 128 gb ram.
Post Reply