On 10/14/07, Amin Mirzaie <[EMAIL PROTECTED]> wrote:
> Hi everybody
> I'd want to have a dynamic crosshair in my game. I want the crosshair to
> move in the Z axis, i.e. it becomes closer when approaching a wall, and goes
> farther when going back. Using CEL, I made a billboard and assigned a sphere
> to it. There are 2 problems here:
> 1. The billboard's area is rectangular, while the crosshair's shape is
> circular. I think I should have a box on the billboard instead of the sphere
> and assign a texture with transparency to get the desired result. But the
> crosshair is really a 2D object. Can I use a 2D object (mesh) instead of a
> 3D sphere on a billboard? (or not using billboards at all)

I don't understand this question. Using a transparent texture seems
the best way to get a circular shape on a box billboard. But I don't
understand what you mean about 3D and 2D stuff there?

> 2. How could I move the billboard in the Z axis? It only has x and y
> properties to move on the 2D screen. Is PcBillboard the right thing to use
> for this reason?

Moving a billboard in the Z axis is similar to changing the size of it
(i.e. perspective projection).

So yes, it is possible to do this using billboards but perhaps in your
case a simple mesh would be better as it is easier to move that in 3D.

Greetings,

>
> And one general question: Is this the right place to post such questions?
>
> Thanks
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> 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

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Crystal-main mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/crystal-main
Unsubscribe: mailto:[EMAIL PROTECTED]

Reply via email to