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

Joined: 16 Aug 2006 Posts: 6173
 |
Posted: Sat Jan 22, 2011 5:00 pm Post subject: Portals from separate .obj file (beta) |
 |
|
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 |
|
|
|
|
|
 |
 |
 |
 |
 |
radorn 007


Joined: 23 Sep 2007 Posts: 1424
 |
Posted: Sun Jan 23, 2011 1:18 am Post subject: |
 |
|
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
Thanks SubDrag! |
|
|
|
|
|
 |
 |
 |
 |
 |
Dragonsbrethren Hacker


Joined: 23 Mar 2007 Posts: 3058
 |
Posted: Sun Jan 23, 2011 7:05 am Post subject: |
 |
|
Yeah, like I said in a PM already, I think it'll be especially helpful in mostly open maps with large room connections. |
|
|
|
|
|
 |
 |
 |
 |
 |
radorn 007


Joined: 23 Sep 2007 Posts: 1424
 |
Posted: Sun Jan 23, 2011 7:38 am Post subject: |
 |
|
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) |
|
|
|
|
|
 |
 |
 |
 |
 |
SubDrag Administrator

Joined: 16 Aug 2006 Posts: 6173
 |
Posted: Sun Jan 23, 2011 7:49 am Post subject: |
 |
|
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. |
|
|
|
|
|
 |
 |
 |
 |
 |
TimEh Agent

Joined: 08 May 2009 Posts: 187 Location: oakville. ONT, Canada  |
Posted: Sun Jan 23, 2011 2:44 pm Post subject: |
 |
|
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 |
|
|
|
|
|
 |
 |
 |
 |
 |
SubDrag Administrator

Joined: 16 Aug 2006 Posts: 6173
 |
Posted: Sun Jan 23, 2011 2:52 pm Post subject: |
 |
|
Portals.txt definitely is better and fixed input. |
|
|
|
|
|
 |
 |
 |
 |
 |
radorn 007


Joined: 23 Sep 2007 Posts: 1424
 |
Posted: Sun Jan 23, 2011 5:43 pm Post subject: |
 |
|
what do you mean "fixed input"? |
|
|
|
|
|
 |
 |
 |
 |
 |
zoinkity 007


Joined: 24 Nov 2005 Posts: 1729
 |
Posted: Wed Jan 26, 2011 9:46 am Post subject: |
 |
|
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! |
|
|
|
|
|
 |
 |
 |
 |
 |
SubDrag Administrator

Joined: 16 Aug 2006 Posts: 6173
 |
Posted: Sat Jan 29, 2011 12:57 pm Post subject: |
 |
|
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. |
|
|
|
|
|
 |
 |
 |
 |
 |
Dragonsbrethren Hacker


Joined: 23 Mar 2007 Posts: 3058
 |
Posted: Sun Jan 30, 2011 9:32 am Post subject: |
 |
|
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. |
|
|
|
|
|
 |
 |
 |
 |
 |
|
 |
 |
 |
 |
|
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
|
|
|
 |