#17 object instance attributes

open
nobody
None
5
2010-02-05
2010-02-05
No

Following script draws red and green balls in 2.2.5, but two white balls in 2.2.6
-------------------------------------------------------
Display "scene.png" "file" "rgba"
Format 800 600 1
Clipping 10.0 2000.0
Projection "perspective" "fov" [45]
Translate 0.0 0.0 1000.0
Scale 1.0 1.0 -1.0

WorldBegin

LightSource "ambientlight" 1 "intensity" [1.0]

ObjectBegin 1
Sphere 1 -1 1 360
ObjectEnd

AttributeBegin
Color [1.0 0.0 0.0]
Translate -300.0 0.0 -1000.0
Scale 100.0 100.0 100.0
ObjectInstance 1
AttributeEnd

AttributeBegin
Color [0.0 1.0 0.0]
Translate 300.0 0.0 -1000.0
Scale 100.0 100.0 100.0
ObjectInstance 1
AttributeEnd

WorldEnd

Discussion

  • Eibriel
    Eibriel
    2010-03-28

    Thank you,
    patch added to /branches/eibriel on SVN

    eventually will be added to trunk

    Regards,
    Eibriel