Results 1 to 2 of 2

Thread: Question about normals

  1. #1
    thinBasic MVPs
    Join Date
    Oct 2012
    Location
    Germany
    Age
    54
    Posts
    1,533
    Rep Power
    171

    Question about normals

    Question about this:

    I saw that if a poly-list gets created (TBGL_BeginPoly), the Colors (TBGL_COLOR) has to be set before the Vertex-Position is passed.
    Is it the same way with Normals?

    Are the TBGL_Normal-values that appear before TBGL_Vertex set to all following vertices until a new TBGL_Normal is given? Even if the list is done and the next list gets created? Is it the same way with TBGL_TexCoord2D? Are they re-used as long as no other value is passed?

    EDIT: In the meantime I found out- it is that way, vertex positions last and everything is fine. Everything gets repeated until some new setting gets applied.
    -done-
    Last edited by ReneMiner; 02-11-2012 at 17:42.
    I think there are missing some Forum-sections as beta-testing and support

  2. #2
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,129
    Rep Power
    732
    TBGL is based on OpenGL, which works like state machine - you set something, and it is applied till you change it to something else.
    So yes, even the normals work this way.

    TBGL recently introduced new functionalities going around the state oriented design, which is not always the best solution for modular code.


    Petr
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

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
  •