Horde3D

Next-Generation Graphics Engine
It is currently 29.11.2024, 15:49

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: 15.08.2009, 11:47 
Offline

Joined: 15.08.2009, 11:34
Posts: 10
Hi there,

I'm currently working at a project in which i would need to use a VBO created from a binary file. I decided to use the extension system of horde, and now I've just updated to beta4.
In beta3 there were the "glVertexPointer" and "glEnableClientState" commands, and i really understood how that worked, but now these commands aren't declared in horde anymore and I have no idea how to setup all the texture, color and vertex pointers correctly, because i miss these functions...

can anyone help me out?

thanks in advance,
Hagen :)


EDIT:

Solved it on my one (via the shaders)
but now theres another problem:
I draw a rectangle via GL_LINE_LOOP, but it disappears whenever the center of the rectangle is out of sight of the camera... how do I stop that behavior?

(I think it's because of some (maybe not correctly working?) optimization algorithms, or do i have to create a geometry ressource?)

kind regards,
Hagen


Top
 Profile  
Reply with quote  
PostPosted: 15.08.2009, 21:31 
Offline
Engine Developer

Joined: 10.09.2006, 15:52
Posts: 1217
Hi Hagen,

if you are writing a custom extension you don't need to use geometry resources since you have access to all low-level functionality of the engine. We started implementing the graphics hardware abstraction layer for Beta4 and GL vertex pointers are now encapsulated in vertex declarations (in RendererBase). It is probably the best to take a look at the Renderer class to see how vertex buffers are handled for particles or models. It is not really complicated.

Regarding the disapperaing rectangle: if it is a scene node, does it have a proper bounding box?


Top
 Profile  
Reply with quote  
PostPosted: 20.09.2009, 11:56 
Offline

Joined: 15.08.2009, 11:34
Posts: 10
Thanks a lot, this part works now.
(I had to transform the bounding box)


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group