[Gambas-user] [Gambas3] The static method Gl.SelectBuffer

laurent bernabe laurent.bernabe at ...626...
Tue Nov 20 11:51:44 CET 2012


Hello,

I've finally managed to do a selection of my 3 cubes.
I've joined the my MMain module and my ColouredCube source file. (They need
the gb.sdl, gb.opengl and gb.opengl.glu components).

I think I'll post another source if I manage to do picking on a single cube
(And I think I will manage).

Thanks again for your help :)

Regards

Laurent Bernabé

2012/11/18 laurent bernabe <laurent.bernabe at ...626...>

> Hello :
>
> Thank you very much for your help.
> I'll have a look at the example and try to adapt it.
>
> Regards :)
>
> 2012/11/18 Laurent Carlier <lordheavym at ...626...>
>
>> Le samedi 17 novembre 2012 19:01:06 laurent bernabe a écrit :
>> > Hello : thank you for your answer.
>> >
>> > Ok, I went into the Gambas SVN repository, in the source
>> > /trunk/gb.opengl/src/GLselectFeedback.c and I noticed the use of an
>> > internal buffer.
>> >
>> > But I still don't understand how I can get the value stored in the
>> buffer,
>> > once I left the GL_SELECT mode.
>> >
>> > I've joined my openGL application source files : MMain class, and
>> > ColoredCube.class.
>> >
>> > In MMain, method screen_Draw(), I tried to get the value of the array
>> > returned by gl.RenderMode(gl.RENDER), but I get an error, line 37 : Null
>> > object reference.
>> >
>> > What's wrong with my code ?
>> >
>> > Regards
>> >
>> > Laurent Bernabé
>> >
>>
>> Here a small project based on example 13.3 from
>> http://www.glprogramming.com/red/chapter13.html
>>
>> Hope it can help! Picking wasn't easy to implement; it gaves me
>> a headache :)
>>
>> If you need some functionnality (extensions) in Opengl that you can test,
>> just
>> ask, i will see if i can implement them.
>>
>> Regards,
>> ++
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Monitor your physical, virtual and cloud infrastructure from a single
>> web console. Get in-depth insight into apps, servers, databases, vmware,
>> SAP, cloud infrastructure, etc. Download 30-day Free Trial.
>> Pricing starts from $795 for 25 servers or applications!
>> http://p.sf.net/sfu/zoho_dev2dev_nov
>> _______________________________________________
>> Gambas-user mailing list
>> Gambas-user at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
>>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ColoredCube.module
Type: application/octet-stream
Size: 1177 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20121120/e66922f3/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MMain.module
Type: application/octet-stream
Size: 2313 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20121120/e66922f3/attachment-0001.obj>


More information about the User mailing list