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 → Announcing Jedi Knight & MotS Level 3D Preview
12
Announcing Jedi Knight & MotS Level 3D Preview
2019-06-08, 2:37 PM #1
Announcing Jedi Knight & MotS 3D Preview - Brian @ 2:34 pm

Thanks to a very generous contribution to Massassi by Stephan Reiter, all our Jedi Knight and Mysteries of the Sith level pages now feature a 3D Preview! This lets you poke around the levels in 3D without having to load the game. In fact, you don't even have to have the game installed.

Stephan has made the code open source so anyone can contribute and/or use it on their own. The code can be found here: jkview on Github.

Here's an example of the 3d preview in action: MLP3.
2019-06-08, 2:57 PM #2
That's really cool

If the textures are seen as purple, what does mean? It's 16-bit?
SnailIracing:n(500tpostshpereline)pants
-----------------------------@%
2019-06-08, 3:14 PM #3
This is a fantastic feature! I wish the controls were better though. I mean my biggest problem is with the zooming which, as far as I can tell, is the only way to move around the level in the preview. It's painfully slow and laborious, at least on my end. I have another mouse that I don't use where I can unlock the scroll wheel to scroll freely instead of notched scrolling. That would probably make moving around in these previews a lot easier, but the mouse I actually use doesn't have that option.
Looks like we're not going down after all, so nevermind.
2019-06-08, 3:16 PM #4
Thanks! :)

That's a good question. Purple doesn't mean 16-bit; here's an example where 16-bit works alright: https://www.massassi.net/levels/files/1459.shtml

It's probably a wrong interpretation of the map colormap. Can you post a link to the map so that I can check it out tomorrow?
2019-06-08, 3:17 PM #5
Originally posted by Krokodile:
This is a fantastic feature! I wish the controls were better though. I mean my biggest problem is with the zooming which, as far as I can tell, is the only way to move around the level in the preview. It's painfully slow and laborious, at least on my end. I have another mouse that I don't use where I can unlock the scroll wheel to scroll freely instead of notched scrolling. That would probably make moving around in these previews a lot easier, but the mouse I actually use doesn't have that option.


We're also not that happy with the controls and it's something we're trying to improve. We're using three.js for rendering and it offers different controls. Right now we're using orbital controls that allow you to move the camera around a target point.
2019-06-08, 3:24 PM #6
Okay, I'm sorry, this is just bad ass.
"I would rather claim to be an uneducated man than be mal-educated and claim to be otherwise." - Wookie 03:16

2019-06-08, 3:31 PM #7
Niiiice!
I can't wait for the day schools get the money they need, and the military has to hold bake sales to afford bombs.
2019-06-08, 3:37 PM #8
Originally posted by Stereo:
It's probably a wrong interpretation of the map colormap. Can you post a link to the map so that I can check it out tomorrow?


Hey!

Something like this has purple show up for me:

https://www.massassi.net/levels/files/3051.shtml
SnailIracing:n(500tpostshpereline)pants
-----------------------------@%
2019-06-08, 3:48 PM #9
Thank you for the link. I’ll take a closer look tomorrow.
2019-06-08, 6:11 PM #10
Wow, this is fantastic! Thank you, Stereo.

I do agree though that the controls seem slightly wonky. I'd kinda hard to zoom in close enough in some spots with the scroll wheel alone, as I just keep scrolling and scrolling and barely getting any further.
2019-06-08, 8:06 PM #11
Well thats cool!
Holy soap opera Batman. - FGR
DARWIN WILL PREVENT THE DOWNFALL OF OUR RACE. - Rob
Free Jin!
2019-06-09, 3:15 AM #12
I made two changes to the viewer code:
- Zooming speed is doubled, and you can hold SHIFT to further increase the speed. I hope this helps, if not, please just let us know. I actually don't use a mouse wheel, but instead zoom using a gesture on my touchpad, which worked well.
- Hopefully no more wrong purple colors: The maps that show this phenomenon reference a wrong colormap, which makes materials appear with wrong colors. I was interpreting that data by the inofficial book, but the original JK may be doing something else, which explains why this wasn't discovered by the authors.

You'll see these changes when Brian gets a chance to roll out the latest version.

Please continue giving feedback and letting us know what you'd like to see added or changed.
Personally, I'm looking forward to getting light effects into the previewer. But I won't have time for this in the next weeks, so maybe someone else has a go at it. :-)
2019-06-09, 5:35 PM #13
Super ****ing cool, nice work!
2019-06-09, 7:24 PM #14
This is really badass and incredibly useful. It's a shame we didn't have this 15 years ago.. :P Great work!
Author of the JK levels:
Sand Trap & Sand Trap (Night)

2019-06-09, 8:24 PM #15
I think WAR_ACID_ said it best in his review of MLP3: "One word: WOW!!!!!!!!!!!!!"
former entrepreneur
2019-06-09, 11:14 PM #16
Very interesting. There are so many cool levels on Massassi that I never played. Most of the ones I browsed by chance were more than half-decent. Only a couple that were basically glorified boxes, haha.
2019-06-10, 3:47 AM #17
Indeed! And finally we can find all the hidden places in a level. ;-)
2019-06-10, 7:02 AM #18
I pushed the new version this morning, it looks good.

The weird thing about the mouse wheel controls is that the farther you zoom in, the smaller the move increment gets.

Stereo, have you looked at the "FPS Controls" example in Three.js? It seems like we need that, but with 2 additional keys, "c" to move down and "r" (or whatever else) to move up. There is also a FlyControls but it looks like that's designed for a flying game where you can tilt your plane. Anyway, I may poke around with it later and see if I can get the FPS controls working.
2019-06-10, 7:07 AM #19
Also I'm not sure if you mean "shift + mousewheel" but that actually doesn't do anything for me. When shift is held down, the mousewheel no longer works to zoom. However, with shift held down the click+drag moves the entire map (instead of rotating it) and that works awesome.

Finally, there's a nifty easter egg built in you can use if you ownsgame. (full-page version only)
2019-06-10, 7:42 AM #20
This is freakin' awesome! :o I'm now digging through old levels to see their previews.

Originally posted by Brian:
The weird thing about the mouse wheel controls is that the farther you zoom in, the smaller the move increment gets.

I noticed this particularly with the "castle" in the MLP3 example you gave in your first post -- you have to get creative with the camera work to actually zoom in on the castle part.

EDIT: Or rather, I thought you had to. Being able to double-click to re-anchor helps immensely.
The Plothole: a home for amateur, inclusive, collaborative stories
http://forums.theplothole.net
2019-06-10, 8:21 AM #21
I did notice that the MotS ones (at least at a glance) seem to fail to load, whether it's the on-page or the full-screen option.
The Plothole: a home for amateur, inclusive, collaborative stories
http://forums.theplothole.net
2019-06-10, 8:39 AM #22
That's odd, I tested all the mots kfy levels and they all loaded. Maybe it's a regression in the latest version. Is it every mots level?
2019-06-10, 8:42 AM #23
Here's an example of a failing one: https://3dpreview.massassi.net/level/1891/
And a working one: https://3dpreview.massassi.net/level/870/
A working motsmp one: https://3dpreview.massassi.net/level/787/

I bet Stereo can fix it.
2019-06-10, 9:05 AM #24
Level 1891 will work now and hopefully other levels that failed to load, too. If not, just let me know the number.

Controls are tricky, hm? I am also not satisfied with the ones we have at the moment.

We need to discern between normal computers and mobile devices:

On mobile devices, I'd like to:
- look around by moving my finger on the display
- zoom using a pinch gesture

On a computer with a mouse, I'd
- drag with the left button to look around
- use the mouse wheel to move forward/backward
- or keep the right button pressed to move forward (for those without a mouse wheel)
+ double-click to fly close to the clicked location

Please make suggestions. When we have settled on something, I'll try to implement it. :)
2019-06-10, 9:36 AM #25
Orbital and flythrough are both useful. I think the ideal would be to have both: default to the current orbital controls for a large scale overview, but have a button or key that switches to flythrough controls for looking at smaller details.

As a user, I would expect the flythrough to have controls similar to spectator cameras from other first person shooters. I would also expect it to start at a walkplayer (spawn point).

Extra credit if the viewer draws the sky in flythrough mode. Check the “ceiling” and “horizon” shaders here for example: https://github.com/jdmclark/gorc/tree/develop/game/restricted/misc/glsl
2019-06-10, 7:44 PM #26
Originally posted by Brian:
Also I'm not sure if you mean "shift + mousewheel" but that actually doesn't do anything for me. When shift is held down, the mousewheel no longer works to zoom. However, with shift held down the click+drag moves the entire map (instead of rotating it) and that works awesome.


Shift+mousewheel works fine for me, much quicker than just the mousewheel. Shift+left click and drag works like you found but so does right click and drag.
"I would rather claim to be an uneducated man than be mal-educated and claim to be otherwise." - Wookie 03:16

2019-06-11, 6:28 AM #27
Shift+mousewheel works for me on linux/firefox but not mac/firefox. Weird. It's possible I have some addon that is interfering.
2019-06-11, 6:57 AM #28
Originally posted by Jon`C:
Orbital and flythrough are both useful. I think the ideal would be to have both: default to the current orbital controls for a large scale overview, but have a button or key that switches to flythrough controls for looking at smaller details.

As a user, I would expect the flythrough to have controls similar to spectator cameras from other first person shooters. I would also expect it to start at a walkplayer (spawn point).


Yeah, with something like Solidworks or Autodesk Revit (just an example from my experience and probably saberopus's as well), orbital viewing is definitely useful when paired with the ability to rotate about a selected object and slice through a model. The problem I have is that I can't really look into a JK level's cute little nooks and crannies with just orbital controls so a fly-through option would help a lot.

It's hard to see Drazen Isle's charming interiors.
SnailIracing:n(500tpostshpereline)pants
-----------------------------@%
2019-06-11, 8:28 AM #29
Originally posted by Stereo:
On mobile devices, I'd like to:
- look around by moving my finger on the display
- zoom using a pinch gesture


How about clicking to move somewhere, kind of like in Google StreetView?
JKGR
2019-06-11, 11:00 AM #30
Or mimic controls of 3dpreview in jed.
2019-06-13, 10:45 AM #31
Yo thats rad
2019-06-18, 1:47 PM #32
This is awesome! Nice work :D
Cordially,
Lord Tiberius Grismath
1473 for '1337' posts.
2019-07-03, 10:42 PM #33
Wow, what a nostalgia trip. I can already tell I'm gonna lose an entire afternoon wandering around my old favorites. Thanks for the memories
"it is time to get a credit card to complete my financial independance" — Tibby, Aug. 2009
2019-07-04, 12:04 AM #34
Doesn't seem to work on Magrucko 3
Star Wars: TODOA | DXN - Deus Ex: Nihilum
2019-07-10, 9:26 AM #35
Seems to be a timeout on the server. Magrucko 3 is a complex pack with several maps. Preparing them for viewing in the browser seems to take too long; that process is then aborted and we see a 50x error.
2019-07-18, 10:59 AM #36
I can tweak some settings to fix that, hopefully can get to it soon.
2019-07-18, 12:04 PM #37
While you're at it Brian, think you could replace a few words in a few lines of the readme files for a few of my old levels that have been kinda bugging me?

Thank.
2019-07-18, 11:09 PM #38
don't you try, cone saber
Star Wars: TODOA | DXN - Deus Ex: Nihilum
2019-08-06, 12:06 PM #39
Originally posted by Brian:
I can tweak some settings to fix that, hopefully can get to it soon.


How soon
Star Wars: TODOA | DXN - Deus Ex: Nihilum
2019-09-12, 12:51 AM #40
This is now fixed. For example: https://3dpreview.massassi.net/level/3111/
12

↑ Up to the top!