Horde3D

Next-Generation Graphics Engine
It is currently 28.03.2024, 11:20

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: 27.05.2011, 18:51 
Offline

Joined: 27.05.2011, 18:48
Posts: 2
Does Horde3D allow for real time mesh manipulation? Can I add and modify triangles as and when I need? Would really appreciate any pointers on this regard.
Unni


Top
 Profile  
Reply with quote  
PostPosted: 30.05.2011, 23:29 
Offline
Engine Developer

Joined: 10.09.2006, 15:52
Posts: 1217
Yes, basically that is possible, although the dynamic geometry functionality is not tested much.

You can map/lock the streams of a geometry resource (h3dMapResStream) and change their data. You can also create mesh nodes and attach them to a model. In case you want to create geometry procedurally, there is a convenience function h3dutCreateGeometryRes in the utility layer.


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

Joined: 27.05.2011, 18:48
Posts: 2
marciano wrote:
Yes, basically that is possible, although the dynamic geometry functionality is not tested much.

You can map/lock the streams of a geometry resource (h3dMapResStream) and change their data. You can also create mesh nodes and attach them to a model. In case you want to create geometry procedurally, there is a convenience function h3dutCreateGeometryRes in the utility layer.

I see. Thanks for the heads up!
So I can theoretically create a mesh using h3dutCreateGeometryRes during initialization and then use h3dMapResStream to lock and change the mesh data. Will that work? And also, it says in the h3dMapResStream documentation that "A mapped stream should be unmapped again as soon as possible but always before subsequent API calls are made" By subsequent API calls do they mean Horde's inbuilt rendering calls or any other API calls that uses the mesh in the graphics loop?


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 37 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