SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SH5 Mods Workshop
Forget password? Reset here

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 02-03-13, 10:03 PM   #16
Targor Avelany
Ace of the Deep
 
Join Date: Jan 2010
Location: Vancouver, BC, Canada
Posts: 1,183
Downloads: 225
Uploads: 0


Default

Quote:
Originally Posted by TheDarkWraith View Post
Interesting...can you send me your files for this so I can look them over when I have time?

Snooping around in Granny Viewer has shown me a big error in my app. When I read the PrimaryVertexData the first thing in each chunk of PrimaryVertexData is the VertexType. I really had no idea how to use/what this was for so I was reading the value (big error!). Granny Viewer showed me that some PrimaryVertexData had different sizes for bytes per vertex. How did it know this? The only logical way was that this VertexType was actually a pointer and that is why when I read this value it was always 0 (even for PrimaryVertexData with different number of bytes per vertex). So I checked to see if it was a pointer by having the app search for a pointer at the location of the VertexType. Sure enough it found one This is good. Now I have to figure out how to use this pointer and what data it points to (and how to use it). It obviously points to something that is going to ultimately tell me how many bytes per vertex this PrimaryVertexData has. Now it all makes perfect sense! I couldn't put my head around how there could be custom names in the vertex component names yet the Granny Viewer knew how many bytes to read for each vertex component name. Now I have a clue as to how it's doing it. This totally changes my app as I had previously hard coded how many bytes per vertex based on the vertex component name. Lots of work/changes to make...
You have a full pm box
Targor Avelany is offline   Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 04:52 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Copyright © 1995- 2026 Subsim®
"Subsim" is a registered trademark, all rights reserved.