|
Post by DJLinux on Dec 26, 2008 13:11:20 GMT -5
|
|
|
Post by Nicky Peter Hollyoake on Dec 26, 2008 13:14:22 GMT -5
Cool. Thats good.
|
|
|
Post by DJLinux on Dec 26, 2008 13:22:59 GMT -5
Cool. Thats good. the trick is the missing GL_CLAMP_TO_EDGE const glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE) glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE) without it i get in all demos fine visible lines in the sky Joshy
|
|
|
Post by Nicky Peter Hollyoake on Dec 26, 2008 13:24:14 GMT -5
Cool. Thats good. the trick is the missing GL_CLAMP_TO_EDGE const glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE) glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE) without it i get in all demos fine visible lines in the sky Joshy Nice I just looked at it again and it looks so real seems if you move forward you'd actually fall into the hole. ;D - Nicky
|
|
|
Post by Darkjester on Dec 26, 2008 13:25:41 GMT -5
Djlinux would it be posible to add missing gl constants through the plugin interface?
|
|
|
Post by Nicky Peter Hollyoake on Dec 26, 2008 13:29:18 GMT -5
Why don't Tom just add them I'm sure it wouldn't even take a second to do it.
|
|
|
Post by Darkjester on Dec 26, 2008 13:35:23 GMT -5
Id like to know how djlinux gets those numbers that he uses to use opengl 1.1 gl constants that he used in this demo as well as the other one he posted where he had like 10 gl constants defined that tom hasnt added.
|
|
|
Post by Supermonkey on Dec 26, 2008 14:52:57 GMT -5
They'll be defined in the C header files, as well as in the opengl documentation.
|
|
|
Post by DJLinux on Dec 27, 2008 3:05:18 GMT -5
Basic4GL is compatible to OpenGL <=v1.1 and this const's are from OpenGL >=v1.2 Joshy const GL_CLAMP_TO_BORDER = 33325 const GL_CLAMP_TO_EDGE = 33327 const GL_NORMAL_MAP = 34065 const GL_REFLECTION_MAP = 34066 const GL_TEXTURE_CUBE_MAP = 34067 const GL_TEXTURE_BINDING_CUBE_MAP = 34068 const GL_TEXTURE_CUBE_MAP_POSITIVE_X = 34069 const GL_TEXTURE_CUBE_MAP_NEGATIVE_X = 34070 const GL_TEXTURE_CUBE_MAP_POSITIVE_Y = 34071 const GL_TEXTURE_CUBE_MAP_NEGATIVE_Y = 34072 const GL_TEXTURE_CUBE_MAP_POSITIVE_Z = 34073 const GL_TEXTURE_CUBE_MAP_NEGATIVE_Z = 34074 const GL_PROXY_TEXTURE_CUBE_MAP = 34075 const GL_MAX_CUBE_MAP_TEXTURE_SIZE = 34076 Sure you can make a Plugin for OpenGL 2.0 and one for modern OpenGL 3.0 but there are to mutch extensions around. (i self can only tests OpenGL things <= v1.57 with my NV Ti4300 card) My car vehicle game/simulation should run on older PC's too and it's not easy to support all this modern extensions on all NV's and ATi's if EXT_NV_XYZ then __DO_THIS_IN_NV_HARDWARE__ elseif EXT_ATI_XYZ then __DO_THIS_IN_ATI_HARDWARE__ else __DO_THIS_IN_SLOW_SOFTWARE end if Joshy
|
|
|
Post by Darkjester on Dec 27, 2008 12:51:26 GMT -5
I read through the headers like you said supermonkey they apear to be all in hex.. ill have to learn how to read hex before i can do that.
Djlinux are those all the Constants that can be declared like that in bas4gl?
|
|
|
Post by DJLinux on Dec 27, 2008 17:42:28 GMT -5
... they apear to be all in hex.. ill have to learn how to read hex before i can do that. yes any programing language should have hex notation too (i hope tom will do it some times) hex to dec is simple (if you know it once) 0x8473 = 8*4096 + 4*512 + 7*16 + 3 0xABCD = 10*4096+11*512+12*16+13 1=1 ... 9=9 A=10 B=11 C=12 D=13 E=14 F=15 i don't know i find only a missing const when i need it. Joshy
|
|
|
Post by Darkjester on Dec 28, 2008 2:46:50 GMT -5
Thnx Djlinux Very helpful -Darkjester
|
|
|
Post by DJLinux on Oct 17, 2010 23:20:26 GMT -5
Update see first post.
|
|