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.

DarkBASIC Professional Discussion / Additional UV stages in memblock

Author
Message
Kuper
9
Years of Service
User Offline
Joined: 25th Feb 2008
Playing: Planescape:Torment
Posted: 21st Feb 2017 23:56 Edited at: 21st Feb 2017 23:57
Hi! Is it possible to set up additional uv stages when create object from memblock?
Here is my memblock functions.Works fine but I need to set up more UV stages!

+ Code Snippet
WickedX
8
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 22nd Feb 2017 02:06 Edited at: 22nd Feb 2017 02:15
Give this a try. Should work.

+ Code Snippet
Kuper
9
Years of Service
User Offline
Joined: 25th Feb 2008
Playing: Planescape:Torment
Posted: 22nd Feb 2017 20:47
Nope( Just crash
I played with numbers but get crash or distorted mesh.

+ Code Snippet
WickedX
8
Years of Service
User Offline
Joined: 8th Feb 2009
Location: A Mile High
Posted: 22nd Feb 2017 21:15
The Flexible Vertex Format should be; 0x02 || 0x010 || 0x040 || 0x100 || 0x200 ( FVF_XYZ || FVF_NORMAL || FVF_DIFFUSE || FVF_TEX1 || FVF_TEX2 ) or 0x352 decimal 850 in that order. The new vertex size is 44. The size throughout your code should be changed to 44 i.e. iVertex*36 and 36*iVertexCount. Sorry forgot to do that in my snippet above.
Kuper
9
Years of Service
User Offline
Joined: 25th Feb 2008
Playing: Planescape:Torment
Posted: 22nd Feb 2017 22:07
YEEE MAN! Finally works!
Thanks a lot!

Login to post a reply

Server time is: 2017-09-26 08:23:24
Your offset time is: 2017-09-26 08:23:24