Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / DarkGDK.NET - Creating an object from a mesh

Author
Message
Globbits
15
Years of Service
User Offline
Joined: 30th Jan 2009
Location: Cambridge
Posted: 30th Jan 2009 14:51
Dear all,

I am trying to create an object from a mesh (that has been created from a memblock) in the new version of DarkGDK.NET. I have been converting from code that I have used many times in DB Pro, but haven't been able to get any success in DarkGDK.NET. I have attached sample code for both DB Pro and .net (C#).

In DB Pro the object (which is just a simple triangle) is created and displayed, but in .net it won't create a valid object. The mesh seems to be ok, but the object itself does not have any size allocated and its visible property is false.

I would be grateful if someone could spot what it is that I am doing wrong.

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-11-25 13:14:44
Your offset time is: 2024-11-25 13:14:44