Mat Classes needs to be rewritten

Announcements and discussion regarding any projects related to Cyan Worlds' Plasma Engine including (but not limited to) CyanWorlds.com Engine, Drizzle, OfflineKI, PyPRP, and libHSPlasma.

Re: Mat Classes needs to be rewritten

Postby Aloys » Sun Nov 23, 2008 9:13 am

I must be missing something because all I see is a white featureless ground plane. :(
User avatar
Aloys
 
Posts: 1968
Joined: Sun Oct 21, 2007 7:57 pm
Location: France (GMT +1)

Re: Mat Classes needs to be rewritten

Postby Trylon » Sun Nov 23, 2008 9:54 am

Like me, you probably deleted or renamed Intro0.bik and Intro1.bik to save startup time.

It displays Intro0.bik on the plane - if you have the file that is.
One day I ran through the cleft for the fiftieth time, and found that uru held no peace for me anymore.
User avatar
Trylon
 
Posts: 1446
Joined: Fri Sep 28, 2007 11:08 pm
Location: Gone from Uru

Re: Mat Classes needs to be rewritten

Postby Aloys » Sun Nov 23, 2008 12:14 pm

Spot on that was indeed the problem. :) (those pesky splash videos..)
Haha that thing is great! :D Nice work Lon! I concur with GPLMilano's comment about the sensation of falling.. Feels a bit like walking on a movie screen.
Animated linking panels ahead whoohoo! :) (and it only tooks us 3 years to get them ;) )
That 's really great news. I've been dying to see that in Uru since the very first beta..
User avatar
Aloys
 
Posts: 1968
Joined: Sun Oct 21, 2007 7:57 pm
Location: France (GMT +1)

Re: Mat Classes needs to be rewritten

Postby Paradox » Sun Nov 23, 2008 12:16 pm

*sigh* ... and I had just finished by own style of animated panels for Pahts that didn't use a GUI popup, but rather zoomed in closer to the book with an animated layer as a scrolling panel :lol:
Paradox
 
Posts: 1290
Joined: Fri Sep 28, 2007 6:48 pm
Location: Canada

Re: Mat Classes needs to be rewritten

Postby andylegate » Sun Nov 23, 2008 12:40 pm

I just made a quick .bik movie of Tsogal, I used fly mode, went up in the air and just rotated 360 degrees once. Saved the file, an then used Bink and Smacker to convert the movie from a wmv to a bik, and even have the size right: about 400 x 160.

NOW all I need to figure out is how to embed a 512 x 256 background behind the movie.....
"I'm still trying to find the plKey for Crud!"
Image
Blender Age Creation Tutorials
3DS Max Age Creation Tutorials
User avatar
andylegate
 
Posts: 2348
Joined: Mon Oct 01, 2007 7:47 am

Re: Mat Classes needs to be rewritten

Postby Nadnerb » Sun Nov 23, 2008 12:42 pm

errr... any chance of sharing HOW you did that (after all, I thought SHARING was what this forum was about ... (though it seems recently that it seems to be more about showing off than sharing ... )


Alright, so you want to know how it was done. Simple, using a plLayerBink.

look through Andy's tutorial here to see how one converts prc to an po/uof and then how to add it to a file.

http://www.guildofmaintainers.org/Forum ... =77&t=1063

Then, (using pageEditor) you can add the object prc from the plLayerBink in this file: http://www.guildofmaintainers.org/ftp/Upload/lontahv/bink_texture_test.zip to your age, changing the <Movie Name="avi/Intro0.bik" /> tag to point to any bik file you want..

Then change a layer reference in a material to point to the BinkLayer instead of a normal layer. ie:

Code: Select all
<Layers>
      <plKey Name="Roots_bink" Type="plLayerBink" Location="1788;0" LocFlag="0x0000" />
</Layers>
Image
Live KI: 34914 MOULa KI: 23247 Gehn KI: 11588 Available Ages: TunnelDemo3, BoxAge, Odema
Nadnerb
 
Posts: 1057
Joined: Fri Sep 28, 2007 8:01 pm
Location: US (Eastern Time)

Re: Mat Classes needs to be rewritten

Postby Paradox » Sun Nov 23, 2008 12:52 pm

andylegate wrote:I just made a quick .bik movie of Tsogal, I used fly mode, went up in the air and just rotated 360 degrees once. Saved the file, an then used Bink and Smacker to convert the movie from a wmv to a bik, and even have the size right: about 400 x 160.

NOW all I need to figure out is how to embed a 512 x 256 background behind the movie.....


Using Bink, extract the bitmaps. Do some crazy batch image scripting (I suggest ImageMagick?) to resize and add an alpha border around each frame.

Using Bink, recompress the frames into a .bik file.
Paradox
 
Posts: 1290
Joined: Fri Sep 28, 2007 6:48 pm
Location: Canada

Re: Mat Classes needs to be rewritten

Postby Chacal » Sun Nov 23, 2008 3:35 pm

I'm confused. I think we need to split this thread up.
Chacal


"The weak can never forgive. Forgiveness is an attribute of the strong."
-- Mahatma Gandhi
User avatar
Chacal
 
Posts: 2508
Joined: Tue Nov 06, 2007 2:45 pm
Location: Quebec, Canada

Re: Mat Classes needs to be rewritten

Postby andylegate » Sun Nov 23, 2008 4:06 pm

Here, I'll try to get it back on track, since I'm the one that derailed it (oops, sorry.).

I've spent part of the afternoon thinking about this (LayeredAnimations) for a day/night cycle, etc.

Looking at both Gira and Laki (Myst V), obviously lights need to come on and off, they show that if you look at them with the PageEditor.

But there was one thing that started bugging me. I'm a firm believer in KISS, Keep It Simple Stupid, and all those materials being phased out and others phased had me wondering:

Why not just have the sky dome fade out and another skydome fade in?

Laki has 2 sky domes, a SphereDay and a SphereNight, you can find them both under SceneObjects.

I know we can make object appear and disappear using SDL states. But is there away to have the objects fade out and fade in? I mean the objects themselves, not the textures.

I'm thinking no, that this isn't possible with plasma, as I can't think of an example of this in either Uru or Myst V...but it did seem to me to be an easier way of going about this, instead of having to mess with a bunch of textures. The object itself is already textured, you'd just being making a visability animation with the object, having one fade into existance, while the the other fades out.
"I'm still trying to find the plKey for Crud!"
Image
Blender Age Creation Tutorials
3DS Max Age Creation Tutorials
User avatar
andylegate
 
Posts: 2348
Joined: Mon Oct 01, 2007 7:47 am

Re: Mat Classes needs to be rewritten

Postby GPNMilano » Sun Nov 23, 2008 4:48 pm

How the SDL animation works is like this. Its pretty simple actually. There's only a single variable in it that references the SDL file. This is what tells it to work over a time specified in the Age File.

Then you have three textures. A sky texture with alpha, whose offsets are changed so that the clouds roll around the sky. a Gradient Texture of white to blue. This gets the same treatment as the Sky texture, except its ambient color is changed as well, so that it fades in and out. This is the key to making the sky change colors, and must be done with an animation to the ambient color of the material. The way layer animations are currently set up is through the preshade and runtime colors. Which is what causes you to get that immediate blinking in and out of a texture. Your final texture is the night texture that gets a similar ambient treatment and offset like the gradient texture.

Its actually really a simple animation. There's no reason why it shouldn't be in PyPRP already, as its just a layer animation. But PYPRP isn't set up to change the ambient or specular color of a material with an animation.
You can't stop the truth. IC Blog
User avatar
GPNMilano
 
Posts: 1155
Joined: Mon Apr 21, 2008 5:50 am

PreviousNext

Return to Plasma Development

Who is online

Users browsing this forum: No registered users and 27 guests