Data Realms Fan Forums http://45.55.195.193/ |
|
Custom mat fun. http://45.55.195.193/viewtopic.php?f=8&t=11275 |
Page 1 of 1 |
Author: | CantTouchTheGround [ Thu May 22, 2008 1:02 am ] |
Post subject: | Custom mat fun. |
Well, I decided to make another fast scenario, a remake of void, (loved that map :3) and I remembered about halfway through that I would need a strong-ass and white material for the bottom. So I went and tried to make a custom material. Code: AddMaterial = Material Index = 39 InstanceName = Voidstuff Bounce = 0.2 Friction = 0.8 StructuralIntegrity = 20000000000 DensityKGPerVolumeL = 1.0 GibImpulseLimitPerVolumeL = 15 GibWoundLimitPerVolumeL = 0.1 Priority = 1000000 Color = Color R = 100 G = 128 B = 212 UseOwnColor = 0 TextureFile = ContentFile Path = Voidd.rte/Images/Texture.bmp There it is there^. Anyways, I tried using the colour: Code: R = 100 G = 128 B = 212 And when I went in game I had DEFAULT plastered all over where I had that material. Anyone think they can help me with this? |
Author: | Lord Tim [ Thu May 22, 2008 1:10 am ] |
Post subject: | Re: Custom mat fun. |
Okay okay. Custom materials. Messed the eff up. Here is how you put a custom material into a scene: 1. Create the code for the material like you already have. 2. The color of the material will be what it appears ingame. This has to be an in-palette color. 3. The Index of the material has to be the same as the index in the palette of the color that you want to use to color on the scene image. So, this means that you have to use a non-palette'd image for the scene's .bmp. You have to use a non-used up Index, and whichever index you choose, will use the color from the regular palette as the material's placement color. I.E. if you choose Index 39 in the material code, you'd go to index 39 in the regular FG palette, and use that color in the scene .bmp to color it. Then ingame, it'd show up as that material's Color = Color part. Unless you use a texture, then it'll be the texture. I hope that made sense. It's really confusing and took me a while to even figure out how to do it. |
Author: | CantTouchTheGround [ Thu May 22, 2008 1:20 am ] |
Post subject: | Re: Custom mat fun. |
Hmm, I think I get it. So, make the code. Make the colour what i want to see it as in game, but still on the CC palette. The colour has to be the same index number as the colour in the palette (first colour = index 1) and then use that colour as the mat? |
Author: | Falcon X [ Thu May 22, 2008 1:24 am ] |
Post subject: | Re: Custom mat fun. |
Uhhh...you mean test? |
Author: | CantTouchTheGround [ Thu May 22, 2008 1:29 am ] |
Post subject: | Re: Custom mat fun. |
Test material = Red. I need a white stronger substance. |
Author: | Tea [ Thu May 22, 2008 4:57 pm ] |
Post subject: | Re: Custom mat fun. |
CantTouchTheGround wrote: Test material = Red. I need a white stronger substance. There's nothing stronger than Test. |
Author: | Sixteen [ Fri May 23, 2008 1:51 am ] |
Post subject: | Re: Custom mat fun. |
Unless you make it yourself. And that's what he's trying to do. |
Author: | zalo [ Sun May 25, 2008 1:50 am ] |
Post subject: | Re: Custom mat fun. |
I believe that making a Giant MOSR and having that instantly turn into terrain would be 10x easier. |
Author: | Lord Tim [ Sun May 25, 2008 1:52 am ] |
Post subject: | Re: Custom mat fun. |
zalo wrote: I believe that making a Giant MOSR and having that instantly turn into terrain would be 10x easier. I tried doing it that way once. It wasn't pretty. CC doesn't like MOSRotatings that have sizes > 500px per side |
Author: | Azukki [ Mon May 26, 2008 8:35 pm ] |
Post subject: | Re: Custom mat fun. |
Okay, so what about a terrain object? Then you could just use test. Red MAT, white FG & BG Unless terrain objects also can't be that big. |
Author: | Grif [ Mon May 26, 2008 10:58 pm ] |
Post subject: | Re: Custom mat fun. |
If all else failed you could use more than one terrain object. |
Author: | bbbzzz234 [ Wed May 28, 2008 12:08 am ] |
Post subject: | Re: Custom mat fun. |
CantTouchTheGround wrote: white material I think you got confused, the only purpose of the color of the material is for CC to recognise what material it is from the mat, so you can have more than one material per object. The "white material" you are thinking of is actually the FG*. You are right about the material having to be hard, but just use test, and give it a white FG*. * Foreground. EDIT: forget what I said, I'm gonna go hide in a corner now. |
Author: | Grif [ Wed May 28, 2008 12:12 am ] |
Post subject: | Re: Custom mat fun. |
bbbzzz you're dumb. Materials have colors. They're not all based on sprites. Only terrainobjects and textured contour layers have colors assigned to them. Any other material or a material with UseOwnColor = 1 will be whatever color its COLOR is set to. |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |