Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsDiscussion Forum → Jedi Knight Texture Coordinates
Jedi Knight Texture Coordinates
2010-11-03, 1:40 AM #1
First off, this is not an editing question, which is why I'm posting in the discussion forum.. so...

I have an XNA programming class at school and for one of my projects I thought it would be cool to load a JKL. Well, I got the geometry loaded (just using the vertex and surface lists), but I'm having a problem with the texture coordinates and whatnot. The jkspecs say that I need to convert the scale by doing (U / texWidth) and (V / texHeight), but that doesnt seem to be working. Any ideas? .. I know some have wrote JKL Loaders in the past in other 3D API's.

Might I also point out that XNA requires everything to be drawn as a triangle, so all JK Surfaces have to be triangulated.. so I'm not sure if that messes up the coords or not.
2010-11-03, 5:18 AM #2
Triangulation shouldn't. Since all the faces are convex, you can just turn them into triangle strips.

For texture coords, the jkspecs are correct. Make sure the sizes you are dividing by are the sizes of the original texture.
2010-11-03, 5:28 AM #3
Make sure you're dividing by the original texture size, and not the width/height of a mipmap of a lower quality.
2010-11-03, 7:23 AM #4
Well XNA's Texture2D has a Width and Height property which is what I'm using, but I will try to hard code that value to test and see if it changes.
2010-11-03, 8:04 AM #5
Got it working.. forgot to change the VertexDeclaration to VertexPositionNormalTexture :XD:
Attachment: 24448/jkl_loader.jpg (65,590 bytes)
2010-11-03, 8:10 AM #6
Cool!
"it is time to get a credit card to complete my financial independance" — Tibby, Aug. 2009
2010-11-03, 11:00 AM #7
ahhhh JK's default texture... how I hate seeing you in strange corners of levels...
(JKLE_Cougar) from JK MP Community
discord.me/jediknightdarkforces2
2010-11-03, 11:03 AM #8
JED has a texture find/replace, you know :tfti:
Bassoon, n. A brazen instrument into which a fool blows out his brains.
2010-11-03, 12:30 PM #9
I honestly had to check the date on the OP. It's nice to know people still edit JK 13 years later, even if nothing comes out of it.
2010-11-03, 12:40 PM #10
He's not editing JK.
Bassoon, n. A brazen instrument into which a fool blows out his brains.
2010-11-03, 12:55 PM #11
i see dflt!
"Nulla tenaci invia est via"
2010-11-03, 1:14 PM #12
Originally posted by MysteriousSith:
Got it working.. forgot to change the VertexDeclaration to VertexPositionNormalTexture :XD:


Moar snaps plz :)
2010-11-03, 1:42 PM #13
Kiramin had a jkl renderer on the iphone and he used 6000 Block as his test map. It was fun. To look at.
2010-11-03, 1:42 PM #14
Why would he pick such a crappy map sheesh
Bassoon, n. A brazen instrument into which a fool blows out his brains.
2010-11-03, 1:45 PM #15
Originally posted by Brian:
Kiramin had a jkl renderer on the iphone and he used 6000 Block as his test map. It was fun. To look at.


That's pretty cool.
2010-11-03, 1:57 PM #16
Originally posted by Tibby:
I honestly had to check the date on the OP. It's nice to know people still edit JK 13 years later, even if nothing comes out of it.


you should stop by jkhub then
(JKLE_Cougar) from JK MP Community
discord.me/jediknightdarkforces2
2010-11-03, 2:24 PM #17
blah blah blah Someone make new levels....
" I am the Lizard King, I can do anyhthing... "
2010-11-03, 2:50 PM #18
I'll be able to render it on the xbox hehe... I'll post some more snaps when I get the textures loading... I loaded up my dark tome level 2 in it earlier lol

@Darth_Xasthur... I do currently have a sp project in the works
2010-11-03, 3:37 PM #19
hey guys lets port JK to the xbox lolol
"Nulla tenaci invia est via"
2010-11-03, 3:43 PM #20
Originally posted by zanardi:
hey guys lets port JK to the xbox lolol


I was just waiting for someone to make that comment lol
2010-11-03, 4:50 PM #21
I'm doing something similar, too. It's actually a really smart way to implement levels for an XNA game. Hidden surface removal and pathfinding are trivial in JK levels.
2010-11-03, 5:26 PM #22
Yeah... I figured since I edit jk.. I could use it as a means to create 3d content in xna
2010-11-03, 6:22 PM #23
Originally posted by zanardi:
hey guys lets port JK to the xbox lolol


I like this idea! :huh:
(JKLE_Cougar) from JK MP Community
discord.me/jediknightdarkforces2
2010-11-03, 6:24 PM #24
I was laughing, but there is some truth behind it.
"Nulla tenaci invia est via"
2010-11-03, 6:41 PM #25
I think it would be cool to port.. But I'm sure it will reach the same problems Sith2 had
2010-11-03, 7:03 PM #26
Sith2 tried to re-use the same resources but this would have to be a new game from the ground up.
"Nulla tenaci invia est via"
2010-11-03, 7:09 PM #27
That would be cool... We could make jk4 since lucasarts is too gay to do it
2010-11-03, 7:20 PM #28
lousy gays :argh:
COUCHMAN IS BACK BABY

↑ Up to the top!