On 10/15/07, Jorrit Tyberghein <[EMAIL PROTECTED]> wrote:
>
> 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?


I mean something like a particle. AFAIK, particles are 3D objects that
always face the camera. So I could think of them as 2D objects (because a
particle doesn't have a useful depth, the only important things are it's
width and height). Could I use something like a particle for my crosshair?

> 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.


If I use a mesh, I must rotate it whenever the character rotates (because I
don't want the crosshair's shape to change when rotating) to always face the
camera (the same thing about particles).
I think I should take a look at the particle system and how they are
implemented. That way I may find a better way for my crosshair.

Greetings,
>
> >
> > And one general question: Is this the right place to post such
> questions?
> >


I think the answer to this question was "yes"!

> 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]
> ?subject=unsubscribe
>
-------------------------------------------------------------------------
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