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 / [SOLVED] Weird Size-Vertex Index Issue (M1U Plains)

Author
Message
Derek Darkly
7
Years of Service
User Offline
Joined: 22nd Sep 2011
Location: Whats Our Vector, Victor?
Posted: 23rd May 2018 18:12 Edited at: 23rd May 2018 18:22
I was checking out the vertices of a PLAIN object made with M1Utils and I noticed that if the size of the object does not exactly match the number of squares then the vertex positions seem to be reported incorrectly. However, if I use MAKE OBJECT PLAIN 1,32,32,32,32 for example, things seem to line up just fine.

In this example by using the TAB key you will notice that a plain size of 20 using 32x32 squares doesn't match up in 3D space when you cycle through the vertices:



Is this an actual bug or am I not doing/thinking something correctly?
Send your parents to noisy sprite demo hell... enter the D-Zone

The author of this post has marked a post as an answer.

Go to answer

revenant chaos
Valued Member
11
Years of Service
User Offline
Joined: 21st Mar 2007
Location: Robbinsdale, MN
Posted: 23rd May 2018 20:37
This post has been marked by the post author as the answer.
Hi Derek, Vx(), Vy() and Vz() need to be declared as float arrays.
chafari
Valued Member
12
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 23rd May 2018 20:59 Edited at: 23rd May 2018 21:05
Hi there

Quote: "Hi Derek, Vx(), Vy() and Vz() need to be declared as float arrays."


That's what I thought but just try and did't work

Try this :




Edited....
Sorry...I just jumped the gun ..revenant chaos is right

we are geing old
Cheers.
I'm not a grumpy grandpa
Derek Darkly
7
Years of Service
User Offline
Joined: 22nd Sep 2011
Location: Whats Our Vector, Victor?
Posted: 23rd May 2018 21:37

OMG!!! Just when i thought I had achieved all the dumb i could, i managed to get dumber. LoL... Somebody call Jeff Daniels and Jim Carrey.

Thanks again guys!
::Hops on the little bus::
Send your parents to noisy sprite demo hell... enter the D-Zone

Login to post a reply

Server time is: 2018-10-17 11:20:22
Your offset time is: 2018-10-17 11:20:22