Reply to this topicStart new topic
Terrain colors
 
corthew
post Dec 15 2011, 10:48 AM
Post #1


Master Director
Group Icon

Group: Pioneers
Posts: 2,289
Joined: 6-November 10
Member No.: 11,729



You probably saw this question coming. smile.gif

Is there a way to add more colors to a terrain?

I can work around it for the current scene but a fifth color would make it a bit easier if its possible to do that right now and I'm just missing it.

Also, are there any plans to add undo to the terrain editor? Possibly as a separate function from the undo function available for the rest of MS? At the very least, if its not practical at this time, could you lock the undo function while the terrain editor is active?

It would save many of us a few unnoticed goofs.smile.gif


--------------------
Sango: "If it was really a miracle everyone would have been saved."

Vargas: "But if everyone was saved how would anyone know it was a miracle."

Sango and Vargas arguing over the implications of one person surviving an unexpectedly active tidal season.
Go to the top of the page
 
+Quote Post
lucindamc123
post Dec 15 2011, 9:31 PM
Post #2


Master Director
Group Icon

Group: Pioneers
Posts: 8,439
Joined: 22-April 07
Member No.: 341



I agree with you Corthew. I would love to have available all the textures that are for painting the floor, walls and ceiling for the terrain too.


--------------------
Go to the top of the page
 
+Quote Post
Ben_S
post Dec 16 2011, 10:16 AM
Post #3


Master Director
Group Icon

Group: Administrators
Posts: 4,235
Joined: 18-January 07
Member No.: 116



Materials that are in Data/Materials/Terrain appear as options for the terrain editor.


--------------------
Ben Sanders
Moviestorm Ltd
Go to the top of the page
 
+Quote Post
corthew
post Dec 16 2011, 11:52 AM
Post #4


Master Director
Group Icon

Group: Pioneers
Posts: 2,289
Joined: 6-November 10
Member No.: 11,729



QUOTE (Ben_S @ Dec 16 2011, 06:16 AM) *
Materials that are in Data/Materials/Terrain appear as options for the terrain editor.


I was more referring to the number of colors active for a single map.

Is that possible at the moment or might it be implemented in the near future?


--------------------
Sango: "If it was really a miracle everyone would have been saved."

Vargas: "But if everyone was saved how would anyone know it was a miracle."

Sango and Vargas arguing over the implications of one person surviving an unexpectedly active tidal season.
Go to the top of the page
 
+Quote Post
Ben_S
post Dec 16 2011, 12:10 PM
Post #5


Master Director
Group Icon

Group: Administrators
Posts: 4,235
Joined: 18-January 07
Member No.: 116



QUOTE (corthew @ Dec 16 2011, 11:52 AM) *
I was more referring to the number of colors active for a single map.

Is that possible at the moment or might it be implemented in the near future?


No, just four channels for textures. One channel is stored in each of the red, green, blue and alpha channels of the image that is used to store them (eg Terrain for Set for scene 1.png). Of interesting note, though - if you pick the terrain textures such that they are redish, greenish, blueish and white, and place a normal image file instead of the terrain png in the movie you are loading, you can get some interesting effects.

Attached File(s)
Attached File  super_terrain.png ( 928.51K ) Number of downloads: 21
 


--------------------
Ben Sanders
Moviestorm Ltd
Go to the top of the page
 
+Quote Post
corthew
post Dec 16 2011, 12:22 PM
Post #6


Master Director
Group Icon

Group: Pioneers
Posts: 2,289
Joined: 6-November 10
Member No.: 11,729



QUOTE (Ben_S @ Dec 16 2011, 08:10 AM) *
Of interesting note, though - if you pick the terrain textures such that they are redish, greenish, blueish and white, and place a normal image file instead of the terrain png in the movie you are loading, you can get some interesting effects.


Now THAT is cool! smile.gif

So I could use an image as sort of a terrain overlay?

Would I do that in the folder for the movie?

If so, is this the file I would be replacing: Terrain for Set for 01 First scene.png?

And did you pick those specific colors for the Superman image or do the colors matter that much?

I will play around with it this evening.smile.gif


--------------------
Sango: "If it was really a miracle everyone would have been saved."

Vargas: "But if everyone was saved how would anyone know it was a miracle."

Sango and Vargas arguing over the implications of one person surviving an unexpectedly active tidal season.
Go to the top of the page
 
+Quote Post
Ben_S
post Dec 16 2011, 12:45 PM
Post #7


Master Director
Group Icon

Group: Administrators
Posts: 4,235
Joined: 18-January 07
Member No.: 116



I got the colour channels right; the terrain colours need to be Black, Red, Green, Blue to match the colours in a png.
I made an addon with some pure colours that can be used to achieve this.
You might have to mirror and rotate your starting image that you are replacing the terrain with. Think it also needs to be square and 512x512.
Attached File(s)
Attached File  more_super_terrain.png ( 462.99K ) Number of downloads: 14
Attached File  PureColourTerrain.addon ( 3.57K ) Number of downloads: 11
 


--------------------
Ben Sanders
Moviestorm Ltd
Go to the top of the page
 
+Quote Post
Ben_S
post Dec 16 2011, 1:18 PM
Post #8


Master Director
Group Icon

Group: Administrators
Posts: 4,235
Joined: 18-January 07
Member No.: 116



QUOTE (corthew @ Dec 16 2011, 12:22 PM) *
Now THAT is cool! smile.gif

So I could use an image as sort of a terrain overlay?

Yes.
QUOTE
Would I do that in the folder for the movie?
If so, is this the file I would be replacing: Terrain for Set for 01 First scene.png?

Yes, that is the file (if it is for scene 1).
QUOTE
And did you pick those specific colors for the Superman image or do the colors matter that much?

I will play around with it this evening.smile.gif

The colours need to be Black, Red, Green, Blue, to match the Alpha, Red, Green and Blue channels in the png.


--------------------
Ben Sanders
Moviestorm Ltd
Go to the top of the page
 
+Quote Post
corthew
post Dec 16 2011, 11:39 PM
Post #9


Master Director
Group Icon

Group: Pioneers
Posts: 2,289
Joined: 6-November 10
Member No.: 11,729



QUOTE (Ben_S @ Dec 16 2011, 09:18 AM) *
Yes.

Yes, that is the file (if it is for scene 1).

The colours need to be Black, Red, Green, Blue, to match the Alpha, Red, Green and Blue channels in the png.


Ahhh...Gotcha. I'm not painting anything with those colors.smile.gif

Thanks for the color addon. Works perfectly.smile.gif


--------------------
Sango: "If it was really a miracle everyone would have been saved."

Vargas: "But if everyone was saved how would anyone know it was a miracle."

Sango and Vargas arguing over the implications of one person surviving an unexpectedly active tidal season.
Go to the top of the page
 
+Quote Post
writerly
post Dec 17 2011, 3:04 PM
Post #10


Master Director
Group Icon

Group: Pioneers
Posts: 695
Joined: 13-December 08
Member No.: 3,540



QUOTE (Ben_S @ Dec 16 2011, 12:45 PM) *
I got the colour channels right; the terrain colours need to be Black, Red, Green, Blue to match the colours in a png.
I made an addon with some pure colours that can be used to achieve this.
You might have to mirror and rotate your starting image that you are replacing the terrain with. Think it also needs to be square and 512x512.

Love the addon Ben, but some instructions for those of us left graphically gifted would be awesome.
Go to the top of the page
 
+Quote Post
corthew
post Dec 18 2011, 12:17 AM
Post #11


Master Director
Group Icon

Group: Pioneers
Posts: 2,289
Joined: 6-November 10
Member No.: 11,729



QUOTE (writerly @ Dec 17 2011, 11:04 AM) *
Love the addon Ben, but some instructions for those of us left graphically gifted would be awesome.


In the folder of whatever movie you're currently working on there will be a terrain png file. This file stores the image that is the terrain for that particular movie. I am not sure yet how that works for multi-scened movies but I digress.

If you replace that file with an image in png format, like Christopher Reeves for example, the image will show up as the terrain. It may need to be 512x512. You can play around with larger and smaller images to try to improve resolution but I'm pretty sure it needs to be square at least. I'll update this after I've had a chance to test different things.smile.gif


To get the colors to look somewhat right you must place these four colors in the four color slots in this order from left to right:
Black, Red, Green, Blue.

You should see the change immediately.

Note that you want to keep a backup of the image incase you hit that reset button and overwrite it.
BTDT

You can raise, lower, level and smooth the terrain but whatever you do don't color it because that is written to the image file.

Have fun.smile.gif


--------------------
Sango: "If it was really a miracle everyone would have been saved."

Vargas: "But if everyone was saved how would anyone know it was a miracle."

Sango and Vargas arguing over the implications of one person surviving an unexpectedly active tidal season.
Go to the top of the page
 
+Quote Post
writerly
post Dec 18 2011, 4:26 AM
Post #12


Master Director
Group Icon

Group: Pioneers
Posts: 695
Joined: 13-December 08
Member No.: 3,540



QUOTE (corthew @ Dec 18 2011, 12:17 AM) *
In the folder of whatever movie you're currently working on there will be a terrain png file.

I followed the instructions...I think. Got many little squares of my 512X512 image.
Thoughts?
C
Go to the top of the page
 
+Quote Post
corthew
post Dec 18 2011, 10:55 AM
Post #13


Master Director
Group Icon

Group: Pioneers
Posts: 2,289
Joined: 6-November 10
Member No.: 11,729



QUOTE (writerly @ Dec 18 2011, 12:26 AM) *
I followed the instructions...I think. Got many little squares of my 512X512 image.
Thoughts?
C


Hmmm...I've attached an image of the contents - 1st image - of one of my movie folders with the file in question highlighted. The filename won't always be exactly the same but this gives you an idea at least.

I just tested with a 50x50 image and it stretched it. An 818x818 image clipped a small bit but mostly it was just shrunk down to size.

I'm looking through my instructions to make sure I wasn't too tired to be coherent.smile.gif

Nope...They look fine.

Ok...Step by step...Following the attached images:

2nd image - Created new blank movie.
3rd image - Saved it with the name, Terrain test.

exited Moviestorm

4th image - Showing the folder with the file that needs replaced, Terrain for Set for scene 1.png.
5th image - created a 512x512 pixel image and saved as, Terrain for Set for scene 1.png.
6th image - In Moviestorm it looks washed.
7th image - changed the four colors as shown.

I learned from doing this for you that the image is reversed in MS. I'll have to take that into account when I'm adjusting an image.

If you still get tiling there may be a problem with your install. Maybe an addon or...could the flat terrain hack cause tiling?

Worth looking into. Anyway, Ben can help if you're still getting tiling. smile.gif


--------------------
Sango: "If it was really a miracle everyone would have been saved."

Vargas: "But if everyone was saved how would anyone know it was a miracle."

Sango and Vargas arguing over the implications of one person surviving an unexpectedly active tidal season.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: