Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
simple 3d starfield & wireframe or vector graphics revisited
#2
research gluperspective (for setting your world up) and glulookat for basic camera controls.

Here's the bindings youll need 

Code: (Select All)
DECLARE DYNAMIC LIBRARY "glu32"
  SUB gluBuild2DMipmaps (BYVAL eg_GL_TEXTURE_2D AS LONG, BYVAL eg_GL_RGBA AS LONG, BYVAL sx AS LONG, BYVAL sy AS LONG, BYVAL eg_GL_RGBA AS LONG, BYVAL eg_GL_UNSIGNED_BYTE AS LONG, BYVAL offset AS _OFFSET)
  SUB gluBuild1DMipmaps (BYVAL target AS LONG, BYVAL internalFormat AS LONG, BYVAL width AS LONG, BYVAL format AS LONG, BYVAL vtype AS LONG, BYVAL pixels AS _OFFSET)
  SUB gluLookAt (BYVAL eyex AS DOUBLE, BYVAL eyey AS DOUBLE, BYVAL eyez AS DOUBLE, BYVAL centerx AS DOUBLE, BYVAL centery AS DOUBLE, BYVAL centerz AS DOUBLE, BYVAL upx AS DOUBLE, BYVAL upy AS DOUBLE, BYVAL upz AS DOUBLE)
  SUB gluOrtho2D (BYVAL left AS DOUBLE, BYVAL right AS DOUBLE, BYVAL bottom AS DOUBLE, BYVAL top AS DOUBLE)
  SUB gluPerspective (BYVAL fovy AS DOUBLE, BYVAL aspect AS DOUBLE, BYVAL zNear AS DOUBLE, BYVAL zFar AS DOUBLE)
  FUNCTION gluErrorString$ (BYVAL errorCode AS LONG)
END DECLARE

A google search will give you detailed info, and if you go in ai mode, hand those declares to the ai and tell it to make you a demo using qb64 with lots of remarks for you to learn from i think youll be fine! i,e ask it "Make a me a simple wireframe grid and First person movement demo using glulookat" and youll be sorted.

Unseen
Reply


Messages In This Thread
RE: simple 3d starfield & wireframe or vector graphics revisited - by Unseen Machine - 01-31-2026, 08:17 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Nice simple, I hope, question Mad Axeman 4 361 12-20-2025, 09:28 PM
Last Post: SMcNeill
  trouble filling in a closed vector shape madscijr 31 2,536 11-11-2025, 03:41 PM
Last Post: bplus
  Simple Addition gone wrong Dimster 13 1,473 08-22-2025, 09:00 PM
Last Post: Pete
  wireframe maze anyone? James D Jarvis 3 480 08-10-2025, 04:52 PM
Last Post: Unseen Machine
  Trying to create a simple menu CMR 8 1,241 06-18-2025, 06:59 PM
Last Post: CookieOscar

Forum Jump:


Users browsing this thread: 1 Guest(s)