ShootersForever.com Forum Index

GoldenEye 007 Nintendo 64 Community, GoldenEye X, Nintendo 64 Games Discussion
GoldenEye Cheats, GoldenEye X Codes, Tips, Help, Nintendo 64 Gaming Community


Why some maps don't line up or have weird triangles:

 
Post new topic   Reply to topic    ShootersForever.com Forum Index -> Mapping and Modelling
View previous topic :: View next topic  
SubDrag
Administrator
Administrator


Joined: 16 Aug 2006
Posts: 6121

 PostPosted: Sun Aug 16, 2009 9:33 am    Post subject: Why some maps don't line up or have weird triangles: Reply with quote Back to top

After spending the morning on DF Ank1's level, I have realized why this is.

For one thing, not sure if everybody knows, but GE converts all vertices into signed shorts (-32768 to 32767)...Therefore, any vertices exceeded that bounds can get flipped!!! DF Ank1 had a 33,000 or so, and it went to -31000, so obviously looked very wrong. Future versions of editor will not allow import if exceeding bounds.

Second, since it's a signed short, if you have 3.3243232323 it'll go to 3. And its matching point could be 5.64343434 which rounds to 6. In theory, you could have a tiny 1 cell gap between points if it rounds poorly.


Last edited by SubDrag on Sun Aug 16, 2009 2:48 pm; edited 1 time in total
 
View user's profile Send private message
radorn
007
007


Joined: 23 Sep 2007
Posts: 1424

 PostPosted: Sun Aug 16, 2009 11:11 am    Post subject: Reply with quote Back to top

Good.This is something I was interested in knowing, thank SubDrag.
So GE's grid is 16bit precission.
Using units as centimeters for 1.0 scale as I found out yields 655.34meters max distance from side to side of a map, or better said, 327.67meters from the center. Bigger maps may need to be rescaled inside the editor before importing, or they wont fit.
 
View user's profile Send private message
SubDrag
Administrator
Administrator


Joined: 16 Aug 2006
Posts: 6121

 PostPosted: Sun Aug 16, 2009 5:58 pm    Post subject: Reply with quote Back to top

Just to be clear, the -32768 to 32767 limitation is on a room basis. So you can be larger than that absolutely, just not relative within one room (give or take the centering offset).

Signed short is true for all vertices though.
 
View user's profile Send private message
radorn
007
007


Joined: 23 Sep 2007
Posts: 1424

 PostPosted: Sun Aug 16, 2009 11:03 pm    Post subject: Reply with quote Back to top

Can RoomXX groups withing an OBJ file have their own center?
I ask this because, if not, one would have to construct and import the level room by room, as importing a full level would be inviable in the case of exceeding the limits.
 
View user's profile Send private message
SubDrag
Administrator
Administrator


Joined: 16 Aug 2006
Posts: 6121

 PostPosted: Mon Aug 17, 2009 1:14 pm    Post subject: Reply with quote Back to top

The Convert GE Level automatically centers rooms so just make sure each room by itself is not overly large
 
View user's profile Send private message
radorn
007
007


Joined: 23 Sep 2007
Posts: 1424

 PostPosted: Tue Aug 18, 2009 2:04 am    Post subject: Reply with quote Back to top

I see. So, when you import a full level from OBJ, each room's coordinate system is shifted they have their own center point at the center of the actual geometry of each room?
When I tried importing multi-group OBJs into other 3d software in the past, all of the groups' centers were at the same spot, even if the actual room's geometry was very far from that point, because the OBJ didn't have (couldn't have?) a center for each group.
I assumed the GE editor would be similar.
 
View user's profile Send private message
DF Ank1
00 Agent
00 Agent


Joined: 17 Feb 2009
Posts: 512
Location: Feldkirch, Austria

 PostPosted: Tue Aug 18, 2009 10:17 am    Post subject: Reply with quote Back to top

Ha yes this room was really very big. Luckly, SubDrag found out the problem in it. The ground was one room. It have to be minimize.


Room size is not OK. Level looks very odd/amusingly.




And hear the room size is OK. Level looks normal.






So if you have the same problem, take a lock for the levelsize. The Future Editor would not allow to import such big obj. Until to this point, check your size in you 3D Modeler if there is a error.

The Editor could show this error when your size is to big :

Critical Error. Lost Device g_pd3dDe..... ----- Trying to recover.


This Error coul also be there if you don´t give enaught time to the editor.
For example if you "Export Full Background File" , and you ever klick on the Editor, the Editor will show you this error. So wait until the editor shows the new level. Don´t klick on something in the editor. The best thing to do is to make nothing on your Computer.
_________________
-----------------------------------------------------
Alec: Half of everything is luck James.
James: And the other half ?
Alec: Fate
 
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
SubDrag
Administrator
Administrator


Joined: 16 Aug 2006
Posts: 6121

 PostPosted: Tue Aug 18, 2009 1:45 pm    Post subject: Reply with quote Back to top

radorn wrote:
I see. So, when you import a full level from OBJ, each room's coordinate system is shifted they have their own center point at the center of the actual geometry of each room?
When I tried importing multi-group OBJs into other 3d software in the past, all of the groups' centers were at the same spot, even if the actual room's geometry was very far from that point, because the OBJ didn't have (couldn't have?) a center for each group.
I assumed the GE editor would be similar.


Yep, when you convert GE Level, it spits out RoomPositions.txt, which auto-centers all the rooms and changes vertices to center around this center as (0,0,0). Obj editors don't have that file and thus all go centered around 0.
 
View user's profile Send private message
Entropy Soldier
Secret Agent
Secret Agent


Joined: 13 Feb 2009
Posts: 263
Location: GE:S

 PostPosted: Sat Aug 22, 2009 10:22 am    Post subject: Re: Why some maps don't line up or have weird triangles: Reply with quote Back to top

SubDrag wrote:
Future versions of editor will not allow import if exceeding bounds.



hmmm...not so sure this is a good idea.

i frequently test import my full level as one room to get a feel for how it will play in game, and if this feature was implemented, I'd have to split it into rooms just to test it, which would consume much more time than necessary.


Perhaps have a notification that says:
Quote:

Level has exceeded bounds.

texture errors WILL occur.

import anyway?
 
View user's profile Send private message Visit poster's website
Wreck
Administrator
Administrator


Joined: 14 Dec 2005
Posts: 7198
Location: Ontario, Canada

 PostPosted: Sat Aug 22, 2009 10:54 pm    Post subject: Reply with quote Back to top

I also like Entropy Soldier's suggestion of making a warning box that allows you to proceed with the operation, if the user chooses to. Just in case if people have trouble getting test rooms to load in and don't understand what is causing the problem. Let them know the issue, what may occur, and ask them whether or not they wish to continue.
_________________

YOUTUBE | FACEBOOK | VAULT | MOD DB | RHDN
 
View user's profile Send private message Visit poster's website
DF Ank1
00 Agent
00 Agent


Joined: 17 Feb 2009
Posts: 512
Location: Feldkirch, Austria

 PostPosted: Sun Aug 23, 2009 4:43 am    Post subject: Reply with quote Back to top

Yes a warning box is good. Maybe a command who call : Set Room in correct size. So if you import a to big room, that the editor warn AND/OR set the size of the room that GE Support. You know? If you import a to big room, the editor will size it correctly automaticly.
_________________
-----------------------------------------------------
Alec: Half of everything is luck James.
James: And the other half ?
Alec: Fate
 
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
SubDrag
Administrator
Administrator


Joined: 16 Aug 2006
Posts: 6121

 PostPosted: Sun Aug 23, 2009 8:34 am    Post subject: Reply with quote Back to top

I like that idea - it will messagebox once, then fix all sizes just so its viewable.
 
View user's profile Send private message
DF Ank1
00 Agent
00 Agent


Joined: 17 Feb 2009
Posts: 512
Location: Feldkirch, Austria

 PostPosted: Sun Aug 23, 2009 8:40 am    Post subject: Reply with quote Back to top

yes. that´s what i mean.
_________________
-----------------------------------------------------
Alec: Half of everything is luck James.
James: And the other half ?
Alec: Fate
 
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    ShootersForever.com Forum Index -> Mapping and Modelling All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Cobalt 2.0 BB theme/template by Jakob Persson.
Copyright © 2002-2004 Jakob Persson


Powered by BB © 01, 02 BB Group

 


Please Visit My Other Sites: GoldenEyeForever.com | GrandTheftAutoForever.com

Got kids? Check out my Dora The Explorer site with games and coloring pages!

Our forums feature Nintendo 64 games, GoldenEye 007 N64 New Maps and Missions, GoldenEye Cheats, N64 Emulator, Gameshark, GoldenEye Multiplayer and more!

[ Privacy Policy ]