Results 1 to 5 of 5

Thread: tbgl_EntityCreateCamera- Question

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    thinBasic MVPs
    Join Date
    Oct 2012
    Location
    Germany
    Age
    55
    Posts
    1,554
    Rep Power
    174

    tbgl_EntityCreateCamera- Question

    How can I get the coordinates where the %ENT_CAMERA-Entity currently is looking at?

    (TBGL_Demo06_01_MovingIn3D_UsingEntitySystemBasic.tBasic from sampleScripts\TBGL\Basic-folder)
    and btw. what is "dim Sheeps as Long" for? Some internal switch?


    The intention is, to move some mesh or tirangle-list through space and make the camera look at it.
    But camera should be moveable in all directions around the mesh, always looking at it
    so maybe normal controls (left/right/up/down/pgUp/pgDn) refer to the meshes movement, camera will always follow, so makes the same moves

    but if I press any Shift-Key just the camera should
    %VL_Left - rotate left around point of view (my mesh)
    %VK_Up - get closer
    %VK_Down- zoom out
    %VK_PgUp - Camera shall move upwards but still look down to the mesh

    so I need to know: How can I get or even set the look-at-position for the camera-entity

    and another question: how can I make my Triangle-Lists triangles, which I setup with

    TBGL_NewList %ENT_POINTER
    TBGL_BeginPoly %GL_TRIANGLES
    TBGL_Color 0, 127, 0
    TBGL_Vertex -1 , 0 , 0
    TBGL_Normal
    ...etc.

    to be rendered just from one side visible?
    Last edited by ReneMiner; 28-10-2012 at 16:44.
    I think there are missing some Forum-sections as beta-testing and support

Similar Threads

  1. Question of the day ;)
    By Petr Schreiber in forum thinBasic General
    Replies: 8
    Last Post: 23-08-2010, 19:58
  2. C to TB question
    By Michael Clease in forum Other languages
    Replies: 2
    Last Post: 03-06-2010, 12:11
  3. gdi question
    By Lionheart008 in forum UI (User Interface)
    Replies: 6
    Last Post: 07-12-2009, 19:31
  4. UDT question
    By sandyrepope in forum thinBasic General
    Replies: 3
    Last Post: 18-02-2008, 22:33
  5. m15 question
    By kryton9 in forum M15 file format
    Replies: 4
    Last Post: 20-06-2007, 20:18

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •