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 / Memblock to mesh

Author
Message
Mr Squishy
18
Years of Service
User Offline
Joined: 25th Feb 2006
Location:
Posted: 8th Apr 2006 19:46
Hello agian.
How is everyone?

So i figured it would be simple to make a memblock, then using some for statements fill it with info and then make that into an object. I am having problems with this however and i dont know why.

I guess i am writing to the memblock incorectly or something, and that is what is giving me these strange results.

If anyone has the time could you please* take a look at what i have here.

Here is the code.


*indecates intencly sencire begging and/or groveling.

Keep it simple.
Otherwise, you may not be clever enough.
IanM
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 8th Apr 2006 20:19
Well, that looks simple enough. Your main problems are here:

dbWriteMemblockFloat(1,offset+=4,j);

It's the result of 'offset+=4' that is used, where you are probably expecting 'offset' to be used, and then incremented by 4. Only the ++ or -- functions have post-increment versions - all of the += types are pre-increment.

For free Plug-ins and source code http://www.matrix1.demon.co.uk
Mr Squishy
18
Years of Service
User Offline
Joined: 25th Feb 2006
Location:
Posted: 8th Apr 2006 22:50
yea that was it .

Keep it simple.
Otherwise, you may not be clever enough.

Login to post a reply

Server time is: 2024-05-27 12:38:29
Your offset time is: 2024-05-27 12:38:29