Page 1 of 3 123 LastLast
Results 1 to 10 of 22

Thread: Vector Graphics

  1. #1

    Vector Graphics

    Hi tB users,

    Is it possible to draw vector graphics with OpenGL. By that, I mean graphic primitives like simple lines, rectangles, ellipses, circles etc.
    onto a 3D surface. (2D primitives on top of a 3D surface) I don't know much about OpenGL capabilities. So before I scour the docs, I was hoping to get a quick answer. Perhaps one has to use windows GDI. If so, can the GDI be drawn on top of a OpenGL surface.? Perhaps someone can point me in the right direction.

    Thanks

    May all your thinBasic endeavors be successful.
    Contempt Prior to Investigation = Everlasting Ignorance

  2. #2

    Re: Vector Graphics


    Hi Pipes,

    Kent Sarikaya's Tank Wars Game is rich in TBGL Line Graphics and several other goodies.


    http://community.thinbasic.com/index.php?topic=1798

    Charles

  3. #3

    Re: Vector Graphics

    TBGL supports some 2D primitives. Rect, circle, line. Let me know if that's what you need.

  4. #4
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10

    Re: Vector Graphics

    Pipes,

    to have the latest 2D primitive developed by Michael Hartlef and Petr Schreiber be sure to install one of the latest thinBasic beta versions. You can download them from http://community.thinbasic.com/index.php?board=176.0
    They recently did a great development stage in the 2D world.

    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

  5. #5

    Re: Vector Graphics

    Hi Michael,

    TBGL supports some 2D primitives. Rect, circle, line. Let me know if that's what you need.
    Are these 3D objects or 2D primitives? By 3D objects, I mean polygons that have been created in 3D space then colored or textured.
    I want to create an image, (bmp,jpg,png etc.) draw lines, rectangles, circles etc. to it, then overlay it on a 3D scene. Much like Blitz3D if you are familiar with that language. I'm not sure TBGL or OpenGL will do that. I think with the allegro graphics library that can be used with OpenGL doesn't exactly accomplish that task either. At least not without jumping through some hoops. So I'm not sure if it can be done in OpenGL or TBGL. Presently, I'm in information overload. Simple answers just don't compute in the information age. Documentation can be overwhelming in any library or programming language. Does not compute... Does not compute... Does not compute... Does not compute... Does not compute... Warning info overload... Does not compute... Does not compute... Warning out of memory....

    Sorry I got stuck in a recursion descent.

    Thanks
    Contempt Prior to Investigation = Everlasting Ignorance

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

    Re: Vector Graphics

    Hi Pipes,

    once you get out of that recursion - yes, you can render in 3D and 2D mode and combine it to one image.
    What is your planned project about?
    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

  7. #7

    Re: Vector Graphics

    Hi Petr,

    What is your planned project about?
    All righty then... Forever and a day I've been working on a Game users interface for Blitz3D (Well okay that's a bit dramatic). Off and on for quite awhile, I've been working on a Game user interface for Blitz3D. Complete with all the normal user controls one would find in a windows environment (not to be confused with actual windows controls but essentially acts like windows) and then some. Included are scrollable or non-scrollable type image thumbnails much like an inventory system in an RPG but user designated. User designated window skins, borders, headers and footers etc.
    In my opinion Blitz3D is fading in the sunset stuck in old technology like directX7 with no changes coming in the future. Most users have switched to BlitzMax. That's another subject sore entirely. I thought about changing the GUI to thinBasic to be used with TGBL to share with the community. I know you can use windows controls with TGBL, but windows controls look like application controls not game controls. I've worked too long on the project just to let it fade in the sunset. Many of the procedures and functions would easily port to thinBasic so I'm exploring other avenues. (By now you're probably sorry you asked. ) That about sums it up.

    May all your thinBasic endeavors be successful,

    Pipes

    Contempt Prior to Investigation = Everlasting Ignorance

  8. #8

    Re: Vector Graphics

    What, did I gear GUI?? Is my dream comming true? Let me know what you need and I will try to help whatever you need. You were asking about if the 2D primitives are 3D or 2D. OpenGL is all 3D, for these 2D functionalities liek the primitives or the sprites, you switch to a different coordinate system and make it a orthographic viev. 2D and 3D can be easily mixed. It is just a matter of state changing.

    Man, I would love to have a skinnable gui system for TBGL.

    Btw. I didn't know you were a blitzer. How small the world is. TBGL entity system was motivated by the Blitz entity system.

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

    Re: Vector Graphics

    Hi Pipes,

    that sounds interesting, do you have any screenshots?!
    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. #10

    Re: Vector Graphics

    Hi Michael,

    Yes, I'm a blitzer for many years. I still like it but I think that boat is sailing away. Do you still use it? It's hard to give it up. My passion has always been game programming. I think game programmers should be writing games not designing a user interface. However, blitz was sadly lacking in that area for my taste. So I re-invented the wheel. Now, I'm really into it.

    Petr, here are a couple of screens from blitz. Keep in mind this is not a finished product nor are all the features shown but it's a start.

    May all your thinBasic endeavors be successful...

    Pipes

    [img][/img]
    Attached Images Attached Images
    Contempt Prior to Investigation = Everlasting Ignorance

Page 1 of 3 123 LastLast

Similar Threads

  1. Example: passing vector or array to same function
    By e90712 in forum Math scripts
    Replies: 2
    Last Post: 19-07-2008, 00:33

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
  •