ReneMiner
30-10-2012, 13:48
it says:
TBGL_GBufferDefineFromArray( gbHandle, kind , items, VertexArray() [, ColorArray(), NormalArray(), TexCoordArray())
( a "]" bracket is missing somehow)
Now my question is: If I don't use colors, but use Position, Normals and TexCoords - does TBGL recognize what arguments I omit?
If I save the data later to m15-Format - is there some switch to tell which vertex-format has been used?
'thinEdge datafile{1.0.0.6/7} just differ in normals, can I make my own vertex-format so TBGL will read my meshes?
As I see, I can setup vertex-buffer with RGBA-Colors, but m15 seems just to support RGB?
I don't find Materials. Are there any?
Sample \thinBasic\SampleScripts\TBGL\GBuffers\GBuffers_SimpleShape.tBasic just shows a white screen. Has there something inside TBGL been changed so it does not work correctly any more?
EDIT: (don't want to open another thread for this)
called within main-loop each frame
Function is_any_Key() As Long
Local lCount As Long
is_any_Key = FALSE
For lCount = 1 To 255
If TBGL_GetWindowKeyState(hWnd, lCount) Then
tbgl_SetWindowTitle( hWnd, str$(lCount))
is_any_Key = TRUE
Next lCount
End Function
now if i use alt/alt Gr- keys there are returned 5 different values: 17, 18, 162, 164 and 165 - why is that?
I do this because %VK_KEY-constants-list does not tell which keys are assumed with some keys (or I don't understand their meaning from name)
Edit2:
There's some mistake in TBGL_GBufferDefineFromArray-Description:
The table of parameters says for Vertx-Array
"Array of vertices defined as TBGL_tVertex3F for 3D or TBGL_tVertex2F for 2D", also in the following lines.
But I can only find TBGL_tVector3F - and it wouldn't make sense to pass a whole Vertex-type to each parameter though...
TBGL_GBufferDefineFromArray( gbHandle, kind , items, VertexArray() [, ColorArray(), NormalArray(), TexCoordArray())
( a "]" bracket is missing somehow)
Now my question is: If I don't use colors, but use Position, Normals and TexCoords - does TBGL recognize what arguments I omit?
If I save the data later to m15-Format - is there some switch to tell which vertex-format has been used?
'thinEdge datafile{1.0.0.6/7} just differ in normals, can I make my own vertex-format so TBGL will read my meshes?
As I see, I can setup vertex-buffer with RGBA-Colors, but m15 seems just to support RGB?
I don't find Materials. Are there any?
Sample \thinBasic\SampleScripts\TBGL\GBuffers\GBuffers_SimpleShape.tBasic just shows a white screen. Has there something inside TBGL been changed so it does not work correctly any more?
EDIT: (don't want to open another thread for this)
called within main-loop each frame
Function is_any_Key() As Long
Local lCount As Long
is_any_Key = FALSE
For lCount = 1 To 255
If TBGL_GetWindowKeyState(hWnd, lCount) Then
tbgl_SetWindowTitle( hWnd, str$(lCount))
is_any_Key = TRUE
Next lCount
End Function
now if i use alt/alt Gr- keys there are returned 5 different values: 17, 18, 162, 164 and 165 - why is that?
I do this because %VK_KEY-constants-list does not tell which keys are assumed with some keys (or I don't understand their meaning from name)
Edit2:
There's some mistake in TBGL_GBufferDefineFromArray-Description:
The table of parameters says for Vertx-Array
"Array of vertices defined as TBGL_tVertex3F for 3D or TBGL_tVertex2F for 2D", also in the following lines.
But I can only find TBGL_tVector3F - and it wouldn't make sense to pass a whole Vertex-type to each parameter though...