GLCAD - First attempt to make a CAD program with Gambas and OpenGL

Post Reply
User avatar
jornmo
Site Admin
Posts: 206
Joined: Wednesday 21st September 2016 1:19pm
Location: Norway

GLCAD - First attempt to make a CAD program with Gambas and OpenGL

Post by jornmo » Tuesday 19th March 2019 6:08pm

First baby steps :)
CADgl-0.0.1.tar.gz
(12.95 KiB) Downloaded 131 times

User avatar
Quincunxian
Posts: 67
Joined: Sunday 25th June 2017 12:14am
Location: Western Australia

Re: GLCAD - First attempt to make a CAD program with Gambas and OpenGL

Post by Quincunxian » Tuesday 19th March 2019 11:05pm

Thanks Jornmo - That's pretty cool.
It will give me a basis for something to play with and see if I can attempt some of the things I need in a game.

To expand on my objective to draw a grid of say 10 X 10 X 10 with each (25 Max) star as a circular object of the size & colour to match the start type.
To be able to plot a point between one star and another... and your draw line routine gives me the basis of that.
To be able to rotate the matrix of stars to show relative distance in the 3 dimensions.

I can draw the grid and show the stars in a DrawingArea control but being able to rotate them around an arbitrary central point involves some very complex drawing math and that's a bit beyond me.
My compromise was to to be able to see the grind in any iso direction by 'flipping' the grid up, down, left and right to show the relative position of the stars.
I'm hopeful that the OpenGl processes will make the outcome much more better looking and less clumsy.

As soon as I have something, I'll post it up.
Cheers - Quin.
I code therefore I am

User avatar
Technopeasant
Posts: 21
Joined: Saturday 13th July 2019 6:50pm

Re: GLCAD - First attempt to make a CAD program with Gambas and OpenGL

Post by Technopeasant » Saturday 13th July 2019 7:43pm

Nice vector graphics!
Technical director,
Piga Software
http://icculus.org/piga/

Post Reply