blitzbasic

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - AMateus

Pages: [1] 2 3 ... 5
1
Multithreading is what he asks for :) And GLB doesn't support it natively.

Would be useful not only for loading, but for more heavy routines, for example AI ;)

If possible I would like for general  multithreading support instead of a specific command.

Regards,
António

2
GLBasic - en / Re: Pixelated lighting
« on: 2011-Nov-04 »
I believe this has to do with the fact the light in glbasic is per-vertex and not per-point.

So, if per-vertex, the more detailed is the object the better.

I believe.. lol

3
GLBasic - en / Re: Run GLB apps on Linux
« on: 2011-Oct-26 »
Run the app with ./ before. eg: ./app.linux

That will tell you what are the libs missing :)

4
Code Snippets / Re: ZXScreen viewer
« on: 2011-Oct-26 »

5
@Antonio this is for PolyVector sprites and not 3D objects bud.

Ups... disregard my post then =)

6
Isn't there a way to set the object material?

This type of effects (darken, lighten, etc) is achieved by the object's material  (ambient, diffuse, specular and emissive).

Basically, materials configure how the object will reflect the lights. We can even set part of the object to glow while the other parts are dark (ex: a house by night with the windows glowing because of the inside lights?)

António

7
Bug Reports / Re: Compiler / editor bug
« on: 2011-Oct-18 »
For me only works if I click in the line numbers.

António

9
GLBasic - en / Re: FOREACH element number
« on: 2011-Oct-18 »
And then DELETE command is used and the app crashes =D


Code: GLBasic [Select]
if youwanttodelete=true
   dec n
   delete v
endif

 :nana: :nana: :nana: :nana: :nana:

ahahahahah

10
Anyway, from the manual:

"While in 3D mode, only objects or parts of objects that are between znear# and zfar# relative distance to the camera will be drawn."

We just need to know if the engine also culls objects *outside* the viewport ;)

António

12
Hi,

Frustum Culling is used to remove the objects outside the View Frustum (the visible area). So, to answer your question, no, it don't make nothing. The whole 3D scene is rendered first, and then the 2D on top of it.

More Info: http://www.lighthouse3d.com/tutorials/view-frustum-culling/

António

13
GLBasic - en / Re: FOREACH element number
« on: 2011-Oct-18 »
And then DELETE command is used and the app crashes =D

Can we do like this? I'm not sure (i mean, compare ref with the i element)

Code: GLBasic [Select]
foreach v in var[]
   do_your_stuff
   print GetRefId(v), 0, 0
next

function GetRefId: ref
    FOR i = 0 to BOUNDS(var[],0)-1
    if ref = var[i]
        return i
    NEXT
endfunction
 

14
GLBasic - en / Re: FOREACH element number
« on: 2011-Oct-18 »
I don't think so... At least I didn't find any.

What is the purpose?

António

15
Very nice indeed :)

Pages: [1] 2 3 ... 5