Page 1 of 1

Skyboxes + Shadows on Animap

Posted: Sat Nov 05, 2011 10:56 am
by VanilleOD
First: Is it possible to create 2 Skyboxes
for example:
___________
|_________|
|_|_____|_|
|_|_____|_|
|_|_____|_|
___________

I want to make a half transparent Skybox (Clouds) and a Skybox in the back (Heaven/Horizon)

Second:
What I need to add to a Animap shader to enable shadows on it?

I tried it with:

Code: Select all

textures/alinosperch/jumppad1
{
   {
      map $lightmap
   }
   {
      animMap 10 <textures>
      rgbGen wave inverseSawtooth 0 1 0 10
      
   }   
   {
      animMap 10 <textures>
      rgbGen wave sawtooth 0 1 0 10
      blendFunc GL_ONE GL_ONE
   }
}


and with:

Code: Select all

textures/alinosperch/jumppad1
{
   {
      map $lightmap
      animMap 10 <textures>
      rgbGen wave inverseSawtooth 0 1 0 10
      
   }   
   {
      map $lightmap
      animMap 10 <textures>
      rgbGen wave sawtooth 0 1 0 10
      blendFunc GL_ONE GL_ONE
   }
}


but it failed on both :lol:

Re: Skyboxes + Shadows on Animap

Posted: Sat Dec 10, 2011 6:30 pm
by johnnyenglish
Have a look at the sky in kingdom, that has a separate cloud layer.

Re: Skyboxes + Shadows on Animap

Posted: Sun Dec 11, 2011 9:55 am
by v3nd3tta
have you looked at nearbox and farbox? just remembered it by now, dunno if it still works in urt.