A little "HowTo" use OpenGL in GLBasic

Previous topic - Next topic

Schranz0r

I can try to make a tutorial to get more in detail.
But maybe in german, my english is a bit awkward  :S
So i need a native speaker to translate...
I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

Hemlos

You are very fluent, i can understand you 99.99% of the time...which is alot better than some of the natives around here in Florida.
Bing ChatGpt is pretty smart :O

matchy

Alright now.  ;) I have created a demo using the sprite output from SBlectric's terrain generator and I had to modify the face library to include vertex coloring.  :zzz:

erico

#18
I will try to poke my nose where it dosen´t belong... :D
I have no idea how this is all happening, but say Matchy, can´t you UVmap the polygons instead?

edit: what? hard to understand Schranzor? Come on! just call Mentalthink and he will fix it up :)  (just joking of course Mental!)

matchy

Matchy says!  :D :D

The wrapper is fine and really is simple. It's the face library that needs improvements. For example, the association with type as arrays and converting them to.

Schranz0r

Should i redo it to Vertex buffer object ( VBO )  ???
Ah... and the Rendering to Triangles/ Trianglestrips?
I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

matchy

In the face library, you have random rgb color for testing but how are they set externally?  :S That was my only major issue because I have to include a color[4] array for that type.  ::)

Schranz0r

remove the random once and extend the facetype to apply a color
I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

matchy

Have you even looked at my source with that modified?  :'(

Schranz0r

#24
no ^^


REMOVE THIS:

Code (glbasic) Select

LOCAL r# = RND(100)
LOCAL g# = RND(100)
LOCAL b# = RND(100)

glColor3f(r/100,g/100,b/100)


in FUNCTION createObject_test

but you don't use it  :S
I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

matchy


Schranz0r

I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

matchy

Now you are confusing just me.  :'( Did you, or anyone else, try out the terrain tiler?  :zzz:

Schranz0r

ok i think i don't understand you right....

You have still random colors?
I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

mentalthink

Schranz0r don't worry about your English I understand always 100% you say, in fact I only imagine you're German for the nick in the Avatar.