Page 1 of 2 12 LastLast
Results 1 to 40 of 48

Thread: Announcing Jedi Knight & MotS Level 3D Preview

  1. #1
    Administrator
    Posts
    7,465

    Announcing Jedi Knight & MotS Level 3D Preview

    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.

  2. #2

    "Has it won yet?"

    Posts
    17,129
    That's really cool

    If the textures are seen as purple, what does mean? It's 16-bit?
    SnailIracing:n(500tpostshpereline)pants
    -----------------------------@%

  3. #3
    Child's Play CharitySon of Krokodile XVI
    Posts
    5,020
    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.

  4. #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?

  5. #5
    Quote Originally Posted by Krokodile View Post
    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.

  6. #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


  7. #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.

  8. #8

    "Has it won yet?"

    Posts
    17,129
    Quote Originally Posted by Stereo View Post
    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
    -----------------------------@%

  9. #9
    Thank you for the link. I’ll take a closer look tomorrow.

  10. #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.

  11. #11
    Well thats cool!
    Holy soap opera Batman. - FGR
    DARWIN WILL PREVENT THE DOWNFALL OF OUR RACE. - Rob
    Free Jin!

  12. #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. :-)

  13. #13
    Likes Kittens. Eats Fluffies
    Posts
    12,122
    Super ****ing cool, nice work!

  14. #14
    Child's Play CharityBlockyness Rocks!
    Posts
    2,948
    This is really badass and incredibly useful. It's a shame we didn't have this 15 years ago.. Great work!
    Author of the JK levels:
    Sand Trap & Sand Trap (Night)


  15. #15
    I think WAR_ACID_ said it best in his review of MLP3: "One word: WOW!!!!!!!!!!!!!"

  16. #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.

  17. #17
    Indeed! And finally we can find all the hidden places in a level. ;-)

  18. #18
    Administrator
    Posts
    7,465
    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.

  19. #19
    Administrator
    Posts
    7,465
    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)

  20. #20
    This is freakin' awesome! I'm now digging through old levels to see their previews.

    Quote Originally Posted by Brian View Post
    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.
    Last edited by Gebohq; 06-10-2019 at 10:02 AM.
    The Plothole: a home for amateur, inclusive, collaborative stories
    http://forums.theplothole.net

  21. #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

  22. #22
    Administrator
    Posts
    7,465
    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?

  23. #23
    Administrator
    Posts
    7,465
    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.

  24. #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.

  25. #25
    Admiral of Awesome
    Posts
    18,338
    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/tre...cted/misc/glsl

  26. #26
    Quote Originally Posted by Brian View Post
    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


  27. #27
    Administrator
    Posts
    7,465
    Shift+mousewheel works for me on linux/firefox but not mac/firefox. Weird. It's possible I have some addon that is interfering.

  28. #28

    "Has it won yet?"

    Posts
    17,129
    Quote Originally Posted by Jon`C View Post
    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
    -----------------------------@%

  29. #29
    Quote Originally Posted by Stereo View Post
    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?

  30. #30
    Administrator
    Posts
    7,465
    Or mimic controls of 3dpreview in jed.

  31. #31
    Ach Mein Tongue!!!s
    Posts
    2,035
    Yo thats rad

  32. #32
    This is awesome! Nice work
    Cordially,
    Lord Tiberius Grismath
    1473 for '1337' posts.

  33. #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

  34. #34
    Doesn't seem to work on Magrucko 3

  35. #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.

  36. #36
    Administrator
    Posts
    7,465
    I can tweak some settings to fix that, hopefully can get to it soon.

  37. #37
    Likes Kittens. Eats Fluffies
    Posts
    12,122
    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.

  38. #38
    don't you try, cone saber

  39. #39
    Quote Originally Posted by Brian View Post
    I can tweak some settings to fix that, hopefully can get to it soon.
    How soon

  40. #40
    Administrator
    Posts
    7,465
    This is now fixed. For example: https://3dpreview.massassi.net/level/3111/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •