improve picture graphics of animals

directional-lights
Maikel de Vries 2016-10-01 13:26:41 +02:00
parent 1eb17613bc
commit 2073fb0f0a
12 changed files with 35 additions and 20 deletions

View File

@ -507,9 +507,9 @@ public func Birth(object parent)
/*-- Properties --*/
private func Definition(proplist def)
public func Definition(proplist def)
{
def.PictureTransformation = Trans_Mul(Trans_Rotate(-65, 0, 1, 0), Trans_Rotate(-35, 0, 0, 1));
def.PictureTransformation = Trans_Mul(Trans_Translate(3000, 0, 0), Trans_Rotate(-65, 0, 1, 0), Trans_Rotate(-35, 0, 0, 1));
return _inherited(def, ...);
}

View File

@ -218,7 +218,8 @@ local NoBurnDecay = 1;
local BorderBound = C4D_Border_Sides | C4D_Border_Top | C4D_Border_Bottom;
local ContactCalls = true;
func Definition(def) {
SetProperty("PictureTransformation", Trans_Mul(Trans_Rotate(20,1,0,0),Trans_Rotate(70,0,1,0)), def);
public func Definition(proplist def)
{
def.PictureTransformation = Trans_Mul(Trans_Translate(400, 600, 0), Trans_Scale(1400), Trans_Rotate(20, 1, 0, 0), Trans_Rotate(40, 0, 1, 0));
}

View File

@ -284,6 +284,12 @@ local CorrosionResist = 1;
local BorderBound = C4D_Border_Sides;
local ContactCalls = true;
public func Definition(proplist def)
{
def.PictureTransformation = Trans_Mul(Trans_Translate(1000, -700, 0), Trans_Scale(1400), Trans_Rotate(-10, 1, 0, 0), Trans_Rotate(50, 0, 1, 0));
return _inherited(def, ...);
}
local ActMap = {
Walk = {
Prototype = Action,

View File

@ -8,4 +8,5 @@ Offset=-2,-2
Vertices=1
VertexFriction=100
Value=1
Mass=1
Mass=1
Picture=0,64,64,64

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 5.8 KiB

View File

@ -513,7 +513,7 @@ local ContactCalls = true;
func IsPrey() { return true; }
func Definition(def) {
SetProperty("PictureTransformation", Trans_Mul(Trans_Rotate(20,1,0,0),Trans_Rotate(70,0,1,0)), def);
public func Definition(proplist def)
{
def.PictureTransformation = Trans_Mul(Trans_Translate(0, 600, 0), Trans_Scale(1200), Trans_Rotate(20, 1, 0, 0), Trans_Rotate(70, 0, 1, 0));
}

View File

@ -924,4 +924,9 @@ local MaxJumpSpeed = 300;
local JumpSpeed = MaxJumpSpeed;
local NoBurnDecay = 1;
local BorderBound = C4D_Border_Sides;
local ContactCalls = true;
local ContactCalls = true;
public func Definition(proplist def)
{
def.PictureTransformation = Trans_Mul(Trans_Translate(2000, 3000, 0), Trans_Scale(1400), Trans_Rotate(20, 1, 0, 0), Trans_Rotate(60, 0, 1, 0));
}

View File

@ -123,7 +123,8 @@ local ContactCalls = true;
func IsPrey() { return false; }
func IsPredator() { return true; }
func Definition(def) {
SetProperty("PictureTransformation", Trans_Mul(Trans_Rotate(20,1,0,0),Trans_Rotate(70,0,1,0)), def);
func Definition(proplist def)
{
def.PictureTransformation = Trans_Mul(Trans_Translate(2000, 0, 0), Trans_Scale(1500), Trans_Rotate(20, 1, 0, 0), Trans_Rotate(70, 0, 1, 0));
}

View File

@ -18,6 +18,7 @@ public func Construction()
{
inherited(...);
SetGraphics(nil, Piranha);
SetGraphics(nil, Piranha, 1, GFXOV_MODE_Picture);
SetMeshMaterial("PiranhaSmall");
}
@ -85,8 +86,3 @@ private func BiteEffect()
local Name = "$Name$";
local Description = "$Description$";
local MaxEnergy = 25000;
public func Definition(def)
{
SetProperty("PictureTransformation", Trans_Mul(Trans_Rotate(20,1,0,0),Trans_Rotate(70,0,1,0)), def);
}

View File

@ -756,6 +756,10 @@ local NoBurnDecay = 1;
local BorderBound = C4D_Border_Sides;
local ContactCalls = true;
public func Definition(proplist def)
{
def.PictureTransformation = Trans_Mul(Trans_Translate(5500, 1000, 0), Trans_Scale(1600), Trans_Rotate(-5, 1, 0, 0), Trans_Rotate(60, 0, 1, 0));
}
local ActMap = {
Walk = {

View File

@ -424,7 +424,7 @@ local BorderBound = C4D_Border_Sides | C4D_Border_Top | C4D_Border_Bottom;
func IsPrey() { return false; }
func IsPredator() { return true; }
public func Definition(def)
public func Definition(proplist def)
{
SetProperty("PictureTransformation", Trans_Mul(Trans_Rotate(20,1,0,0),Trans_Rotate(70,0,1,0)), def);
def.PictureTransformation = Trans_Mul(Trans_Translate(12000, 5000, 0), Trans_Scale(1600), Trans_Rotate(20, 1, 0, 0), Trans_Rotate(65, 0, 1, 0));
}

View File

@ -554,7 +554,8 @@ local BreatheWater = 1;
local BorderBound = C4D_Border_Sides | C4D_Border_Top | C4D_Border_Bottom;
local ContactCalls = true;
public func Definition(def) {
SetProperty("PictureTransformation", Trans_Mul(Trans_Rotate(20,1,0,0),Trans_Rotate(70,0,1,0)), def);
public func Definition(proplist def)
{
def.PictureTransformation = Trans_Mul(Trans_Translate(0, -1600, 0), Trans_Rotate(20, 1, 0, 0), Trans_Rotate(70, 0, 1, 0));
}