ThreadBoard ArchivesSite FeaturesActiveworlds SupportHistoric Archives |
Terrain in 4.1 (Sdk)
Terrain in 4.1 // Sdkdr. squailboontJun 14, 2006, 4:47am
As I have been encountering through working on Demeter's conversion to
4.1, there have been a number of 'subtle' changes in the terrain system since its change from the "short" type to the normal signed "int" type. Changes I have 'discovered' thus far: * Terrain texture rotation types AW_TERRAIN_ROTATE_NONE 0x0000 0000000000000000 AW_TERRAIN_ROTATE_LEFT 0x4000 0100000000000000 AW_TERRAIN_ROTATE_OPPOSITE 0x8000 1000000000000000 AW_TERRAIN_ROTATE_RIGHT 0xC000 1100000000000000 These values are Logical OR'd with the texture value. If the overall value of the texture is exactly 0xFFFE (65534), a hole is placed in the terrain. * Attribute 'AW_TERRAIN_VERSION_NEEDED' I have yet to have this one explained to me, but I was told some time ago that this attribute must be set to an integer value of '2' (via aw_int_set) This hopefully will save some frustration for anyone else trying to figure out what they've done to terrain now. cotarrJun 14, 2006, 11:00pm
Yes, helpful, thank you. -cotarr
On 14 Jun 2006 02:47:09 -0400, "Dr. Squailboont" [View Quote] >As I have been encountering through working on Demeter's conversion to >4.1, there have been a number of 'subtle' changes in the terrain system >since its change from the "short" type to the normal signed "int" type. > >Changes I have 'discovered' thus far: > >* Terrain texture rotation types > > AW_TERRAIN_ROTATE_NONE 0x0000 0000000000000000 > AW_TERRAIN_ROTATE_LEFT 0x4000 0100000000000000 > AW_TERRAIN_ROTATE_OPPOSITE 0x8000 1000000000000000 > AW_TERRAIN_ROTATE_RIGHT 0xC000 1100000000000000 > > These values are Logical OR'd with the texture value. If the overall > value of the texture is exactly 0xFFFE (65534), a hole is placed in > the terrain. > >* Attribute 'AW_TERRAIN_VERSION_NEEDED' > > I have yet to have this one explained to me, but I was told some > time ago that this attribute must be set to an integer value of > '2' (via aw_int_set) > >This hopefully will save some frustration for anyone else trying to >figure out what they've done to terrain now. |