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


Portals from separate .obj file (beta)

 
Post new topic   Reply to topic    ShootersForever.com Forum Index -> Q-Lab Hacking Department
View previous topic :: View next topic  
SubDrag
Administrator
Administrator


Joined: 16 Aug 2006
Posts: 6173

 PostPosted: Sat Jan 22, 2011 5:00 pm    Post subject: Portals from separate .obj file (beta) Reply with quote Back to top

I implemented a feature that has been requested which will allow import of a .obj file that contains portals. Note that the file for rooms must be a separate file and must not include portal info (and vice versa).

The way to enter portals is by grouping (similar to RoomXX (GE) or Room(XXX) for PD). You name it Portal_XX_YY, where XX = Room One, YY = Room Two (or for PD Portal_XXX_YYY).

NOTE: If you do quads in your obj file, it is best, as the tri algorithm merging ONLY works if all Xs are identical, Ys, or Zs for a given "quad". Ie all triangles must be "2D", essentially and not have components in all 3 dimensions that change.

Note materials files are ignored. So go ahead and make your portals/rooms/clipping, export each to separate .obj/.mtl files, and you'll be fine (3 separate imports).

Here is a sample file that is quads (from Radorn):
# Alias OBJ Model File
# Exported from SketchUp, (c) 2000-2006 Google, Inc.
# File units = centimeters

mtllib portals_notri.mtl

g Portal_01_02

usemtl FrontColor
v 200 200 -258.67
vt 78.7402 78.7402
vn 0 0 1
v 0 200 -258.67
vt 0 78.7402
v 0 0 -258.67
vt 0 0
v 200 0 -258.67
vt 78.7402 0
f 1/1/1 2/2/1 3/3/1 4/4/1

g Portal_01_02

v 200 200 -0
v 0 200 -0
v 0 0 -0
v 200 0 -0
f 5/1/1 6/2/1 7/3/1 8/4/1


Here's a sample that is a tri:
# Alias OBJ Model File
# Exported from SketchUp, (c) 2000-2006 Google, Inc.
# File units = centimeters

mtllib portals_tri.mtl

g Portal_01_02

usemtl FrontColor
v 200 200 -258.67
vt 78.7402 78.7402
vn 0 0 1
v 0 0 -258.67
vt 0 0
v 200 0 -258.67
vt 78.7402 0
f 1/1/1 2/2/1 3/3/1

v 0 200 -258.67
vt 0 78.7402
f 2/2/1 1/1/1 4/4/1

g Portal_01_02

v 200 200 -0
v 0 0 -0
v 200 0 -0
f 5/1/1 6/2/1 7/3/1

v 0 200 -0
f 6/2/1 5/1/1 8/4/1
 
View user's profile Send private message
radorn
007
007


Joined: 23 Sep 2007
Posts: 1424

 PostPosted: Sun Jan 23, 2011 1:18 am    Post subject: Reply with quote Back to top

This is a fantastic feature as it will allow very precise positioning of portals since you can model them in your 3D suite, which you'll love if you are as paranoid for accuracy as I am Wink

Thanks SubDrag!
 
View user's profile Send private message
Dragonsbrethren
Hacker
Hacker


Joined: 23 Mar 2007
Posts: 3058

 PostPosted: Sun Jan 23, 2011 7:05 am    Post subject: Reply with quote Back to top

Yeah, like I said in a PM already, I think it'll be especially helpful in mostly open maps with large room connections.
 
View user's profile Send private message
radorn
007
007


Joined: 23 Sep 2007
Posts: 1424

 PostPosted: Sun Jan 23, 2011 7:38 am    Post subject: Reply with quote Back to top

Well, I know I'm going to appreciate it for fort knox (when I finally get a new computer and can resume work on it)
 
View user's profile Send private message
SubDrag
Administrator
Administrator


Joined: 16 Aug 2006
Posts: 6173

 PostPosted: Sun Jan 23, 2011 7:49 am    Post subject: Reply with quote Back to top

At the moment, no slanted portals (unless your obj format supports quads, then it's fine). I guess you could manually fix those couple to quads via the coords/name.
 
View user's profile Send private message
TimEh
Agent
Agent


Joined: 08 May 2009
Posts: 187
Location: oakville. ONT, Canada

 PostPosted: Sun Jan 23, 2011 2:44 pm    Post subject: Reply with quote Back to top

so in ur opinion, should i support this method for obj exporting or just use the portals.txt? I guess i should do both, seeing as they both arnt hard to implement
 
View user's profile Send private message
SubDrag
Administrator
Administrator


Joined: 16 Aug 2006
Posts: 6173

 PostPosted: Sun Jan 23, 2011 2:52 pm    Post subject: Reply with quote Back to top

Portals.txt definitely is better and fixed input.
 
View user's profile Send private message
radorn
007
007


Joined: 23 Sep 2007
Posts: 1424

 PostPosted: Sun Jan 23, 2011 5:43 pm    Post subject: Reply with quote Back to top

what do you mean "fixed input"?
 
View user's profile Send private message
zoinkity
007
007


Joined: 24 Nov 2005
Posts: 1729

 PostPosted: Wed Jan 26, 2011 9:46 am    Post subject: Reply with quote Back to top

The text data is already in the exact format the editor needs, including additional flags and whatnot. Otherwise, you construct the multigon from a series of triangles, and there can be scale modification involved.
_________________
(\_/) Beware
(O.o) ze
(> <) Hoppentruppen!
 
View user's profile Send private message Send e-mail
SubDrag
Administrator
Administrator


Joined: 16 Aug 2006
Posts: 6173

 PostPosted: Sat Jan 29, 2011 12:57 pm    Post subject: Reply with quote Back to top

Added beta of obj import for path sets and vertices (MUST BE SEPARATE FILE from room obj, clipping obj, and portal obj). You open visual editor, then it's an obj file. It may be generated by your obj tools if it supports the obj line.

The format is:
v -108 -10 261
v -118 -10 251
v -128 -10 271
l 1 2

Supposedly sketchup supports lines, I do not know if any other editors do. Let me know if you figure out how to in yours.

All vertices are imported, and then all l commands connect two lines into a path set.

So above, it is like in visual editor selecting three pads, and connecting them all with Join to Path Set. It's basically equivalent of doing that, but via obj file.

If your pad already exists (or preset) it won't add it again, just use that one. All other obj commands are ignored.

Should work for both PD and GE.
 
View user's profile Send private message
Dragonsbrethren
Hacker
Hacker


Joined: 23 Mar 2007
Posts: 3058

 PostPosted: Sun Jan 30, 2011 9:32 am    Post subject: Reply with quote Back to top

Interesting. I don't think there's any way of outputting that with DeleD unfortunately, but I'll play around and see if I can get something figured out. I know it has a polyline tool, but that's for making polys in complex shapes, which I'm sure it autotriangulates on output like everything else.
 
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    ShootersForever.com Forum Index -> Q-Lab Hacking Department 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 ]