First note that CS has the function csEngineTools::FindScreenTarget()
which is a LOT easier for finding out what the user has clicked on. So
use that instead of trying to use the iCamera methods directly.

Note that for the above method to work you still need access to the
iCamera. But luckily you can get that from the CEL camera since
internally it also uses iCamera. You can call iPcCamera->GetCamera().

Greetings,

On Wed, Nov 4, 2009 at 1:26 PM,  <guineapigx...@arcor.de> wrote:
> ###Oops, sorry. Sent my last mail before subscription and was wondering why 
> it didnt appear... :o  Sorry guys.
>
> Hi all,
>
> I am trying to code a point-and-click movement. I use the cel walk tut.
>
> The main problem is that I have difficulties using CS stuff in CEL.
>
> More specific however I use the CS manual How-To where you describe how to 
> select a mesh 
> (http://www.crystalspace3d.org/docs/online/manual-1.2/HOWTO-Clicking-on-Objects.html#0).
>  According to my understanding I can extract the maths stuff there to convert 
> my 2D mouse click into a 3D world movement command(?).
>
> But I just cant get the iCamera to work respectively I have not even an 
> approach since CEL uses its own camera (right?) which is useful and 
> understandable, no question. But how can I match the CEL camera with the CS 
> camera which I need for the transformation function (camera->InvPerspective 
> (v2d, 100, v3d) and camera->GetShiftY)?
>
> Well, if there is a CEL function shame over me :o
>
> Thanks in advance.
>
> Regards
> Jo
>
> Jetzt NEU: Do it youself E-Cards bei Arcor.de!
> Stellen Sie Ihr eigenes Unikat zusammen und machen Sie dem Empfänger eine 
> ganz persönliche Freude!
> E-Card Marke Eigenbau: HIER KLICKEN: http://www.arcor.de/rd/footer.ecard
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Cel-main mailing list
> Cel-main@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/cel-main
>



-- 
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
Personal page: http://users.telenet.be/jorritTyberghein/

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Cel-main mailing list
Cel-main@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cel-main

Reply via email to