Horde3D

Next-Generation Graphics Engine
It is currently 16.06.2024, 10:52

All times are UTC + 1 hour




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: 18.04.2009, 21:35 
Offline

Joined: 18.04.2009, 16:21
Posts: 4
Hi everybody,
I am a new user of Horde3D. My goal is to basically use it as a visualizer tool for some projects that I am working on. Anyway, the past couple days I managed to smoothly import several maya scenes into the engine, as well as integrate my existing code. The problem is that for testing purposes I would like to visualize characters using just simple colored cylinders. I know that I can import a cylinder with a proper colored texture map, or use opengl functions to draw it, but is there any other option?
Thnx


Top
 Profile  
Reply with quote  
PostPosted: 18.04.2009, 22:41 
Offline
Engine Developer

Joined: 10.09.2006, 15:52
Posts: 1217
Hi, great to hear that porting your project over to Horde went smooth so far.

The functionality for quickly drawing geometry for debugging purposes is something I have already thought about. We plan to add some function drawDebugGeometry that just takes a list of vertex positions and renders them as triangles with a specified color. Unfortunately this feature is still on the TODO list and I can't tell you when exactly we will find the time to implement it.


Top
 Profile  
Reply with quote  
PostPosted: 19.04.2009, 13:06 
Offline

Joined: 18.04.2009, 16:21
Posts: 4
Thanks marciano for your reply. I agree that this would be a nice add-on feature for a future release.


Top
 Profile  
Reply with quote  
PostPosted: 11.05.2009, 21:00 
Offline

Joined: 26.08.2008, 18:48
Posts: 120
I have a similar problem. I would like to render some dynamic geometry, like HP bars above the character, lightning/electric discharge, breakable objects, cloth, rope and soft bodies. I think a dynamic geometry resource could solve this problem.
Most of these problems could be solved only modifying vertex data, but I don't know the OpenGL VBO interface too well, so i don't know the performance implications.

In D3D9 you have static-managed(shouldn't be modified), dynamic-discard-overwrite(for particle and similar stuffz), default-pool-nondynamic(you can modify it once per frame without performance problems). AFAICS OpenGL have something similar with VBO's stream, static, dynamic.

So I think the two alternatives are to use dynamic buffer and update it when needed
or store the vertex data in system memory and render it as stream. Both of these could be done by adding set*** interfaces to the geometry resource.

Any better alternatives?


Top
 Profile  
Reply with quote  
PostPosted: 12.05.2009, 20:42 
Offline
Engine Developer

Joined: 10.09.2006, 15:52
Posts: 1217
@attila: Yeah, we definitely need a convenient way to render dynamic geometry. VBO updates in OpenGL are working at acceptable performance (we already use them for morphing and software skinning). It is only that glMapBuffer which is the equivalent to the D3D buffer mapping is less efficient but using glBufferData should be ok.

Dynamic updates always require special care. If a buffer that should be updated is still referenced in the GPU push buffer, then a stall will be introduced since the driver needs to wait until the current buffer data is no more required.

Good read:
Using Vertex Buffer Objects (VBOs)


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

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 46 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