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
16
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!

WickedX
15
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.

Kuper
16
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.

WickedX
15
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
16
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: 2024-03-28 23:32:42
Your offset time is: 2024-03-28 23:32:42