The new tiles are in our repository. They just need to be renamed if you want to use Flipflop's method. I could do that now if you want.paul424 {l Wrote}:Could someone explain , how I can extract from that Skorpio's New Tile's Set ?
// Now we adress the concrete Tiles:
for(Neighborcase ncase : neighborcases)
{
ret = ret ^ ncase.getValue();
}
// System.out.println("ret als byte " + Integer.toBinaryString(ret));
String stringret = Integer.toBinaryString(ret);
return parseTilesets(stringret, alternatives);
CASE1(new Vector2Int(-1, -1), 1),
CASE2(new Vector2Int(0, -1), 2),
CASE3(new Vector2Int(1, -1), 4 ),
CASE4(new Vector2Int(1, 0), 8 ),
CASE5(new Vector2Int(1, 1), 16),
CASE6(new Vector2Int(0, 1), 32),
CASE7(new Vector2Int(-1, 1), 64),
CASE8(new Vector2Int(-1, 0), 128),
paul424 {l Wrote}:[...]
When several tiles are possible ( i.e. they postfixes are equal modulo rot ) , can you pick any ? Or as with dirt they won't create a continuous "SEAM " between the two ?
paul424 {l Wrote}:AFter further examination I noticed that you don't mind the diagonal Neightbour Tile if it does not have common neightbours with our tile -- vertical or horizontal .... That's why there are none infix 01 in tile name when looking it modulo 2.
material Lava
{
receive_shadows on
technique
{
pass
{
ambient 0.0 0.0 0.0 1.000000
diffuse 0.8 0.8 0.8 1.000000
specular 0.0 0.0 0.0 1.000000 0.250000
emissive 0.99 0.99 0.99 1.000000
texture_unit
{
texture Lava.png
wave_xform scroll_x sine 0.1 0.2 0.0 0.1
wave_xform scroll_y sine 0.01 0.22 0.0 0.18
scroll_anim 0.1 0.2
scale_anim 0.7 0.9
tex_address_mode wrap
filtering trilinear
}
}
}
}
import base_material from "general.material"
material Lava : base_material
{
set_texture_alias diffuseMap Lava.png
set_texture_alias specMap Lava_spec.png
set_texture_alias normalMap Lava_nor.png
}
Go ahead and do it.paul424 {l Wrote}:Huh someone should create two branches at SVN one for old and one for new Tile set ...
>>The first two were numbered incorrectly, though. <<
Mesh: Loading Dirt_10111000.mesh.
An internal Ogre3D error ocurred: OGRE EXCEPTION(2:InvalidParametersException): Header chunk didn't match either endian: Corrupted stream? in Serializer::determineEndianness at /home/abuild/rpmbuild/BUILD/ogre_src_v1-8-1/OgreMain/src/OgreSerializer.cpp (line 89)
Internal Ogre3D exception: OGRE EXCEPTION(2:InvalidParametersException): Header chunk didn't match either endian: Corrupted stream? in Serializer::determineEndianness at /home/abuild/rpmbuild/BUILD/ogre_src_v1-8-1/OgreMain/src/OgreSerializer.cpp (line 89)
*** ERROR: Internal Ogre3D exception: OGRE EXCEPTION(2:InvalidParametersException): Header chunk didn't match either endian: Corrupted stream? in Serializer::determineEndianness at /home/abuild/rpmbuild/BUILD/ogre_src_v1-8-1/OgreMain/src/Og
Users browsing this forum: No registered users and 1 guest