yrro
05-06-2006 14:19:29
Here's my project:
We're using the terrain for a small game for a class. The ground is supposed to be kind of cartoonish in its coloring, so we're using a hand-drawn texture map as the base image. We do, however, want to have small explosions on the map, which deform the terrain and blacken that spot. We also want it in general to be playable on older video cards.
Its seems to me that what I want to try to use is the InstantBaseTextureEdit texture unit, with our texture as the base texture. However, I'm still fuzzy on the exact order and procedure I need to do to be able to paint on the terrain.
Say, if I want to to just make a 10 pixel by 10 pixel black square on the ground, I would:
Create a brush array that is 10 by 10 (what format do the pixels need to be in? RGBA? Is it a straight array of bytes in RGBARGBARGBA or does it need to be a different format?)
Set the height and width of the brush (is this in bytes or in pixels?)
Set the brush to be my new array.
Set the the "PaintColorCenter" of the brush.
When I do this, I don't see any changes, so it seems I must be doing something wrong?
Here is my config file:
Any help is appreciated (as would be filling in the "how do I?" section of the wiki. There is good information on what options are available, but not in how you combine them to produce useful results).
Thanks.
We're using the terrain for a small game for a class. The ground is supposed to be kind of cartoonish in its coloring, so we're using a hand-drawn texture map as the base image. We do, however, want to have small explosions on the map, which deform the terrain and blacken that spot. We also want it in general to be playable on older video cards.
Its seems to me that what I want to try to use is the InstantBaseTextureEdit texture unit, with our texture as the base texture. However, I'm still fuzzy on the exact order and procedure I need to do to be able to paint on the terrain.
Say, if I want to to just make a 10 pixel by 10 pixel black square on the ground, I would:
Create a brush array that is 10 by 10 (what format do the pixels need to be in? RGBA? Is it a straight array of bytes in RGBARGBARGBA or does it need to be a different format?)
Set the height and width of the brush (is this in bytes or in pixels?)
Set the brush to be my new array.
Set the the "PaintColorCenter" of the brush.
When I do this, I don't see any changes, so it seems I must be doing something wrong?
Here is my config file:
GroupName=PLSM2
Width=1
Height=1
Data2DFormat=HeightField
LandScapeFileName=lemmings
FileSystem=Media/paginglandscape2/terrains/lemmings
NumTextureFormatSupported=19
NumTextureFormatSupported=19
TextureFormatSupported0=Image
TextureFormatSupported1=BaseTexture
TextureFormatSupported2=BaseTexture2
TextureFormatSupported3=InstantBaseTexture
TextureFormatSupported4=InstantBaseTextureEdit
TextureFormatSupported5=Splatting
TextureFormatSupported6=Splatting2
TextureFormatSupported7=Splatting2Edit
TextureFormatSupported8=Splatting4
TextureFormatSupported9=Splatting6
TextureFormatSupported10=Splatting7
TextureFormatSupported11=Splatting7Edit
TextureFormatSupported12=BaseTexture
TextureFormatSupported13=BaseTexture2
TextureFormatSupported14=InstantBaseTexture
TextureFormatSupported15=Splatting3
TextureFormatSupported16=Splatting5
TextureFormatSupported17=SplattingShader
TextureFormatSupported18=InstantBaseTextureShadowed
TextureFormat=InstantBaseTextureEdit
ImageFilename=lemmingsBaseColorMap
ScaleX=500
ScaleY=200
ScaleZ=500
Deformable=yes
SaveDeformation=no
VertexCompression=no
VertexProgramMorph=no
VertexNormals=yes
VertexLit=yes
MaxPixelError=10
NumMatHeightSplat=0
# where to put camera on load.
BaseCameraViewpoint.x=0.0f
BaseCameraViewpoint.y=500.0f
BaseCameraViewpoint.z=0.0f
Baselookat.x=0.0f
Baselookat.y=0.0f
Baselookat.z=0.0f
Any help is appreciated (as would be filling in the "how do I?" section of the wiki. There is good information on what options are available, but not in how you combine them to produce useful results).
Thanks.