Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: NeHe Lesson23

  1. #1
    Member matthew's Avatar
    Join Date
    Mar 2007
    Location
    England
    Age
    48
    Posts
    490
    Rep Power
    68

    NeHe Lesson23

    NeHe Lesson23 will allow you to toggle between Four different Shapes, toggle the lighting and Texture Quality and show you how to use SphereMapping in your Programmes.

    Keyboard Controls...

    'L' - Toggle Lighting
    'F' - Toggle Filter (Quality of Texture)

    SpaceBar - Toggle Between Shapes

    Shapes - Cylinder, Sphere, Cone and Cube.

    Cursor Key Up - Rotate Up
    Cursor Key Down - Rotate Down
    Cursor Key Left - Rotate Left
    Cursor Key Right - Rotate Right

    'PgUp' - Zoom In
    'PgDn' - Zoom Out
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    58
    Posts
    8,834
    Rep Power
    10

    Re: NeHe Lesson23

    Matthew,

    thanks a lot for your nice, clean, well commented code.

    Eros
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  3. #3
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,159
    Rep Power
    736

    Re: NeHe Lesson23

    Hi Matthew,

    this is one of most interesting NeHe lessons,
    thanks for bringing it to thinBASIC!

    Interesting is to watch how is it casted to for example on:
    [code=thinbasic]
    tbgl_Torus 2.5,3.5
    [/code]

    ... or models
    If you add blending it looks like from glass...
    I think TopDown will use fragments of this lesson


    Bye

    Attached Images Attached Images
    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

  4. #4
    Member matthew's Avatar
    Join Date
    Mar 2007
    Location
    England
    Age
    48
    Posts
    490
    Rep Power
    68

    Re: NeHe Lesson23

    @Eros - Thanks for the comment.

    @Psch - That Human Model looks really good.



  5. #5
    thinBasic MVPs kryton9's Avatar
    Join Date
    Nov 2006
    Location
    Naples, Florida & Duluth, Georgia
    Age
    68
    Posts
    3,865
    Rep Power
    405

    Re: NeHe Lesson23

    Mathew another superb lesson. Thanks looks awesome!!

    Acer Notebook: Win 10 Home 64 Bit, Core i7-4702MQ @ 2.2Ghz, 12 GB RAM, nVidia GTX 760M and Intel HD 4600
    Raspberry Pi 3: Raspbian OS use for Home Samba Server and Test HTTP Server

  6. #6
    Member matthew's Avatar
    Join Date
    Mar 2007
    Location
    England
    Age
    48
    Posts
    490
    Rep Power
    68

    Re: NeHe Lesson23

    @kryton9 - Thanks

  7. #7
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,159
    Rep Power
    736

    Re: NeHe Lesson23

    Hi,

    I like this lesson a lot, here is little script using the spherical mapping shown in Mathews code.
    It is quick try to create water like surface. Although it does not look like real water, I think it is better than just wawing surface with static texture. It handles up to 3 wave generators at time, more is possible, but quite slow.

    Just click-click-click


    Bye,
    Petr

    Attached Files Attached Files
    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

  8. #8
    Member matthew's Avatar
    Join Date
    Mar 2007
    Location
    England
    Age
    48
    Posts
    490
    Rep Power
    68

    Re: NeHe Lesson23

    I've just tried your programme and it looked like a very realistic water effect.

  9. #9
    thinBasic MVPs Michael Hartlef's Avatar
    Join Date
    Sep 2006
    Location
    Germany
    Age
    59
    Posts
    3,300
    Rep Power
    349

    Re: NeHe Lesson23

    Looks great here.

  10. #10
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,159
    Rep Power
    736

    Re: NeHe Lesson23

    Thank you


    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

Page 1 of 2 12 LastLast

Similar Threads

  1. NeHe lessons
    By Michael Clease in forum TBGL General
    Replies: 1
    Last Post: 26-06-2008, 13:24
  2. NeHe Lesson 01
    By matthew in forum TBGL Tutorials
    Replies: 1
    Last Post: 16-03-2007, 06:38
  3. More NeHe Lessons...
    By matthew in forum TBGL Tutorials
    Replies: 5
    Last Post: 15-03-2007, 22:57

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
  •