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 / FVF 274 format

Author
Message
Jonas
18
Years of Service
User Offline
Joined: 10th Aug 2005
Location: What day is it?
Posted: 26th Nov 2011 19:58 Edited at: 26th Nov 2011 20:18
Well I am back to this project. Let me start from the beginning I guess. I wanted to use an object rather than a matrix as terrain.

Reason: Physx

So I created a seperate bit of code to create 4 plains. I then converted them to memblock so I could see what I was facing. I saved the memblock line by line to a text file and this is what I am stuck looking at:



Now, so far, I have narrowed it down to a vertex looking like this inside all that:

9.99999809265
9.99999809265
2
-8.7422769468e-008
0
-0.999999940395
1
0

I know lines 1, 2 and 6 above are the XYZ data since I can move the vertices (even figured out which vertex is where).

My question is what on Earth is everything else? And what is with the extra 0 at the end of the object data?
Brendy boy
18
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 27th Nov 2011 02:12
9.99999809265 position x
9.99999809265 position y
2 position z
-8.7422769468e-008 normal x
0 normal y
-0.999999940395 normal z
1 texture u
0 texture v

Jonas
18
Years of Service
User Offline
Joined: 10th Aug 2005
Location: What day is it?
Posted: 4th Dec 2011 20:35 Edited at: 4th Dec 2011 20:36
Is there documentation labeling the individual lines in FVF formats? I'm getting different results when I alter the variables as you've shown. Does it magically vary? DX has got me lost on this one. Here's what I've got. Sorry its so sloppy. It was gonna be a quick learn example just for myself so I just slapped it together as I went.



It creates a txt file on the desktop with the memblock output of two of the objects. You'll need to update the folder path.

Thanks for your help on this issue.
Brendy boy
18
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 4th Dec 2011 21:55
available fvf formats:




Quote: "It creates a txt file on the desktop with the memblock output of two of the objects. You'll need to update the folder path."

I don't have dark gdk installed so i can't try your code. What exactly is different compared to what i described in my previous post?

Here is a great memblock code snippet for use in dark basic pro. After you look at it maybe some thing become clearer to you.


Jonas
18
Years of Service
User Offline
Joined: 10th Aug 2005
Location: What day is it?
Posted: 4th Dec 2011 22:01
Thanks for the expedient answer. The difference is I get it to move when I do it like this:

9.99999809265 position x
9.99999809265 position y
2
-8.7422769468e-008
0
-0.999999940395 position z
1
0

I'm not sure if that's the right order but those are my 3 positioning variables... not sure why its different is all.
Brendy boy
18
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 4th Dec 2011 22:11
there's something wrong with the dword positions you use to read values from memblock. Check my snippet i posted in previous post to see how to read those values corectly

Jonas
18
Years of Service
User Offline
Joined: 10th Aug 2005
Location: What day is it?
Posted: 4th Dec 2011 22:47
OMG wow I feel dumb. I was only modifying the z position for each vertex. You were 100% correct. I see it all now. WOW! I'm the special kid...

Login to post a reply

Server time is: 2024-03-29 13:32:47
Your offset time is: 2024-03-29 13:32:47