MrAntares / roBrowserLegacy

This is a continuation of the original robrowser. All credits to the original creators and the new ones :)
GNU General Public License v3.0
195 stars 118 forks source link

Granny 3D models #51

Open MrAntares opened 2 years ago

MrAntares commented 2 years ago

are missing.

Added a Granny module for later use in: https://github.com/MrAntares/Ragna.roBrowser/commit/53f151cf3803d6a931f3cd4a505efb70bfa37f8b

issid commented 2 years ago

how it use? i want set flag pronera before fountain.. and need set 3d model for guardians

MrAntares commented 2 years ago

Hi, as of now, I only added the module. It is not my development, I merged it from another fork, so I have no idea yet how it works, but I will try to figure it out some time soon. It was a work in progress when I merged it, so it might not even work.

MrAntares commented 2 years ago

Added support to GRF Viewer in https://github.com/MrAntares/Ragna.roBrowser/commit/c576ab511a518e44b2030a703570dd32f3f101d3 BUT The Granny module is not finished, so it is not working and it is now disabled.

@LiamKarlMitchell I hope you can help us finishing. That would be a miracle! :)

issid commented 2 years ago

this https://github.com/MrAntares/Ragna.roBrowser/blob/master/src/Renderer/Entity/EntityView.js#L172 set default sprite poring instead of gr2. maybe here need enabled shows gr2 ?

issid commented 2 years ago

this https://github.com/MrAntares/Ragna.roBrowser/blob/master/src/Renderer/Entity/EntityView.js#L172 set default sprite poring instead of gr2. maybe here need enabled shows gr2 ?

oh it's just a bug. you can just write return;

in grf view mode error BinaryReader.js and GrannyModel.js as if it is trying to load empty data a second time

LiamKarlMitchell commented 2 years ago

I never figured it out fully :( but it is possible to use games dll to load them, then perhaps go through the struct and dump it to something else, which doesn't fall in line with the rest of the behaviour of this ROBrowser client, can't remember who figured that out.

Guild flags and WOE Guardians (Possibly guild chests? can't recall) are 3D models. You could replace them with sprites sure that'd probably be best tbh they always did look kinda janky imo.

The Granny format has a proprietary encryption/storage routine, there was a Granny 3D Viewer utility from their SDK Xentax or Noesis might be useful if someone already made a script since I looked. https://richwhitehouse.com/index.php?content=inc_projects.php

issid commented 2 years ago

it turns out the only option is to import gr2 into another format that supports webgl js

MrAntares commented 2 years ago

I thought of replacing Granny models with sprites, but that would only be a temporary solution. Flags, Sword+Archer Guardians, Chests, Emperium, and maybe Traps I believe is what uses the granny models.

MrAntares commented 2 years ago

@LiamKarlMitchell Look what I found:

https://github.com/arves100/opengr2

https://github.com/Norbyte/lslib/tree/master/LSLib/Granny/GR2

https://github.com/arves100/Granny2-research https://github.com/arves100/Granny2-research/wiki/File-Format-Documentation

https://github.com/Helia01/GrannyMeshDumper

https://github.com/SWTOR-Slicers/Granny2-Plug-In-Blender-2.8x/tree/master/io_scene_gr2

Granny1 viewer (if it helps in something): https://github.com/SiENcE/Iris1_DeveloperTools/tree/master/GrannyViewer

LiamKarlMitchell commented 2 years ago

Nice, wonder if that info could be useful to the unity 3d client project. unityro https://github.com/guilhermelhr/unityro

On Tue, 1 Mar 2022, 11:02 pm Antares, @.***> wrote:

@LiamKarlMitchell https://github.com/LiamKarlMitchell Look what I found: https://github.com/Norbyte/lslib/tree/master/LSLib/Granny/GR2

— Reply to this email directly, view it on GitHub https://github.com/MrAntares/Ragna.roBrowser/issues/51#issuecomment-1055249369, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAPAP3JAPZ3Y7FVR2GLSBLTU5XTLXANCNFSM5OOCELXA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>

issid commented 2 years ago

@MrAntares see what I found https://github.com/herenow/gr2-web

MrAntares commented 2 years ago

@MrAntares see what I found https://github.com/herenow/gr2-web

Looks really promising!

@herenow Are you around these days? Are you interested in tinkering with us? :)