Page 3 of 7 FirstFirst 12345 ... LastLast
Results 21 to 30 of 62

Thread: m15 module

  1. #21
    thinBasic MVPs kryton9's Avatar
    Join Date
    Nov 2006
    Location
    Naples, Florida & Duluth, Georgia
    Age
    67
    Posts
    3,869
    Rep Power
    404

    Re: m15 module

    Petr the text is not working in the last zip. I was checking it with the working ui demo and am at a loss. Sorry, as you can see I lost my programming powers with the time off doing catch work with other things. I am at this type of loss in 3D too. It will take me time to get back up to shape
    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

  2. #22
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732

    Re: m15 module

    Hi Kent,

    no worries The text did not worked even in the first version you posted, I thought you remmed it out.
    I will check it now.


    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

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

    Re: m15 module

    Found it,

    just little problem, you tried to build font before the TBGL window was created, now it works
    I also removed dependancy on UI module.


    Thanks,
    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

  4. #24
    thinBasic MVPs kryton9's Avatar
    Join Date
    Nov 2006
    Location
    Naples, Florida & Duluth, Georgia
    Age
    67
    Posts
    3,869
    Rep Power
    404

    Re: m15 module

    Thanks Petr.

    Actually that would make for some nice new tbgl ui commands

    Will look at the new file now and try to soak it in. Thanks agian!!
    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

  5. #25
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732

    Re: m15 module

    Actually that would make for some nice new tbgl ui commands
    I know, I know

    New file is not much different, I just shifted part of code with UI_Init after TBGL_ShowWindow


    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

  6. #26
    thinBasic MVPs kryton9's Avatar
    Join Date
    Nov 2006
    Location
    Naples, Florida & Duluth, Georgia
    Age
    67
    Posts
    3,869
    Rep Power
    404

    Re: m15 module

    Thanks having fun working on it while I redo my gaming computer (My HP Desktop).

    The HP comes with restore dvd's only and no separate XP disk, so when you redo the system it installs of the crap ware that it is loaded with.

    Today using these tools I was able to strip all the crap out and make my own restore images and my hard disk partitioned as I want.

    1. Seagate Disk Tools - comes with seagate drives
    2. Seagate Disk Wizard - this makes images of your drives and can make a boot disk
    http://www.seagate.com/www/en-us/sup...ads/discwizard

    3. This gets rid of all of the crap installed by manufacturers
    http://www.pcdecrapifier.com/

    4. XPLITE - this strips a lot of things out of windows for you
    http://www.litepc.com/

    I was able to make an image to my external usb hard drive.
    I also made one on a partition on my hard drive.

    All of this takes time, thank goodness for your help so I can keep coding while the computer works on the asis.
    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

  7. #27
    thinBasic MVPs kryton9's Avatar
    Join Date
    Nov 2006
    Location
    Naples, Florida & Duluth, Georgia
    Age
    67
    Posts
    3,869
    Rep Power
    404

    Re: m15 module

    Petr, I am getting this error see attached screenshot. I am trying to run the gl command to get the viewport width.

    DECLARE SUB glGetIntegerv LIB "opengl32.dll" ALIAS "glGetIntegerv" (BYVAL pname AS GLenum, BYREF params() AS GLint)

    How can I use this or can we have a tbgl viewport command to tell us the viewport width height and which is current under the mouse?
    Not asking too much, I know it is but maybe something to put on the command list for the future

    It might be simpler to just have one opengl screen and just render the ui separately, I will work on that now.
    Thanks.
    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

  8. #28
    thinBasic MVPs kryton9's Avatar
    Join Date
    Nov 2006
    Location
    Naples, Florida & Duluth, Georgia
    Age
    67
    Posts
    3,869
    Rep Power
    404

    v 0.04

    Have to go to bed early tonight so didn't get as far as I had hoped, but at least a step forward.

    I am thinking perhaps I need to understand and learn Mike's event manager to let it handle input events?
    Need to study and think about it.

    I think no need for viewports, just one window with the ui layer will work fine, at least for now.

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

  9. #29
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732

    Re: m15 module

    Hi Kent,

    that rocks! Really nice look!

    To get size of current viewport use:
    [code=thinbasic]
    DIM viewport(4) AS LONG
    glGetIntegerV( %GL_VIEWPORT, viewport )

    MSGBOX 0, "x:"+STR$(viewport(1))+$CRLF+ _
    "y:"+STR$(viewport(2))+$CRLF+ _
    "w:"+STR$(viewport(3))+$CRLF+ _
    "h:"+STR$(viewport(4))
    [/code]

    If we will not use viewports, the size of window inner area can be retrieved as:
    [code=thinbasic]
    TBGL_GetWindowClient( hWnd, width, height )
    [/code]

    With the new TBGL update, we can take advantage of custom coordinate system. That means we can setup virtual reference system for UI stuff, which will be independent on resolution.

    TBEM module is fantastic. You just define event types, attach them function "callbacks" and then just in the main loop use "TBEM_RUN" which is the core launching the functions in defined time.
    Have a look at my clock example, it is kind of minimal sample what you can do with TBEM.


    Thanks,
    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

  10. #30
    thinBasic MVPs kryton9's Avatar
    Join Date
    Nov 2006
    Location
    Naples, Florida & Duluth, Georgia
    Age
    67
    Posts
    3,869
    Rep Power
    404

    Re: m15 module

    Thanks Petr for the info.

    While sleeping another idea, I know sleeping is dangerous. This one is simple gui editor for making gui

    Maybe use entity system and simple text files that are output from the gui making wizard.
    I will think about it while doing errands today and get a start on it when I get back.

    I am trying to approach things in a more modular resusable way than before when working on projects.
    Hope I can see the light while thinking about it
    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

Page 3 of 7 FirstFirst 12345 ... LastLast

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
  •