You can find examples of 2D sprites in data/flarge/world. But note
that with 2D sprites
the geometry is NOT specified in the factory but in the mesh object.
You need to define
a factory but it is fully empty.

Greetings,

On Wed, Aug 13, 2008 at 8:32 PM, Amir Taaki <[EMAIL PROTECTED]> wrote:
> Looking through documentation I can't see how describing geometry in factory
> files is done. Here's what I have,
>
>   <library>
>     <textures>
>       <texture name="laser_blue">
>         <file>textures/props_pickups_apricot</file>
>       </texture>
>     </textures>
>     <materials>
>       <material name="laser_blue"><texture>laser_blue</texture></material>
>     </materials>
>     <meshfact name="bluelaser">
>       <plugin>crystalspace.mesh.loader.factory.sprite.2d</plugin>
>       <params>
>         <material>laser_blue</material>
>         <v x="-1" y="0.5" />
>         <v x="1" y="0.5" />
>         <v x="1" y="-0.5" />
>         <v x="-1" y="-0.5" />
>         <uv u="0" v="0" />
>         <uv u="1" v="0" />
>         <uv u="1" v="1" />
>         <uv u="0" v="1" />
>         <lighting>no</lighting>
>         <color red="1" green="1" blue="1" />
>         <color red="1" green="1" blue="1" />
>         <color red="1" green="1" blue="1" />
>         <color red="1" green="1" blue="1" />
>       </params>
>       <ztest />
>       <priority>transp</priority>
>       <nohitbeam/>
>     </meshfact>
>   </library>
>
> It errors with Unexpected token 'v'!
>
> What's the correct way to make this camera facing billboard? Thanks
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Crystal-main mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/crystal-main
> Unsubscribe:
> mailto:[EMAIL PROTECTED]
>
>



-- 
Project Manager of Crystal Space (http://www.crystalspace3d.org)
and CEL (http://cel.crystalspace3d.org)
Support Crystal Space. Donate at
https://sourceforge.net/donate/index.php?group_id=649
Visit my town at http://waldir.myminicity.com/

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Crystal-main mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/crystal-main
Unsubscribe: mailto:[EMAIL PROTECTED]

Reply via email to