SDL Layer Animation

If you feel like you're up to the challenge of building your own Ages in Blender or 3ds Max, this is the place for you!

SDL Layer Animation

Postby GPNMilano » Sat Nov 22, 2008 12:01 am

Finally, a few hours after the RAD was closed, I was able to figure out how to make an SDL Layer Animation. (AgeGlobalAnims are covered in the wiki, but an SDL Layer Animation is not. I don't know if there's support in it with pyprp).

Basically what an SDL Layer animation is, is its a layer animation (similar to all others) that is controlled by a variable in the sdl for the time of day. Similar to AgeGlobalAnim, except that this particular one covers textures. It's found in the sky in gira, which is where I got my idea for. Basically what it is is you take a sky texture with alpha for the day time, then a blend of light blue to dark blue (or whatever color you want the sky to be) this blend will be your alpha blend. Then you take a night time star texture. What an SDL Layer Animation does is use your alpha blend to measure the color of the sky as it goes from day to night, the alpha being used to blend the stars, into the day sky.

There is support for blend animations in Blender, so I'm guessing this is the best place to try and make an SDL Layer animation (But when I attempted to do so it exported it as just a layer animation. no big surprise there)

But, with some hacking with libPlasma I was able to get this:

Show Spoiler


Eder Licinius at night time, or twilight anyway. I need to retexture the skydome so that the clouds are closer to the ground, during the night time, so you can see more of the stars.
You can't stop the truth. IC Blog
User avatar
GPNMilano
 
Posts: 1155
Joined: Mon Apr 21, 2008 5:50 am

Re: SDL Layer Animation

Postby boblishman » Sun Nov 23, 2008 8:26 am

stars? .... where ? ... I don't see any ... :?
when it comes to Age creation ... "DOH" seems to be my middle name...
User avatar
boblishman
 
Posts: 882
Joined: Fri Oct 05, 2007 4:47 pm
Location: Spain

Re: SDL Layer Animation

Postby GPNMilano » Sun Nov 23, 2008 2:21 pm

boblishman wrote:stars? .... where ? ... I don't see any ... :?


Yeah, they hadn't come out yet. The Sky Texture that I was using had no alpha, so it just changed the sky from light blue to a nice dark blue night time. But the stars didn't come out. THen I used a sky with alpha, and the stars came out but the sky texture was too stretched. Needs a lot of work still. Specifically I need to figure out how to animate it with Blender to my liking. Rather than using Cyan's animations for it. I'm not sure yet if this class is covered in PyPRP or not though.
You can't stop the truth. IC Blog
User avatar
GPNMilano
 
Posts: 1155
Joined: Mon Apr 21, 2008 5:50 am


Return to Building

Who is online

Users browsing this forum: No registered users and 4 guests

cron