[WF-General] ocean entity prototype 2

Erik Hjortsberg erik.hjortsberg at gmail.com
Mon May 11 07:48:07 PDT 2009


Hi, I've commited an update to ember which will create a simple box with 
the water material for the ocean. It will look strange, since the water 
texture will be stretched for the whole of the water entity size, but at 
least it will be something.

/Erik

Amey Parulekar wrote:
> I removed the bounding box from the entity definition as suggested,
> and here's the revised code
>
> In "data/basic.xml"
>
>   <map>
>     <map name="attributes">
>       <map name="solid">
>         <int name="default">0</int>
>         <string name="visibility">public</string>
>       </map>
>     </map>
>     <string name="id">ocean</string>
>     <string name="objtype">class</string>
>     <list name="parents">
>       <string>thing</string>
>     </list>
>   </map>
>
> In "_setup_landscape" inside "rulesets/mason/define_world.py"
>
> m.make('ocean',pos=(-500,-321,-20),bbox=[820,642,20])
>
> Please advise about further changes
>
> Amey
>   


More information about the General mailing list